Download OpenAPI specification:Download
API for managing Account in 5centsCDN
Contact Support: Email: help@5centscdn.com
List Domains
Accept |
string
Example: application/json
|
{- "result": "success",
- "domains": [
- {
- "id": 2150,
- "serviceid": 103,
- "domain": "5centscdndemo.ca",
- "validated": "Y",
- "txtrecord": {
- "host": "j78dpam2ndq5",
- "ttl": 3600,
- "value": "g2qd3wjxay7a"
}
}
]
}
Create a Domain
Content-Type |
string
Example: application/json
|
Accept |
string
Example: application/json
|
domain |
string
|
{- "domain": "mydomain.com"
}
{- "result": "success",
- "message": "Domain added. Please add TXT DNS record for verification",
- "domain": {
- "id": 3390,
- "serviceid": 103,
- "domain": "mydomain.com",
- "validated": "N",
- "txtrecord": {
- "host": "j78dpp7nrdq5",
- "ttl": 3600,
- "value": "g2qd3b76jy7a"
}
}
}
Delete information of a domain verification. To cast request method POST and parameters _METHOD = DELETE
domainid
required
|
integer
Example: 1111
(Required) Id of the Domain Verification |
Accept |
string
Example: application/json
|
{- "result": "success",
- "message": "Domain deleted"
}
Returns the details of a domain verification
domainid
required
|
integer
Example: 1111
(Required) Id of the Domain Verification |
Accept |
string
Example: application/json
|
{- "result": "success",
- "domain": {
- "id": 1111,
- "serviceid": 111,
- "domain": "mydomain.com",
- "validated": "N",
- "txtrecord": {
- "host": "j78dpp7nrdq5",
- "ttl": 3600,
- "value": "g2qd3b76jy7a"
}
}
}
Verifivation of domain
domainid
required
|
integer
Example: 1111
(Required) Id of the Domain Verification |
Accept |
string
Example: application/json
|
{- "result": "success",
- "msg": "Domain added successfully"
}
Update the information of bandwidth overage protection
Content-Type |
string
Example: application/json
|
Accept |
string
Example: application/json
|
bwop |
string
|
{- "bwop": "119"
}
{- "result": "success",
- "message": "Bandwidth Overage Protection Updated"
}
List SSL certificates
Accept |
string
Example: application/json
|
{- "result": "success",
- "certs": [
- {
- "id": 111,
- "name": "ppp",
- "crt": "-----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
- "key": "--- redacted ---",
- "cabundle": "----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
- "domain": "mydomain.com",
- "sans": [
- "mydomain.com",
- "www.mydomain.com"
], - "expiry": "2024-02-21",
- "installs": 1,
- "expired": true,
- "validFrom": "2023-11-23"
}
]
}
Delete information of a SSL certificate. To cast request method POST and parameters _METHOD = DELETE
sslcertid
required
|
integer
Example: 1111
(Required) Id of the SSL certificate |
Accept |
string
Example: application/json
|
{- "result": "success",
- "message": "Deleted Successfully"
}
Update the information of SSL certificate
sslcertid
required
|
integer
Example: 222
(Required) Id of the SSL certificate |
Content-Type |
string
Example: application/json
|
Accept |
string
Example: application/json
|
crt |
string
|
key |
string
|
name |
string
|
cabundle |
string
|
{- "crt": "-----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
- "key": "--- redacted ---",
- "name": "sss",
- "cabundle": "----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----"
}
{- "result": "success",
- "message": "Update successful",
- "cert": {
- "id": 222,
- "name": "sss",
- "crt": "-----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
- "key": "--- redacted ---",
- "cabundle": "----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
- "domain": "mydomain.com",
- "sans": [
- "mydomain.com",
- "www.mydomain.com"
], - "expiry": "2024-03-12",
- "installs": 1,
- "expired": true,
- "validFrom": "2023-12-11"
}
}
Return the details of a SSL Certificate
sslcertid
required
|
integer
Example: 222
(Required) Id of the SSL certificate |
Accept |
string
Example: application/json
|
{- "result": "success",
- "cert": {
- "id": 222,
- "name": "sss",
- "crt": "-----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
- "key": "--- redacted ---",
- "cabundle": "----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
- "domain": "mydomain.com",
- "sans": [
- "mydomain.com",
- "www.mydomain.com"
], - "expiry": "2024-03-12",
- "installs": 1,
- "expired": true,
- "validFrom": "2023-12-11"
}
}
Create a SSL Certificate
Content-Type |
string
Example: application/json
|
Accept |
string
Example: application/json
|
_METHOD |
string
|
crt |
string
|
key |
string
|
name |
string
|
cabundle |
string
|
{- "_METHOD": "PUT",
- "crt": "-----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----",
- "key": "--- redacted ---",
- "name": "sss",
- "cabundle": "----BEGIN CERTIFICATE-----\r\nstring\r\n-----END CERTIFICATE-----"
}
{- "result": "success",
- "message": "Operation completed successfully",
- "cert": {
- "id": 222,
- "name": "sss",
- "crt": "-----BEGIN CERTIFICATE-----\\r\\nstring\\r\\n-----END CERTIFICATE-----",
- "key": "--- redacted ---",
- "cabundle": "----BEGIN CERTIFICATE-----\\r\\nstring\\r\\n-----END CERTIFICATE-----",
- "domain": "mydomain.com",
- "sans": [
- "mydomain.com",
- "www.mydomain.com"
], - "expiry": "2024-03-12",
- "installs": 1,
- "expired": true,
- "validFrom": "2023-12-11"
}
}