Skip to main content
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.

GET/api/v2/sites

List 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

Parameters listSites
NameInTypeRequiredRules
limitQueryintegerNo
  • Minimum 1
  • Maximum 200
  • Default: 50
cursorQuerystringNo
  • At most 512 characters
statusQuerystringNo
  • One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
legacy_idQuerystringNo
  • Pattern: ^[0-9a-f]{7}$

Responses

  • 200OKapplication/json

    Fields (28)
    Responses listSites 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].idstringYes
    • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
    data[].legacy_idstringYes
    • Can be null
    data[].aliasstringYes
    data[].cdn_hostnamestringYes
    data[].namestringYes
    • Can be null
    data[].typestringYes
    • One of: pull, files
    data[].statusstringYes
    • One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
    data[].originobjectYes
    data[].origin.schemestringYes
    • One of: http, https
    data[].origin.hoststringYes
    data[].origin.portintegerYes
    data[].origin.base_pathstringYes
    data[].origin.host_headerstringYes
    • Can be null
    data[].origin.tls_verifybooleanYes
    data[].settingsobjectYes
    data[].settings.cache_ttl_secondsintegerYes
    • Minimum 0
    • Maximum 35996400
    data[].settings.cache_ignore_query_stringbooleanYes
    data[].settings.robots_disallow_allbooleanYes
    data[].settings.cors_enabledbooleanYes
    data[].settings.compression_enabledbooleanYes
    data[].settings.force_httpsbooleanYes
    data[].settings.canonical_link_headerbooleanYes
    data[].created_atstringYes
    • Format: date-time
    data[].updated_atstringYes
    • Format: date-time
    paginationobjectYes
    pagination.next_cursorstringYes
    • Can be null
    pagination.has_morebooleanYes
    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
curl 'https://api.cdnify.lat/api/v2/sites' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/sites

Create 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

Parameters createSite
NameInTypeRequiredRules
Idempotency-KeyHeaderstringNo
  • At most 255 characters

Request body

Content types: application/json

Request body createSite
FieldTypeRequiredRules
aliasstringYes
  • Pattern: ^[a-z0-9]{5,63}$
namestringNo
  • At most 120 characters
originobjectYes
origin.schemestringNo
  • One of: http, https
  • Default: https
origin.hoststringYes
  • At most 253 characters
origin.portintegerNo
origin.base_pathstringNo
  • Pattern: ^(/[A-Za-z0-9._~-]+)*$
origin.host_headerstringNo
  • At most 253 characters
origin.tls_verifybooleanNo
settingsobjectNo
settings.cache_ttl_secondsintegerNo
  • Minimum 0
  • Maximum 35996400
settings.cache_ignore_query_stringbooleanNo
settings.robots_disallow_allbooleanNo
settings.cors_enabledbooleanNo
settings.compression_enabledbooleanNo
settings.force_httpsbooleanNo
settings.canonical_link_headerbooleanNo
Example: basic
{
  "alias": "example01",
  "origin": {
    "scheme": "https",
    "host": "origin.example.com"
  }
}

Responses

  • 201Createdapplication/json

    Headers: Location

    Fields (24)
    Responses createSite 201
    FieldTypeRequiredRules
    idstringYes
    • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
    legacy_idstringYes
    • Can be null
    aliasstringYes
    cdn_hostnamestringYes
    namestringYes
    • Can be null
    typestringYes
    • One of: pull, files
    statusstringYes
    • One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
    originobjectYes
    origin.schemestringYes
    • One of: http, https
    origin.hoststringYes
    origin.portintegerYes
    origin.base_pathstringYes
    origin.host_headerstringYes
    • Can be null
    origin.tls_verifybooleanYes
    settingsobjectYes
    settings.cache_ttl_secondsintegerYes
    • Minimum 0
    • Maximum 35996400
    settings.cache_ignore_query_stringbooleanYes
    settings.robots_disallow_allbooleanYes
    settings.cors_enabledbooleanYes
    settings.compression_enabledbooleanYes
    settings.force_httpsbooleanYes
    settings.canonical_link_headerbooleanYes
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • 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
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"}}'
GET/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

Parameters getSite
NameInTypeRequiredRules
site_idPathstringYes
  • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$

