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.
- GETGet the organization
/api/v2/organization - PATCHUpdate the organization
/api/v2/organization - GETList members
/api/v2/organization/members - POSTAdd a member
/api/v2/organization/members - PATCHChange the role of a member
/api/v2/organization/members/{member_id} - DELETERemove a member
/api/v2/organization/members/{member_id} - POSTInvite a member
/api/v2/organization/invitations
/api/v2/organizationGet 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 Field Type Required Rules id string Yes type string Yes - One of: platform, reseller, customer
name string Yes status string Yes default_locale string Yes - One of: en, es
timezone string Yes accounting_ref string Yes - Can be null
created_at string Yes - Format: date-time
updated_at string Yes - 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 'https://api.cdnify.lat/api/v2/organization' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/organizationUpdate 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
| Field | Type | Required | Rules |
|---|---|---|---|
| name | string | No |
|
| default_locale | string | No |
|
| timezone | string | No |
{
"name": "Example",
"default_locale": "en",
"timezone": "UTC"
}Responses
200OKapplication/json
Fields (9)
Responses updateOrganization 200 Field Type Required Rules id string Yes type string Yes - One of: platform, reseller, customer
name string Yes status string Yes default_locale string Yes - One of: en, es
timezone string Yes accounting_ref string Yes - Can be null
created_at string Yes - Format: date-time
updated_at string Yes - 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 -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"}'/api/v2/organization/membersList 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 Field Type Required Rules data array<object> Yes data[].id string Yes data[].user_id string Yes data[].role string Yes data[].status string Yes data[].created_at string Yes - Format: date-time
data[].email string No data[].name string No data[].user_status string No - 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 'https://api.cdnify.lat/api/v2/organization/members' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/organization/membersAdd a member
Adds an existing user to the organization with a role.
- Authentication
- API token or portal session
- Required permission
members.manage
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| Idempotency-Key | Header | string | No |
|
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| user_id | string | Yes |
|
| role | string | Yes |
{
"user_id": "00000000-0000-4000-8000-000000000000",
"role": "developer"
}Responses
201Createdapplication/json
Headers: Location
Fields (8)
Responses addMember 201 Field Type Required Rules id string Yes user_id string Yes role string Yes status string Yes created_at string Yes - Format: date-time
email string No name string No user_status string No - 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 -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"}'/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
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| member_id | Path | string | Yes |
|
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| role | string | Yes |
|
{
"role": "owner"
}Responses
200OKapplication/json
Fields (8)
Responses changeMemberRole 200 Field Type Required Rules id string Yes user_id string Yes role string Yes status string Yes created_at string Yes - Format: date-time
email string No name string No user_status string No - 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 -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"}'/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
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| member_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" }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 -X DELETE 'https://api.cdnify.lat/api/v2/organization/members/member_example' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"/api/v2/organization/invitationsInvite 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
| Field | Type | Required | Rules |
|---|---|---|---|
| string | Yes |
| |
| first_name | string | No |
|
| last_name | string | No |
|
| locale | string | No |
|
| role | string | Yes |
|
{
"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 Field Type Required Rules user_id string Yes email string Yes role string Yes invitation object Yes invitation.delivery string Yes - One of: email, link
invitation.expires_at string Yes - Format: date-time
invitation.url string No 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.