Skip to main content
Contents

Organization and team

The organization your credential belongs to, its members, their roles and invitations.

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

GET/api/v2/organization

Get the organization

Returns the active organization of the caller.

Authentication
API token or portal session
Required permission
organization.read

Responses

  • 200OKapplication/json

    Fields (9)
    Responses getOrganization 200
    FieldTypeRequiredRules
    idstringYes
    typestringYes
    • One of: platform, reseller, customer
    namestringYes
    statusstringYes
    default_localestringYes
    • One of: en, es
    timezonestringYes
    accounting_refstringYes
    • Can be null
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • Format: date-time
    Example (generated from the schema)
    {
      "id": "id_example",
      "type": "platform",
      "name": "Example",
      "status": "string",
      "default_locale": "en",
      "timezone": "UTC",
      "accounting_ref": "string",
      "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"
    }
curl
curl 'https://api.cdnify.lat/api/v2/organization' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
PATCH/api/v2/organization

Update the organization

Changes the settings of the active organization.

Authentication
API token or portal session
Required permission
organization.update

Request body

Content types: application/json

Request body updateOrganization
FieldTypeRequiredRules
namestringNo
  • At most 120 characters
default_localestringNo
  • One of: en, es
timezonestringNo
Example (generated from the schema)
{
  "name": "Example",
  "default_locale": "en",
  "timezone": "UTC"
}

Responses

  • 200OKapplication/json

    Fields (9)
    Responses updateOrganization 200
    FieldTypeRequiredRules
    idstringYes
    typestringYes
    • One of: platform, reseller, customer
    namestringYes
    statusstringYes
    default_localestringYes
    • One of: en, es
    timezonestringYes
    accounting_refstringYes
    • Can be null
    created_atstringYes
    • Format: date-time
    updated_atstringYes
    • Format: date-time
    Example (generated from the schema)
    {
      "id": "id_example",
      "type": "platform",
      "name": "Example",
      "status": "string",
      "default_locale": "en",
      "timezone": "UTC",
      "accounting_ref": "string",
      "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"
    }
  • 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/organization' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Example","default_locale":"en","timezone":"UTC"}'
GET/api/v2/organization/members

List members

Returns the people who belong to the organization and their roles.

Authentication
API token or portal session
Required permission
members.read

Responses

  • 200OKapplication/json

    Fields (9)
    Responses listMembers 200
    FieldTypeRequiredRules
    dataarray<object>Yes
    data[].idstringYes
    data[].user_idstringYes
    data[].rolestringYes
    data[].statusstringYes
    data[].created_atstringYes
    • Format: date-time
    data[].emailstringNo
    data[].namestringNo
    data[].user_statusstringNo
    • One of: pending, active, disabled, locked, deleted
    Example (generated from the schema)
    {
      "data": [
        {
          "id": "id_example",
          "user_id": "user_example",
          "role": "string",
          "status": "string",
          "created_at": "2026-01-15T10:00:00Z",
          "email": "user@example.test",
          "name": "Example",
          "user_status": "pending"
        }
      ]
    }
  • 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/organization/members' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/organization/members

Add a member

Adds an existing user to the organization with a role.

Authentication
API token or portal session
Required permission
members.manage

Parameters

Parameters addMember
NameInTypeRequiredRules
Idempotency-KeyHeaderstringNo
  • At most 255 characters

Request body

Content types: application/json

Request body addMember
FieldTypeRequiredRules
user_idstringYes
  • Format: uuid
rolestringYes
Example (generated from the schema)
{
  "user_id": "00000000-0000-4000-8000-000000000000",
  "role": "developer"
}

Responses

  • 201Createdapplication/json

    Headers: Location

    Fields (8)
    Responses addMember 201
    FieldTypeRequiredRules
    idstringYes
    user_idstringYes
    rolestringYes
    statusstringYes
    created_atstringYes
    • Format: date-time
    emailstringNo
    namestringNo
    user_statusstringNo
    • One of: pending, active, disabled, locked, deleted
    Example (generated from the schema)
    {
      "id": "id_example",
      "user_id": "user_example",
      "role": "string",
      "status": "string",
      "created_at": "2026-01-15T10:00:00Z",
      "email": "user@example.test",
      "name": "Example",
      "user_status": "pending"
    }
  • 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"
    }
  • 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/organization/members' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"user_id":"00000000-0000-4000-8000-000000000000","role":"developer"}'