Responses

  • 200OKapplication/json

    Fields (24)
    Responses getSite 200
    FieldTypeRequiredRules
    idstringYes
    • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
    legacy_idstringYes
    • Can be null
    aliasstringYes
    cdn_hostnamestringYes
    namestringYes
    • Can be null
    typestringYes
    • One of: pull, files
    statusstringYes
    • One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
    originobjectYes
    origin.schemestringYes
    • One of: http, https
    origin.hoststringYes
    origin.portintegerYes
    origin.base_pathstringYes
    origin.host_headerstringYes
    • Can be null
    origin.tls_verifybooleanYes
    settingsobjectYes
    settings.cache_ttl_secondsintegerYes
    • Minimum 0
    • Maximum 35996400
    settings.cache_ignore_query_stringbooleanYes
    settings.robots_disallow_allbooleanYes
    settings.cors_enabledbooleanYes
    settings.compression_enabledbooleanYes
    settings.force_httpsbooleanYes
    settings.canonical_link_headerbooleanYes
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • 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
curl 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
PATCH/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

Parameters updateSite
NameInTypeRequiredRules
site_idPathstringYes
  • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$

Request body

Content types: application/json, application/merge-patch+json

Request body updateSite
FieldTypeRequiredRules
aliasstringNo
  • Pattern: ^[a-z0-9]{5,63}$
namestringNo
  • At most 120 characters
  • Can be null
originobjectNo
origin.schemestringNo
  • One of: http, https
  • Default: https
origin.hoststringYes
  • At most 253 characters
origin.portintegerNo
origin.base_pathstringNo
  • Pattern: ^(/[A-Za-z0-9._~-]+)*$
origin.host_headerstringNo
  • At most 253 characters
origin.tls_verifybooleanNo
settingsobjectNo
settings.cache_ttl_secondsintegerNo
  • Minimum 0
  • Maximum 35996400
settings.cache_ignore_query_stringbooleanNo
settings.robots_disallow_allbooleanNo
settings.cors_enabledbooleanNo
settings.compression_enabledbooleanNo
settings.force_httpsbooleanNo
settings.canonical_link_headerbooleanNo
Example (generated from the schema)
{
  "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
    FieldTypeRequiredRules
    idstringYes
    • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
    legacy_idstringYes
    • Can be null
    aliasstringYes
    cdn_hostnamestringYes
    namestringYes
    • Can be null
    typestringYes
    • One of: pull, files
    statusstringYes
    • One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
    originobjectYes
    origin.schemestringYes
    • One of: http, https
    origin.hoststringYes
    origin.portintegerYes
    origin.base_pathstringYes
    origin.host_headerstringYes
    • Can be null
    origin.tls_verifybooleanYes
    settingsobjectYes
    settings.cache_ttl_secondsintegerYes
    • Minimum 0
    • Maximum 35996400
    settings.cache_ignore_query_stringbooleanYes
    settings.robots_disallow_allbooleanYes
    settings.cors_enabledbooleanYes
    settings.compression_enabledbooleanYes
    settings.force_httpsbooleanYes
    settings.canonical_link_headerbooleanYes
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • 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
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}}'
DELETE/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

Parameters deleteSite
NameInTypeRequiredRules
site_idPathstringYes
  • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$

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
curl -X DELETE 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
GET/api/v2/sites/{site_id}/revisions

List configuration revisions

Returns the configuration revisions of the site, newest first.

Authentication
API token or portal session
Required permission
sites.read

Parameters

Parameters listSiteRevisions
NameInTypeRequiredRules
site_idPathstringYes
  • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$

Responses

  • 200OKapplication/json

    Fields (8)
    Responses listSiteRevisions 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].numberintegerYes
    • Minimum 1
    data[].statusstringYes
    • One of: draft, validated, published, superseded, rejected, rolled_back
    data[].config_hashstringYes
    • Pattern: ^[0-9a-f]{64}$
    data[].sourcestringYes
    data[].configobjectYes
    data[].created_atstringYes
    • Format: date-time
    data[].published_atstringYes
    • 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
curl 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/revisions' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
GET/api/v2/sites/{site_id}/deployments

Deployment 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

Parameters listSiteDeployments
NameInTypeRequiredRules
site_idPathstringYes
  • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$

