5centsCDN - Accounts (1.0.0)

Download OpenAPI specification:Download

API for managing Account in 5centsCDN

Contact Support: Email: help@5centscdn.com

Domain Verification

endpoints related to Domain Verification

List Domains

List Domains

Authorizations:
apikeyAuth
header Parameters
Accept
string
Example: application/json

Responses

Response samples

Content type
application/json
{
  • "result": "success",
  • "domains": [
    ]
}

Create Domain

Create a Domain

Authorizations:
apikeyAuth
header Parameters
Content-Type
string
Example: application/json
Accept
string
Example: application/json
Request Body schema: application/json
domain
string
  • Represents the domain name for a website or service.
    • The domain name is used to identify a specific address on the internet.
    • This is typically how users access websites, as it's easier to remember than an IP address.
    • Example values: 'mydomain.com', 'example.org'.

Responses

Request samples

Content type
application/json
{
  • "domain": "mydomain.com"
}

Response samples

Content type
application/json
{
  • "result": "success",
  • "message": "Domain added. Please add TXT DNS record for verification",
  • "domain": {
    }
}

Delete Domain

Delete information of a domain verification. To cast request method POST and parameters _METHOD = DELETE

Authorizations:
apikeyAuth
path Parameters
domainid
required
integer
Example: 1111

(Required) Id of the Domain Verification

header Parameters
Accept
string
Example: application/json

Responses

Response samples

Content type
application/json
{
  • "result": "success",
  • "message": "Domain deleted"
}

Get Domain

Returns the details of a domain verification

Authorizations:
apikeyAuth
path Parameters
domainid
required
integer
Example: 1111

(Required) Id of the Domain Verification

header Parameters
Accept
string
Example: application/json

Responses

Response samples

Content type
application/json
{
  • "result": "success",
  • "domain": {
    }
}

Verify Domain

Verifivation of domain

Authorizations:
apikeyAuth
path Parameters
domainid
required
integer
Example: 1111

(Required) Id of the Domain Verification

header Parameters
Accept
string
Example: application/json

Responses

Response samples

Content type
application/json
{
  • "result": "success",
  • "msg": "Domain added successfully"
}

Bandwidth Overage Protection

Update Bandwidth Overage Protection

Update Bandwidth Overage Protection

Update the information of bandwidth overage protection

Authorizations:
apikeyAuth
header Parameters
Content-Type
string
Example: application/json
Accept
string
Example: application/json
Request Body schema: application/json
bwop
string
  • Represents a specific value associated with an operation, process, or entity.
    • The meaning of 'bwop' may vary depending on the context, such as a code, identifier, or data point.
    • Example values: '119' (could represent a numeric identifier or a particular result), '150' (another example value representing a different code or result).

Responses

Request samples

Content type
application/json
{
  • "bwop": "119"
}

Response samples

Content type
application/json
{
  • "result": "success",
  • "message": "Bandwidth Overage Protection Updated"
}

SSL Certificates

endpoints related to SSL Certificates

List SSL Certificates

List SSL certificates

Authorizations:
apikeyAuth
header Parameters
Accept
string
Example: application/json

Responses

Response samples

Content type
application/json
{
  • "result": "success",
  • "certs": [
    ]
}

Delete Info

Delete information of a SSL certificate. To cast request method POST and parameters _METHOD = DELETE

Authorizations:
apikeyAuth
path Parameters
sslcertid
required
integer
Example: 1111

(Required) Id of the SSL certificate

header Parameters
Accept
string
Example: application/json

Responses

Response samples

Content type
application/json
{
  • "result": "success",
  • "message": "Deleted Successfully"
}

Update SSL Certificates

Update the information of SSL certificate

Authorizations:
apikeyAuth
path Parameters
sslcertid
required
integer
Example: 222

(Required) Id of the SSL certificate

header Parameters
Content-Type
string
Example: application/json
Accept
string
Example: application/json
Request Body schema: application/json
crt
string
  • A string representing a certificate, often used in secure communication.
    • The certificate is enclosed between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- markers.
    • This certificate can be used in secure transactions like HTTPS connections or encrypting sensitive data.
key
string
  • A string representing a key, used for cryptographic purposes.
    • The key is typically used to encrypt or decrypt data, ensuring confidentiality and security.
    • For privacy reasons, it’s often redacted or hidden when shared.
name
string
  • A string that represents the name associated with the certificate or key.
    • This could be an alias or identifier for the certificate.
    • Example values could be names of servers or projects associated with the certificate.
cabundle
string
  • A string representing a certificate bundle, which may include multiple certificates.
    • The bundle is enclosed between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- markers.
    • Often used for server authentication and to chain trust between certificates.

Responses

Request samples

Content type
application/json
{
  • "crt": "-----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
  • "key": "--- redacted ---",
  • "name": "sss",
  • "cabundle": "----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----"
}

Response samples

Content type
application/json
{
  • "result": "success",
  • "message": "Update successful",
  • "cert": {
    }
}

SSL Certificate

Return the details of a SSL Certificate

Authorizations:
apikeyAuth
path Parameters
sslcertid
required
integer
Example: 222

(Required) Id of the SSL certificate

header Parameters
Accept
string
Example: application/json

Responses

Response samples

Content type
application/json
{
  • "result": "success",
  • "cert": {
    }
}

Create Certificates

Create a SSL Certificate

Authorizations:
apikeyAuth
header Parameters
Content-Type
string
Example: application/json
Accept
string
Example: application/json
Request Body schema: application/json
_METHOD
string
  • Represents the HTTP method used for the operation.
    • Commonly used to specify actions like 'GET', 'POST', 'PUT', or 'DELETE'.
    • In this case, it is 'PUT', which typically indicates an update operation.
    • Example values: 'PUT', 'POST'.
crt
string
  • Contains the public certificate string in PEM format.
    • Includes the certificate data, typically enclosed between '-----BEGIN CERTIFICATE-----' and '-----END CERTIFICATE-----'.
    • Used to secure communication for domains.
    • Example values: '-----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----', '-----BEGIN CERTIFICATE-----\r\ndata\r\n-----END CERTIFICATE-----'.
key
string
  • Represents the private key associated with the certificate.
    • The private key is sensitive information and is often redacted or hidden for security purposes.
    • Example values: '--- redacted ---', '--- private key data ---'.
name
string
  • A descriptive name for the certificate or resource.
    • Helps to easily identify and manage certificates in user-friendly terms.
    • Example values: 'sss', 'example_certificate'.
cabundle
string
  • The certificate authority (CA) bundle string in PEM format.
    • Used to establish trust by providing intermediate and root certificates in addition to the primary certificate.
    • Typically enclosed between '-----BEGIN CERTIFICATE-----' and '-----END CERTIFICATE-----'.
    • Example values: '----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----', '----BEGIN CERTIFICATE-----\r\ndata\r\n-----END CERTIFICATE-----'.

Responses

Request samples

Content type
application/json
{
  • "_METHOD": "PUT",
  • "crt": "-----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
  • "key": "--- redacted ---",
  • "name": "sss",
  • "cabundle": "----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----"
}

Response samples

Content type
application/json
{
  • "result": "success",
  • "message": "Operation completed successfully",
  • "cert": {
    }
}