PATCH/api/v2/organization/members/{member_id}

Change the role of a member

Gives a member another role. Only an owner grants or removes the owner role, and the last owner keeps it (last_owner).

Authentication
API token or portal session
Required permission
members.manage

Parameters

Parameters changeMemberRole
NameInTypeRequiredRules
member_idPathstringYes
  • Pattern: ^mbr_[0-9a-f]{32}$

Request body

Content types: application/json

Request body changeMemberRole
FieldTypeRequiredRules
rolestringYes
  • One of: owner, admin, developer, billing, viewer, reseller_owner, reseller_admin
Example (generated from the schema)
{
  "role": "owner"
}

Responses

  • 200OKapplication/json

    Fields (8)
    Responses changeMemberRole 200
    FieldTypeRequiredRules
    idstringYes
    user_idstringYes
    rolestringYes
    statusstringYes
    created_atstringYes
    • Format: date-time
    emailstringNo
    namestringNo
    user_statusstringNo
    • One of: pending, active, disabled, locked, deleted
    Example (generated from the schema)
    {
      "id": "id_example",
      "user_id": "user_example",
      "role": "string",
      "status": "string",
      "created_at": "2026-01-15T10:00:00Z",
      "email": "user@example.test",
      "name": "Example",
      "user_status": "pending"
    }
  • 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 PATCH 'https://api.cdnify.lat/api/v2/organization/members/mbr_0a1b2c3d4e5f67890a1b2c3d4e5f6789' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role":"owner"}'
DELETE/api/v2/organization/members/{member_id}

Remove a member

Removes a person from the organization.

Authentication
API token or portal session
Required permission
members.manage

Parameters

Parameters removeMember
NameInTypeRequiredRules
member_idPathstringYes

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"
    }
  • 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"
    }
curl
curl -X DELETE 'https://api.cdnify.lat/api/v2/organization/members/member_example' \
  -H "Authorization: Bearer $CDNIFY_API_TOKEN"
POST/api/v2/organization/invitations

Invite a member

Invites a person by e-mail to join the active organization with a role.

Authentication
Portal session only
Required permission
members.manage

Request body

Content types: application/json

Request body inviteMember
FieldTypeRequiredRules
emailstringYes
  • Format: email
  • At most 254 characters
first_namestringNo
  • At most 100 characters
last_namestringNo
  • At most 100 characters
localestringNo
  • One of: en, es
rolestringYes
  • One of: owner, admin, developer, billing, viewer, reseller_owner, reseller_admin
Example (generated from the schema)
{
  "email": "user@example.test",
  "first_name": "string",
  "last_name": "string",
  "locale": "en",
  "role": "owner"
}

Responses

  • 201Createdapplication/json

    Headers: Cache-Control

    Fields (7)
    Responses inviteMember 201
    FieldTypeRequiredRules
    user_idstringYes
    emailstringYes
    rolestringYes
    invitationobjectYes
    invitation.deliverystringYes
    • One of: email, link
    invitation.expires_atstringYes
    • Format: date-time
    invitation.urlstringNo
    Example (generated from the schema)
    {
      "user_id": "user_example",
      "email": "user@example.test",
      "role": "string",
      "invitation": {
        "delivery": "email",
        "expires_at": "2026-01-15T10:00:00Z",
        "url": "https://example.com/"
      }
    }
  • 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"
    }
  • 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"
    }
  • 429Too many requestsapplication/problem+json

    Headers: Retry-After

    Error codes:

    Problem details body
    Example
    {
      "type": "https://www.cdnify.lat/docs/errors/rate_limited",
      "title": "Too many requests",
      "status": 429,
      "code": "rate_limited",
      "request_id": "req_01EXAMPLE00000000000000000"
    }

Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.