Skip to main content
Contents

Plans and entitlements

The plans offered to your organization and the limits that apply to it.

Examples marked as generated are built from the schema with synthetic values.

GET/api/v2/organization/entitlements

List entitlements

Returns the limits and features that apply to the organization.

Authentication
API token or portal session
Required permission
organization.read

Responses

  • 200OKapplication/json

    Fields (4)
    Responses listEntitlements 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].keystringYes
    data[].valueanyYes
    data[].sourcestringYes
    • One of: plan, override, default
    Example (generated from the schema)
    {
      "data": [
        {
          "key": "sites.max",
          "value": "string",
          "source": "plan"
        }
      ]
    }
  • 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"
    }
curl
curl 'https://api.cdnify.lat/api/v2/organization/entitlements' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
GET/api/v2/plans

List plans

Returns the plans offered to the organization.

Authentication
API token or portal session
Required permission
organization.read

Responses

  • 200OKapplication/json

    Fields (13)
    Responses listPlans 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].codestringYes
    data[].namestringYes
    data[].descriptionstringYes
    data[].familystringYes
    • Can be null
    data[].priceoneOfYes
    data[].price.#1anyNo
    • Can be null
    data[].price.#2objectNo
    data[].price.#2.amountstringYes
    data[].price.#2.currencystringYes
    data[].price.#2.interval_unitstringYes
    data[].price.#2.interval_countintegerYes
    data[].entitlementsobjectYes
    Example (generated from the schema)
    {
      "data": [
        {
          "code": "string",
          "name": "Example",
          "description": "string",
          "family": "string",
          "price": "string",
          "entitlements": {}
        }
      ]
    }
  • 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"
    }
curl
curl 'https://api.cdnify.lat/api/v2/plans' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"