Responses

  • 200OKapplication/json

    Fields (18)
    Responses listSiteDeployments 200
    FieldTypeRequiredRules
    current_revisionintegerYes
    • Can be null
    published_revisionintegerYes
    • Can be null
    dataarray<object>Yes
    data[].popobjectYes
    data[].pop.codestringYes
    data[].pop.namestringYes
    data[].pop.citystringYes
    data[].pop.country_codestringYes
    data[].pop.statusstringYes
    data[].statusstringYes
    • One of: pending, applying, applied, failed, stale, removing
    data[].desired_revisionintegerYes
    • Can be null
    data[].applied_revisionintegerYes
    • Can be null
    data[].applied_config_hashstringYes
    • Can be null
    data[].errorstringYes
    • One of: quarantined, not_deliverable, apply_failed
    • Can be null
    data[].attemptsintegerYes
    • Minimum 0
    data[].desired_atstringYes
    • Format: date-time
    data[].applied_atstringYes
    • Format: date-time
    • Can be null
    data[].reported_atstringYes
    • 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
curl 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/deployments' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
GET/api/v2/sites/{site_id}/pending-actions

Pending 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

Parameters getSitePendingActions
NameInTypeRequiredRules
site_idPathstringYes
  • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$

Responses

  • 200OKapplication/json

    Fields (10)
    Responses getSitePendingActions 200
    FieldTypeRequiredRules
    activationobjectYes
    activation.availablebooleanYes
    activation.decisionstringYes
    pending_changeobjectYes
    • Can be null
    pending_change.revisionintegerYes
    pending_change.created_atstringYes
    • Format: date-time
    pending_change.changesarray<object>Yes
    pending_change.changes[].fieldstringYes
    pending_change.changes[].currentstring | integer | booleanYes
    pending_change.changes[].declaredstring | integer | booleanYes
    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
curl 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/pending-actions' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/sites/{site_id}/activation

Activate 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

Parameters activateSite
NameInTypeRequiredRules
site_idPathstringYes
  • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
Idempotency-KeyHeaderstringNo
  • At most 255 characters

Responses

  • 200OKapplication/json

    Fields (24)
    Responses activateSite 200
    FieldTypeRequiredRules
    idstringYes
    • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
    legacy_idstringYes
    • Can be null
    aliasstringYes
    cdn_hostnamestringYes
    namestringYes
    • Can be null
    typestringYes
    • One of: pull, files
    statusstringYes
    • One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
    originobjectYes
    origin.schemestringYes
    • One of: http, https
    origin.hoststringYes
    origin.portintegerYes
    origin.base_pathstringYes
    origin.host_headerstringYes
    • Can be null
    origin.tls_verifybooleanYes
    settingsobjectYes
    settings.cache_ttl_secondsintegerYes
    • Minimum 0
    • Maximum 35996400
    settings.cache_ignore_query_stringbooleanYes
    settings.robots_disallow_allbooleanYes
    settings.cors_enabledbooleanYes
    settings.compression_enabledbooleanYes
    settings.force_httpsbooleanYes
    settings.canonical_link_headerbooleanYes
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • 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
curl -X POST 'https://api.cdnify.lat/api/v2/sites/site_0a1b2c3/activation' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"
POST/api/v2/sites/{site_id}/pending-change/application

Apply 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

Parameters applySitePendingChange
NameInTypeRequiredRules
site_idPathstringYes
  • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
Idempotency-KeyHeaderstringNo
  • At most 255 characters

Request body

Content types: application/json

Request body applySitePendingChange
FieldTypeRequiredRules
revisionintegerYes
  • Minimum 1
Example (generated from the schema)
{
  "revision": 1
}

Responses

  • 200OKapplication/json

    Fields (24)
    Responses applySitePendingChange 200
    FieldTypeRequiredRules
    idstringYes
    • Pattern: ^site_([0-9a-f]{7}|[0-9a-f]{12})$
    legacy_idstringYes
    • Can be null
    aliasstringYes
    cdn_hostnamestringYes
    namestringYes
    • Can be null
    typestringYes
    • One of: pull, files
    statusstringYes
    • One of: pending, validating, provisioning, deploying, active, degraded, failed, suspended, deleting, deleted
    originobjectYes
    origin.schemestringYes
    • One of: http, https
    origin.hoststringYes
    origin.portintegerYes
    origin.base_pathstringYes
    origin.host_headerstringYes
    • Can be null
    origin.tls_verifybooleanYes
    settingsobjectYes
    settings.cache_ttl_secondsintegerYes
    • Minimum 0
    • Maximum 35996400
    settings.cache_ignore_query_stringbooleanYes
    settings.robots_disallow_allbooleanYes
    settings.cors_enabledbooleanYes
    settings.compression_enabledbooleanYes
    settings.force_httpsbooleanYes
    settings.canonical_link_headerbooleanYes
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • 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
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}'