Contents
Sites
A site connects a CDN hostname to your origin, the server that holds your content. Each change to a site creates a configuration revision that is deployed to every edge location.
Examples marked as generated are built from the schema with synthetic values.
- GETList sites
/api/v2/sites - POSTCreate a site
/api/v2/sites - GETGet a site
/api/v2/sites/{site_id} - PATCHUpdate a site
/api/v2/sites/{site_id} - DELETEDelete a site
/api/v2/sites/{site_id} - GETList configuration revisions
/api/v2/sites/{site_id}/revisions - GETDeployment state per edge location
/api/v2/sites/{site_id}/deployments - GETPending actions of a migrated site
/api/v2/sites/{site_id}/pending-actions - POSTActivate a migrated site
/api/v2/sites/{site_id}/activation - POSTApply the pending change of a migrated site
/api/v2/sites/{site_id}/pending-change/application
/api/v2/sitesList sites
Returns the sites of your organization, one page at a time. Filter by status, or by legacy_id to find a site migrated from the previous platform.
- Authentication
- API token or portal session
- Required permission
sites.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| limit | Query | integer | No |
|
| cursor | Query | string | No |
|
| status | Query | string | No |
|
| legacy_id | Query | string | No |
|
Responses
200OKapplication/json
Fields (28)
Responses listSites 200 Field Type Required Rules data array<object> Yes data[].id string Yes - Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
data[].legacy_id string Yes - Can be null
data[].alias string Yes data[].cdn_hostname string Yes data[].name string Yes - Can be null
data[].type string Yes - One of: pull, files
data[].status string Yes - One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
data[].origin object Yes data[].origin.scheme string Yes - One of: http, https
data[].origin.host string Yes data[].origin.port integer Yes data[].origin.base_path string Yes data[].origin.host_header string Yes - Can be null
data[].origin.tls_verify boolean Yes data[].settings object Yes data[].settings.cache_ttl_seconds integer Yes - Minimum 0
- Maximum 35996400
data[].settings.cache_ignore_query_string boolean Yes data[].settings.robots_disallow_all boolean Yes data[].settings.cors_enabled boolean Yes data[].settings.compression_enabled boolean Yes data[].settings.force_https boolean Yes data[].settings.canonical_link_header boolean Yes data[].created_at string Yes - Format: date-time
data[].updated_at string Yes - Format: date-time
pagination object Yes pagination.next_cursor string Yes - Can be null
pagination.has_more boolean Yes Example (generated from the schema) { "data": [ { "id": "site_0a1b2c3", "legacy_id": "legacy_example", "alias": "example01", "cdn_hostname": "example01.a.cdnify.io", "name": "Example", "type": "pull", "status": "pending", "origin": { "scheme": "http", "host": "origin.example.com", "port": 1, "base_path": "string", "host_header": "string", "tls_verify": false }, "settings": { "cache_ttl_seconds": 0, "cache_ignore_query_string": false, "robots_disallow_all": false, "cors_enabled": false, "compression_enabled": false, "force_https": false, "canonical_link_header": false }, "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z" } ], "pagination": { "next_cursor": "string", "has_more": false } }400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/malformed_request", "title": "Malformed request", "status": 400, "code": "malformed_request", "request_id": "req_01EXAMPLE00000000000000000" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/sites' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/sitesCreate a site
Creates a pull site for an origin. The alias becomes part of the CDN hostname. The origin is checked first: private, loopback, link-local and platform addresses are refused with origin_invalid. The site is deployed to the edge in the background; follow its status.
- Authentication
- API token or portal session
- Required permission
sites.create
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| Idempotency-Key | Header | string | No |
|
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| alias | string | Yes |
|
| name | string | No |
|
| origin | object | Yes | |
| origin.scheme | string | No |
|
| origin.host | string | Yes |
|
| origin.port | integer | No | |
| origin.base_path | string | No |
|
| origin.host_header | string | No |
|
| origin.tls_verify | boolean | No | |
| settings | object | No | |
| settings.cache_ttl_seconds | integer | No |
|
| settings.cache_ignore_query_string | boolean | No | |
| settings.robots_disallow_all | boolean | No | |
| settings.cors_enabled | boolean | No | |
| settings.compression_enabled | boolean | No | |
| settings.force_https | boolean | No | |
| settings.canonical_link_header | boolean | No |
{
"alias": "example01",
"origin": {
"scheme": "https",
"host": "origin.example.com"
}
}Responses
201Createdapplication/json
Headers: Location
Fields (24)
Responses createSite 201 Field Type Required Rules id string Yes - Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
legacy_id string Yes - Can be null
alias string Yes cdn_hostname string Yes name string Yes - Can be null
type string Yes - One of: pull, files
status string Yes - One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
origin object Yes origin.scheme string Yes - One of: http, https
origin.host string Yes origin.port integer Yes origin.base_path string Yes origin.host_header string Yes - Can be null
origin.tls_verify boolean Yes settings object Yes settings.cache_ttl_seconds integer Yes - Minimum 0
- Maximum 35996400
settings.cache_ignore_query_string boolean Yes settings.robots_disallow_all boolean Yes settings.cors_enabled boolean Yes settings.compression_enabled boolean Yes settings.force_https boolean Yes settings.canonical_link_header boolean Yes created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
Example (generated from the schema) { "id": "site_0a1b2c3", "legacy_id": "legacy_example", "alias": "example01", "cdn_hostname": "example01.a.cdnify.io", "name": "Example", "type": "pull", "status": "pending", "origin": { "scheme": "http", "host": "origin.example.com", "port": 1, "base_path": "string", "host_header": "string", "tls_verify": false }, "settings": { "cache_ttl_seconds": 0, "cache_ignore_query_string": false, "robots_disallow_all": false, "cors_enabled": false, "compression_enabled": false, "force_https": false, "canonical_link_header": false }, "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z" }400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/malformed_request", "title": "Malformed request", "status": 400, "code": "malformed_request", "request_id": "req_01EXAMPLE00000000000000000" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }409Conflictapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/alias_in_use", "title": "Site name already in use", "status": 409, "code": "alias_in_use", "request_id": "req_01EXAMPLE00000000000000000" }413Content too largeapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/payload_too_large", "title": "Request too large", "status": 413, "code": "payload_too_large", "request_id": "req_01EXAMPLE00000000000000000" }415Unsupported media typeapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unsupported_media_type", "title": "Unsupported media type", "status": 415, "code": "unsupported_media_type", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X POST 'https://api.cdnify.lat/api/v2/sites' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"alias":"example01","origin":{"scheme":"https","host":"origin.example.com"}}'/api/v2/sites/{site_id}Get a site
Returns one site with its origin and delivery settings.
- Authentication
- API token or portal session
- Required permission
sites.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| site_id | Path | string | Yes |
|
Responses
200OKapplication/json
Fields (24)
Responses getSite 200 Field Type Required Rules id string Yes - Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
legacy_id string Yes - Can be null
alias string Yes cdn_hostname string Yes name string Yes - Can be null
type string Yes - One of: pull, files
status string Yes - One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
origin object Yes origin.scheme string Yes - One of: http, https
origin.host string Yes origin.port integer Yes origin.base_path string Yes origin.host_header string Yes - Can be null
origin.tls_verify boolean Yes settings object Yes settings.cache_ttl_seconds integer Yes - Minimum 0
- Maximum 35996400
settings.cache_ignore_query_string boolean Yes settings.robots_disallow_all boolean Yes settings.cors_enabled boolean Yes settings.compression_enabled boolean Yes settings.force_https boolean Yes settings.canonical_link_header boolean Yes created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
Example (generated from the schema) { "id": "site_0a1b2c3", "legacy_id": "legacy_example", "alias": "example01", "cdn_hostname": "example01.a.cdnify.io", "name": "Example", "type": "pull", "status": "pending", "origin": { "scheme": "http", "host": "origin.example.com", "port": 1, "base_path": "string", "host_header": "string", "tls_verify": false }, "settings": { "cache_ttl_seconds": 0, "cache_ignore_query_string": false, "robots_disallow_all": false, "cors_enabled": false, "compression_enabled": false, "force_https": false, "canonical_link_header": false }, "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/sites/{site_id}Update a site
Changes the alias, name, origin or delivery settings with a JSON Merge Patch (RFC 7396): send only the fields you change. Each change creates and publishes a new configuration revision.
- Authentication
- API token or portal session
- Required permission
sites.update
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| site_id | Path | string | Yes |
|
Request body
Content types: application/json, application/merge-patch+json
| Field | Type | Required | Rules |
|---|---|---|---|
| alias | string | No |
|
| name | string | No |
|
| origin | object | No | |
| origin.scheme | string | No |
|
| origin.host | string | Yes |
|
| origin.port | integer | No | |
| origin.base_path | string | No |
|
| origin.host_header | string | No |
|
| origin.tls_verify | boolean | No | |
| settings | object | No | |
| settings.cache_ttl_seconds | integer | No |
|
| settings.cache_ignore_query_string | boolean | No | |
| settings.robots_disallow_all | boolean | No | |
| settings.cors_enabled | boolean | No | |
| settings.compression_enabled | boolean | No | |
| settings.force_https | boolean | No | |
| settings.canonical_link_header | boolean | No |
{
"alias": "example01",
"name": "Example",
"origin": {
"scheme": "https",
"host": "origin.example.com",
"port": 1,
"base_path": "",
"host_header": "string",
"tls_verify": false
},
"settings": {
"cache_ttl_seconds": 0,
"cache_ignore_query_string": false,
"robots_disallow_all": false,
"cors_enabled": false,
"compression_enabled": false,
"force_https": false,
"canonical_link_header": false
}
}Responses
200OKapplication/json
Fields (24)
Responses updateSite 200 Field Type Required Rules id string Yes - Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
legacy_id string Yes - Can be null
alias string Yes cdn_hostname string Yes name string Yes - Can be null
type string Yes - One of: pull, files
status string Yes - One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
origin object Yes origin.scheme string Yes - One of: http, https
origin.host string Yes origin.port integer Yes origin.base_path string Yes origin.host_header string Yes - Can be null
origin.tls_verify boolean Yes settings object Yes settings.cache_ttl_seconds integer Yes - Minimum 0
- Maximum 35996400
settings.cache_ignore_query_string boolean Yes settings.robots_disallow_all boolean Yes settings.cors_enabled boolean Yes settings.compression_enabled boolean Yes settings.force_https boolean Yes settings.canonical_link_header boolean Yes created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
Example (generated from the schema) { "id": "site_0a1b2c3", "legacy_id": "legacy_example", "alias": "example01", "cdn_hostname": "example01.a.cdnify.io", "name": "Example", "type": "pull", "status": "pending", "origin": { "scheme": "http", "host": "origin.example.com", "port": 1, "base_path": "string", "host_header": "string", "tls_verify": false }, "settings": { "cache_ttl_seconds": 0, "cache_ignore_query_string": false, "robots_disallow_all": false, "cors_enabled": false, "compression_enabled": false, "force_https": false, "canonical_link_header": false }, "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }409Conflictapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/alias_in_use", "title": "Site name already in use", "status": 409, "code": "alias_in_use", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X PATCH 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"alias":"example01","name":"Example","origin":{"scheme":"https","host":"origin.example.com","port":1,"base_path":"","host_header":"string","tls_verify":false},"settings":{"cache_ttl_seconds":0,"cache_ignore_query_string":false,"robots_disallow_all":false,"cors_enabled":false,"compression_enabled":false,"force_https":false,"canonical_link_header":false}}'/api/v2/sites/{site_id}Delete a site
Deletes the site and stops serving it. Its alias stays reserved for your organization during a quarantine period.
- Authentication
- API token or portal session
- Required permission
sites.delete
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| site_id | Path | string | Yes |
|
Responses
204No content
401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X DELETE 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/sites/{site_id}/revisionsList configuration revisions
Returns the configuration revisions of the site, newest first.
- Authentication
- API token or portal session
- Required permission
sites.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| site_id | Path | string | Yes |
|
Responses
200OKapplication/json
Fields (8)
Responses listSiteRevisions 200 Field Type Required Rules data array<object> Yes data[].number integer Yes - Minimum 1
data[].status string Yes - One of: draft, validated, published, superseded, rejected, rolled_back
data[].config_hash string Yes - Pattern: ^[0-9a-f]{64}$
data[].source string Yes data[].config object Yes data[].created_at string Yes - Format: date-time
data[].published_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "data": [ { "number": 1, "status": "draft", "config_hash": "0a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f67890a1b2c3d4e5f6789", "source": "string", "config": {}, "created_at": "2026-01-15T10:00:00Z", "published_at": "2026-01-15T10:00:00Z" } ] }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/revisions' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/sites/{site_id}/deploymentsDeployment state per edge location
Shows, for each edge location, the revision it should serve and the revision it has applied, so you can see when a change is live everywhere.
- Authentication
- API token or portal session
- Required permission
sites.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| site_id | Path | string | Yes |
|
Responses
200OKapplication/json
Fields (18)
Responses listSiteDeployments 200 Field Type Required Rules current_revision integer Yes - Can be null
published_revision integer Yes - Can be null
data array<object> Yes data[].pop object Yes data[].pop.code string Yes data[].pop.name string Yes data[].pop.city string Yes data[].pop.country_code string Yes data[].pop.status string Yes data[].status string Yes - One of: pending, applying, applied, failed, stale, removing
data[].desired_revision integer Yes - Can be null
data[].applied_revision integer Yes - Can be null
data[].applied_config_hash string Yes - Can be null
data[].error string Yes - One of: quarantined, not_deliverable, apply_failed
- Can be null
data[].attempts integer Yes - Minimum 0
data[].desired_at string Yes - Format: date-time
data[].applied_at string Yes - Format: date-time
- Can be null
data[].reported_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "current_revision": 1, "published_revision": 1, "data": [ { "pop": { "code": "string", "name": "Example", "city": "string", "country_code": "string", "status": "string" }, "status": "pending", "desired_revision": 1, "applied_revision": 1, "applied_config_hash": "string", "error": "quarantined", "attempts": 0, "desired_at": "2026-01-15T10:00:00Z", "applied_at": "2026-01-15T10:00:00Z", "reported_at": "2026-01-15T10:00:00Z" } ] }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/deployments' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/sites/{site_id}/pending-actionsPending actions of a migrated site
Lists what a site migrated from the previous platform is waiting for: whether it must be activated, and the stored values that differ from the values being served.
- Authentication
- API token or portal session
- Required permission
sites.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| site_id | Path | string | Yes |
|
Responses
200OKapplication/json
Fields (10)
Responses getSitePendingActions 200 Field Type Required Rules activation object Yes activation.available boolean Yes activation.decision string Yes pending_change object Yes - Can be null
pending_change.revision integer Yes pending_change.created_at string Yes - Format: date-time
pending_change.changes array<object> Yes pending_change.changes[].field string Yes pending_change.changes[].current string | integer | boolean Yes pending_change.changes[].declared string | integer | boolean Yes Example (generated from the schema) { "activation": { "available": false, "decision": "OD-60" }, "pending_change": { "revision": 1, "created_at": "2026-01-15T10:00:00Z", "changes": [ { "field": "settings.force_https", "current": "string", "declared": "string" } ] } }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/pending-actions' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/sites/{site_id}/activationActivate a migrated site
Publishes a migrated site that the previous platform never deployed. The origin is checked again, then the site is validated, provisioned and deployed. A site that is not waiting for activation answers conflict.
- Authentication
- API token or portal session
- Required permission
sites.update
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| site_id | Path | string | Yes |
|
| Idempotency-Key | Header | string | No |
|
Responses
200OKapplication/json
Fields (24)
Responses activateSite 200 Field Type Required Rules id string Yes - Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
legacy_id string Yes - Can be null
alias string Yes cdn_hostname string Yes name string Yes - Can be null
type string Yes - One of: pull, files
status string Yes - One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
origin object Yes origin.scheme string Yes - One of: http, https
origin.host string Yes origin.port integer Yes origin.base_path string Yes origin.host_header string Yes - Can be null
origin.tls_verify boolean Yes settings object Yes settings.cache_ttl_seconds integer Yes - Minimum 0
- Maximum 35996400
settings.cache_ignore_query_string boolean Yes settings.robots_disallow_all boolean Yes settings.cors_enabled boolean Yes settings.compression_enabled boolean Yes settings.force_https boolean Yes settings.canonical_link_header boolean Yes created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
Example (generated from the schema) { "id": "site_0a1b2c3", "legacy_id": "legacy_example", "alias": "example01", "cdn_hostname": "example01.a.cdnify.io", "name": "Example", "type": "pull", "status": "pending", "origin": { "scheme": "http", "host": "origin.example.com", "port": 1, "base_path": "string", "host_header": "string", "tls_verify": false }, "settings": { "cache_ttl_seconds": 0, "cache_ignore_query_string": false, "robots_disallow_all": false, "cors_enabled": false, "compression_enabled": false, "force_https": false, "canonical_link_header": false }, "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }409Conflictapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/alias_in_use", "title": "Site name already in use", "status": 409, "code": "alias_in_use", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X POST 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/activation' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"/api/v2/sites/{site_id}/pending-change/applicationApply the pending change of a migrated site
Publishes the stored values of a migrated site that differ from the values being served. Send the draft revision number from the pending actions. The cache is emptied only when the change affects the cache key or the origin.
- Authentication
- API token or portal session
- Required permission
sites.update
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| site_id | Path | string | Yes |
|
| Idempotency-Key | Header | string | No |
|
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| revision | integer | Yes |
|
{
"revision": 1
}Responses
200OKapplication/json
Fields (24)
Responses applySitePendingChange 200 Field Type Required Rules id string Yes - Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
legacy_id string Yes - Can be null
alias string Yes cdn_hostname string Yes name string Yes - Can be null
type string Yes - One of: pull, files
status string Yes - One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
origin object Yes origin.scheme string Yes - One of: http, https
origin.host string Yes origin.port integer Yes origin.base_path string Yes origin.host_header string Yes - Can be null
origin.tls_verify boolean Yes settings object Yes settings.cache_ttl_seconds integer Yes - Minimum 0
- Maximum 35996400
settings.cache_ignore_query_string boolean Yes settings.robots_disallow_all boolean Yes settings.cors_enabled boolean Yes settings.compression_enabled boolean Yes settings.force_https boolean Yes settings.canonical_link_header boolean Yes created_at string Yes - Format: date-time
updated_at string Yes - Format: date-time
Example (generated from the schema) { "id": "site_0a1b2c3", "legacy_id": "legacy_example", "alias": "example01", "cdn_hostname": "example01.a.cdnify.io", "name": "Example", "type": "pull", "status": "pending", "origin": { "scheme": "http", "host": "origin.example.com", "port": 1, "base_path": "string", "host_header": "string", "tls_verify": false }, "settings": { "cache_ttl_seconds": 0, "cache_ignore_query_string": false, "robots_disallow_all": false, "cors_enabled": false, "compression_enabled": false, "force_https": false, "canonical_link_header": false }, "created_at": "2026-01-15T10:00:00Z", "updated_at": "2026-01-15T10:00:00Z" }400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/malformed_request", "title": "Malformed request", "status": 400, "code": "malformed_request", "request_id": "req_01EXAMPLE00000000000000000" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }404Not foundapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/not_found", "title": "Not found", "status": 404, "code": "not_found", "request_id": "req_01EXAMPLE00000000000000000" }409Conflictapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/alias_in_use", "title": "Site name already in use", "status": 409, "code": "alias_in_use", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }
curl -X POST 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/pending-change/application' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"revision":1}'