Get base domain
GET
/api/v0/base-domains/{base_domain_uuid}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid} \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "base_domain": "string", "uses_dns": true, "auto_generate_ssl_failures": 0, "auto_generate_ssl_max_failures": 0, "next_ssl_generate_attempt_at": "2024-01-01T00:00:00Z", "ssl_generation_failing_email_sent_at": "2024-01-01T00:00:00Z", "in_cloudflare_beta": true, "cloudflare_dns_migrated": true, "cloudflare_zone_id": "string", "cloudflare_zone_create_error": "string", "cloudflare_zone_create_error_from_cloudflare": true, "mx_record": "string", "spf_record": "string", "minimum_tls_version": "string", "site_count": 0, "subdomain_count": 0, "fallback_domain": "string", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "name_server_checks": [ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "base_domain": "string", "base_domain_uuid": "string" } ] }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }
Update base domain
PUT
/api/v0/base-domains/{base_domain_uuid}- Path parameters:
- Request body:
Allowed values:
1.21.3- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid} \ -X PUT \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "minimum_tls_version": "1.2" }' - Responses:
200OK
JSONCopied to clipboard{ "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "base_domain": "string", "uses_dns": true, "auto_generate_ssl_failures": 0, "auto_generate_ssl_max_failures": 0, "next_ssl_generate_attempt_at": "2024-01-01T00:00:00Z", "ssl_generation_failing_email_sent_at": "2024-01-01T00:00:00Z", "in_cloudflare_beta": true, "cloudflare_dns_migrated": true, "cloudflare_zone_id": "string", "cloudflare_zone_create_error": "string", "cloudflare_zone_create_error_from_cloudflare": true, "mx_record": "string", "spf_record": "string", "minimum_tls_version": "string", "cloudflare_name_servers": [ "string" ], "name_servers": [ "string" ], "cloudflare_dns_migration": [ {} ], "a_record": [ { "subdomain": "string", "target": "string" } ], "cname_record": [ { "subdomain": "string", "target": "string" } ], "txt_record": [ { "subdomain": "string", "target": "string" } ] }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Delete base domain
DELETE
/api/v0/base-domains/{base_domain_uuid}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid} \ -X DELETE \ -H "X-API-KEY: <your-api-key>" - Responses:
204Deleted
401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Status of base domain dns
GET
/api/v0/base-domains/{base_domain_uuid}/dns- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "success": true, "status": 0, "answers": [ "string" ], "error_message": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }
Create a base domain dns
POST
/api/v0/base-domains/{base_domain_uuid}/dns- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns \ -X POST \ -H "X-API-KEY: <your-api-key>" - Responses:
201Created
JSONCopied to clipboard{ "base_domain": "string", "uses_dns": true, "auto_generate_ssl_failures": 0, "auto_generate_ssl_max_failures": 0, "next_ssl_generate_attempt_at": "2024-01-01T00:00:00Z", "ssl_generation_failing_email_sent_at": "2024-01-01T00:00:00Z", "in_cloudflare_beta": true, "cloudflare_dns_migrated": true, "cloudflare_zone_id": "string", "cloudflare_zone_create_error": "string", "cloudflare_zone_create_error_from_cloudflare": true, "mx_record": "string", "spf_record": "string", "minimum_tls_version": "string", "site_count": 0, "subdomain_count": 0, "fallback_domain": "string", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "name_server_checks": [ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "base_domain": "string", "base_domain_uuid": "string" } ] }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Delete base domain dns
DELETE
/api/v0/base-domains/{base_domain_uuid}/dns- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns \ -X DELETE \ -H "X-API-KEY: <your-api-key>" - Responses:
200Removed
JSONCopied to clipboard{ "base_domain": "string", "uses_dns": true, "auto_generate_ssl_failures": 0, "auto_generate_ssl_max_failures": 0, "next_ssl_generate_attempt_at": "2024-01-01T00:00:00Z", "ssl_generation_failing_email_sent_at": "2024-01-01T00:00:00Z", "in_cloudflare_beta": true, "cloudflare_dns_migrated": true, "cloudflare_zone_id": "string", "cloudflare_zone_create_error": "string", "cloudflare_zone_create_error_from_cloudflare": true, "mx_record": "string", "spf_record": "string", "minimum_tls_version": "string", "site_count": 0, "subdomain_count": 0, "fallback_domain": "string", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "name_server_checks": [ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "base_domain": "string", "base_domain_uuid": "string" } ] }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
List of base domain dns records
GET
/api/v0/base-domains/{base_domain_uuid}/dns/records- Path parameters:
- Filters:
- Pagination:
Page number to fetch (1-indexed)
Number of items per page
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns/records \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard[ { "content": "string", "created_on": "2024-01-01T00:00:00Z", "id": "string", "locked": true, "meta": {}, "modified_on": "2024-01-01T00:00:00Z", "name": "string", "proxiable": true, "proxied": true, "ttl": 0, "type": "string", "zone_id": "string", "zone_name": "string" } ]401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Create a base domain dns record
POST
/api/v0/base-domains/{base_domain_uuid}/dns/records- Path parameters:
- Request body:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns/records \ -X POST \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "type": "string", "name": "string", "ttl": 0, "data": { "comment": "string" } }' - Responses:
201Created
JSONCopied to clipboard{ "content": "string", "created_on": "2024-01-01T00:00:00Z", "id": "string", "locked": true, "meta": {}, "modified_on": "2024-01-01T00:00:00Z", "name": "string", "proxiable": true, "proxied": true, "ttl": 0, "type": "string", "zone_id": "string", "zone_name": "string" }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Update a base domain dns record
PUT
/api/v0/base-domains/{base_domain_uuid}/dns/records/{record_id}- Path parameters:
- Request body:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns/records/{record_id} \ -X PUT \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "type": "string", "name": "string", "ttl": 0, "data": { "comment": "string" } }' - Responses:
200OK
JSONCopied to clipboard{ "content": "string", "created_on": "2024-01-01T00:00:00Z", "id": "string", "locked": true, "meta": {}, "modified_on": "2024-01-01T00:00:00Z", "name": "string", "proxiable": true, "proxied": true, "ttl": 0, "type": "string", "zone_id": "string", "zone_name": "string" }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Delete a base domain dns record
DELETE
/api/v0/base-domains/{base_domain_uuid}/dns/records/{record_id}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns/records/{record_id} \ -X DELETE \ -H "X-API-KEY: <your-api-key>" - Responses:
204Deleted
401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Retry setup for base domain dns
POST
/api/v0/base-domains/{base_domain_uuid}/dns/retry- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns/retry \ -X POST \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "base_domain": "string", "uses_dns": true, "auto_generate_ssl_failures": 0, "auto_generate_ssl_max_failures": 0, "next_ssl_generate_attempt_at": "2024-01-01T00:00:00Z", "ssl_generation_failing_email_sent_at": "2024-01-01T00:00:00Z", "in_cloudflare_beta": true, "cloudflare_dns_migrated": true, "cloudflare_zone_id": "string", "cloudflare_zone_create_error": "string", "cloudflare_zone_create_error_from_cloudflare": true, "mx_record": "string", "spf_record": "string", "minimum_tls_version": "string", "site_count": 0, "subdomain_count": 0, "fallback_domain": "string", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "name_server_checks": [ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "base_domain": "string", "base_domain_uuid": "string" } ] }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Validate base domain dns
GET
/api/v0/base-domains/{base_domain_uuid}/dns/validate- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/dns/validate \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "valid": true }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Migrate base domain to Cloudflare
PUT
/api/v0/base-domains/{base_domain_uuid}/migrate- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/migrate \ -X PUT \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "base_domain": "string", "uses_dns": true, "auto_generate_ssl_failures": 0, "auto_generate_ssl_max_failures": 0, "next_ssl_generate_attempt_at": "2024-01-01T00:00:00Z", "ssl_generation_failing_email_sent_at": "2024-01-01T00:00:00Z", "in_cloudflare_beta": true, "cloudflare_dns_migrated": true, "cloudflare_zone_id": "string", "cloudflare_zone_create_error": "string", "cloudflare_zone_create_error_from_cloudflare": true, "mx_record": "string", "spf_record": "string", "minimum_tls_version": "string", "site_count": 0, "subdomain_count": 0, "fallback_domain": "string", "organisation_uuid": "00000000-0000-0000-0000-000000000000", "name_server_checks": [ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "base_domain": "string", "base_domain_uuid": "string" } ] }401Unauthorized
JSONCopied to clipboard{ "error": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Get subdomains from base domain
GET
/api/v0/base-domains/{base_domain_uuid}/subdomains- Path parameters:
- Filters:
- Pagination:
Page number to fetch (1-indexed)
Number of items per page
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/base-domains/{base_domain_uuid}/subdomains \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard[ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "domain_name": "string", "subpath": "string", "hosting_choice": "string", "force_ssl": true, "auto_generate_ssl": true, "latest_hosted_build_id": 0, "ssl_certificate_id": 0, "pinned_build_id": 0, "mode": "string", "is_fallback_redirect": true, "site_uuid": "00000000-0000-0000-0000-000000000000", "site_id": "00000000-0000-0000-0000-000000000000" } ]403Forbidden
JSONCopied to clipboard{ "error": "string" }