Contents
Authentication and API tokens
Sessions of the customer portal, two-factor authentication, account sign-up and API tokens. Most of these operations accept only a signed-in session.
Examples marked as generated are built from the schema with synthetic values.
- GETCurrent session
/api/v2/auth/session - POSTSign in
/api/v2/auth/login - POSTSign out
/api/v2/auth/logout - POSTRequest a password reset
/api/v2/auth/password-reset - POSTReset the password
/api/v2/auth/password-reset/complete - POSTVerify the second factor
/api/v2/auth/mfa/verify - POSTConfirm your identity
/api/v2/auth/reauthenticate - POSTStart TOTP enrollment
/api/v2/auth/mfa/totp - POSTConfirm TOTP enrollment
/api/v2/auth/mfa/totp/{factor_id}/confirm - POSTRegenerate recovery codes
/api/v2/auth/mfa/recovery-codes - GETList second factors
/api/v2/auth/mfa/factors - DELETERemove a second factor
/api/v2/auth/mfa/factors/{factor_id} - POSTCreate an account
/api/v2/auth/register - POSTVerify the e-mail address
/api/v2/auth/email-verification - POSTResend the verification e-mail
/api/v2/auth/email-verification/resend - POSTSwitch organization
/api/v2/auth/switch-organization - POSTChange the password
/api/v2/auth/password - POSTOpen a support session
/api/v2/auth/impersonation - POSTActivate an invited account
/api/v2/auth/activate - GETList API tokens
/api/v2/api-tokens - POSTCreate an API token
/api/v2/api-tokens - POSTIssue a new API v1 key
/api/v2/api-tokens/legacy-key - DELETERevoke an API token
/api/v2/api-tokens/{token_id}
/api/v2/auth/sessionCurrent session
Returns the signed-in user, the active organization, its capabilities and the state of the second factor.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Responses
200OKapplication/json
Fields (21)
Responses getSession 200 Field Type Required Rules user object Yes user.id string Yes user.email string Yes user.name string Yes - Can be null
user.locale string Yes - One of: en, es
- Can be null
user.timezone string Yes - Can be null
user.mfa_enabled boolean Yes organization_id string Yes organizations array<object> Yes organizations[].id string Yes organizations[].name string Yes organizations[].type string Yes - One of: platform, reseller, customer
organizations[].role string Yes permissions array<string> Yes platform_roles array<string> Yes mfa object Yes mfa.required boolean Yes mfa.satisfied boolean Yes impersonation object Yes impersonation.active boolean Yes impersonation.expires_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "user": { "id": "id_example", "email": "user@example.test", "name": "Example", "locale": "en", "timezone": "UTC", "mfa_enabled": false }, "organization_id": "organization_example", "organizations": [ { "id": "org_u0123456789", "name": "Example", "type": "platform", "role": "owner" } ], "permissions": [ "string" ], "platform_roles": [ "string" ], "mfa": { "required": false, "satisfied": false }, "impersonation": { "active": false, "expires_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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/auth/loginSign in
Starts a portal session with an e-mail address and a password. When the account has a second factor, the answer asks for it. Every failure answers invalid_credentials, without saying why.
- Authentication
- None
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| string | Yes |
| |
| password | string | Yes |
|
{
"email": "user@example.test",
"password": "example-password"
}Responses
200OKapplication/json
Headers: Set-Cookie
Fields (1)
Responses login 200 Field Type Required Rules status string Yes - One of: authenticated, mfa_required, mfa_enrollment_required, password_reset_required
Example (generated from the schema) { "status": "authenticated" }401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }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" }
curl -X POST 'https://api.cdnify.lat/api/v2/auth/login' \
-H "Content-Type: application/json" \
-d '{"email":"user@example.test","password":"example-password"}'/api/v2/auth/logoutSign out
Ends the portal session. Repeating it is harmless.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
Body: object
{}Responses
204No content
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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/auth/password-resetRequest a password reset
Sends a reset link by e-mail. The answer is the same whether or not the address has an account.
- Authentication
- None
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| string | Yes |
|
{
"email": "user@example.test"
}Responses
202Accepted
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" }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" }
curl -X POST 'https://api.cdnify.lat/api/v2/auth/password-reset' \
-H "Content-Type: application/json" \
-d '{"email":"user@example.test"}'/api/v2/auth/password-reset/completeReset the password
Sets a new password with the one-time token from the reset e-mail. Every session of the user ends.
- Authentication
- None
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| token | string | Yes |
|
| password | string | Yes |
|
{
"token": "example-one-time-token",
"password": "example-password"
}Responses
204No content
400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/token_invalid", "title": "Link invalid or expired", "status": 400, "code": "token_invalid", "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" }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" }
curl -X POST 'https://api.cdnify.lat/api/v2/auth/password-reset/complete' \
-H "Content-Type: application/json" \
-d '{"token":"example-one-time-token","password":"example-password"}'/api/v2/auth/mfa/verifyVerify the second factor
Completes a sign-in with a TOTP code or a recovery code.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| method | string | Yes |
|
| code | string | Yes |
|
{
"method": "totp",
"code": "string"
}Responses
200OKapplication/json
Headers: Set-Cookie
Fields (1)
Responses verifyMfa 200 Field Type Required Rules status string Yes - One of: authenticated, mfa_required, mfa_enrollment_required, password_reset_required
Example (generated from the schema) { "status": "authenticated" }401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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.
/api/v2/auth/reauthenticateConfirm your identity
Confirms your identity again before a sensitive action, such as creating an API token. Operations that need it answer reauthentication_required until you do.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| method | string | Yes |
|
| code | string | No |
|
| password | string | No |
|
{
"method": "totp",
"code": "string",
"password": "example-password"
}Responses
200OKapplication/json
Headers: Set-Cookie
Fields (2)
Responses reauthenticate 200 Field Type Required Rules status string Yes - One of: authenticated
recent_until string Yes - Format: date-time
Example (generated from the schema) { "status": "authenticated", "recent_until": "2026-01-15T10:00:00Z" }401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }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.
/api/v2/auth/mfa/totpStart TOTP enrollment
Creates an authenticator app (TOTP) factor and returns its secret once, to add it to the app.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| name | string | Yes |
|
{
"name": "Example"
}Responses
201Createdapplication/json
Fields (3)
Responses beginTotpEnrollment 201 Field Type Required Rules factor_id string Yes secret string Yes otpauth_uri string Yes Example (generated from the schema) { "factor_id": "factor_example", "secret": "example-secret-shown-once", "otpauth_uri": "string" }401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }503Service unavailableapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/service_unavailable", "title": "Service unavailable", "status": 503, "code": "service_unavailable", "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.
/api/v2/auth/mfa/totp/{factor_id}/confirmConfirm TOTP enrollment
Activates the new factor with a first code. For the first factor, the answer includes the recovery codes, shown once.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| factor_id | Path | string | Yes |
|
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| code | string | Yes |
|
{
"code": "string"
}Responses
200OKapplication/json
Fields (1)
Responses confirmTotpEnrollment 200 Field Type Required Rules recovery_codes array<string> Yes Example (generated from the schema) { "recovery_codes": [ "string" ] }401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/auth/mfa/recovery-codesRegenerate recovery codes
Replaces your recovery codes; the previous ones stop working.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
Body: object
{}Responses
200OKapplication/json
Fields (1)
Responses regenerateRecoveryCodes 200 Field Type Required Rules recovery_codes array<string> Yes Example (generated from the schema) { "recovery_codes": [ "string" ] }401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/auth/mfa/factorsList second factors
Returns your confirmed second factors.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Responses
200OKapplication/json
Fields (6)
Responses listMfaFactors 200 Field Type Required Rules data array<object> Yes data[].id string Yes data[].kind string Yes - One of: totp, webauthn
data[].name string Yes data[].created_at string Yes - Format: date-time
data[].last_used_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "data": [ { "id": "id_example", "kind": "totp", "name": "Example", "created_at": "2026-01-15T10:00:00Z", "last_used_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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/auth/mfa/factors/{factor_id}Remove a second factor
Removes one of your second factors. It needs a recent sign-in.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| factor_id | Path | string | Yes |
|
Responses
204No content
401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/auth/registerCreate an account
Creates an account and sends a verification e-mail.
- Authentication
- None
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| name | string | Yes |
|
| string | Yes |
| |
| password | string | Yes |
|
| password_confirmation | string | No |
|
| organization_name | string | No |
|
| accept_terms | boolean | Yes |
|
| locale | string | Yes |
|
{
"name": "Example",
"email": "user@example.test",
"password": "example-password",
"password_confirmation": "string",
"organization_name": "string",
"accept_terms": true,
"locale": "en"
}Responses
202Acceptedapplication/json
Fields (1)
Responses register 202 Field Type Required Rules status string Yes - Always verification_sent
Example (generated from the schema) { "status": "verification_sent" }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" }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" }
curl -X POST 'https://api.cdnify.lat/api/v2/auth/register' \
-H "Content-Type: application/json" \
-d '{"name":"Example","email":"user@example.test","password":"example-password","password_confirmation":"string","organization_name":"string","accept_terms":true,"locale":"en"}'/api/v2/auth/email-verificationVerify the e-mail address
Confirms the address with the token from the verification e-mail.
- Authentication
- None
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| token | string | Yes |
|
{
"token": "example-one-time-token"
}Responses
200OKapplication/json
Fields (1)
Responses verifyEmail 200 Field Type Required Rules status string Yes - Always verified
Example (generated from the schema) { "status": "verified" }400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/token_invalid", "title": "Link invalid or expired", "status": 400, "code": "token_invalid", "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" }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" }
curl -X POST 'https://api.cdnify.lat/api/v2/auth/email-verification' \
-H "Content-Type: application/json" \
-d '{"token":"example-one-time-token"}'/api/v2/auth/email-verification/resendResend the verification e-mail
Sends the verification e-mail again.
- Authentication
- None
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| string | Yes |
|
{
"email": "user@example.test"
}Responses
202Accepted
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" }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" }
curl -X POST 'https://api.cdnify.lat/api/v2/auth/email-verification/resend' \
-H "Content-Type: application/json" \
-d '{"email":"user@example.test"}'/api/v2/auth/switch-organizationSwitch organization
Makes another organization you belong to the active one for this session.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| organization_id | string | Yes |
{
"organization_id": "org_u0123456789"
}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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/auth/passwordChange the password
Changes your password with the current one. Every other session ends.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| current_password | string | Yes |
|
| new_password | string | Yes |
|
{
"current_password": "example-password",
"new_password": "example-new-password"
}Responses
204No content
401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }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.
/api/v2/auth/impersonationOpen a support session
Used by the portal to open a session that CDNify support started on your account. It is not used by integrations.
- Authentication
- None
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| code | string | Yes |
|
{
"code": "string"
}Responses
200OKapplication/json
Headers: Set-Cookie
Fields (1)
Responses redeemImpersonation 200 Field Type Required Rules status string Yes - One of: authenticated, mfa_required, mfa_enrollment_required, password_reset_required
Example (generated from the schema) { "status": "authenticated" }400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/token_invalid", "title": "Link invalid or expired", "status": 400, "code": "token_invalid", "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" }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" }
curl -X POST 'https://api.cdnify.lat/api/v2/auth/impersonation' \
-H "Content-Type: application/json" \
-d '{"code":"string"}'/api/v2/auth/activateActivate an invited account
Sets the password of an account created by invitation, with the one-time token from the e-mail.
- Authentication
- None
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| token | string | Yes |
|
| password | string | Yes |
|
{
"token": "example-one-time-token",
"password": "example-password"
}Responses
200OKapplication/json
Headers: Set-Cookie
Fields (1)
Responses activateAccount 200 Field Type Required Rules status string Yes - One of: authenticated, mfa_required, mfa_enrollment_required, password_reset_required
Example (generated from the schema) { "status": "authenticated" }400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/token_invalid", "title": "Link invalid or expired", "status": 400, "code": "token_invalid", "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" }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" }
curl -X POST 'https://api.cdnify.lat/api/v2/auth/activate' \
-H "Content-Type: application/json" \
-d '{"token":"example-one-time-token","password":"example-password"}'/api/v2/api-tokensList API tokens
Returns your API tokens, or every token of the organization for the roles that manage them. Secrets are never returned.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Responses
200OKapplication/json
Fields (12)
Responses listApiTokens 200 Field Type Required Rules data array<object> Yes data[].id string Yes - Pattern: ^tok_[0-9a-f]{32}$
data[].name string Yes data[].format string Yes - One of: cdnx_v1, legacy_user_hex50, legacy_user_hex40
data[].prefix string Yes data[].scopes array<string> Yes data[].status string Yes - One of: active, revoked, expired
data[].mine boolean Yes data[].created_at string Yes - Format: date-time
data[].expires_at string Yes - Format: date-time
- Can be null
data[].last_used_at string Yes - Format: date-time
- Can be null
data[].revoked_at string Yes - Format: date-time
- Can be null
Example (generated from the schema) { "data": [ { "id": "tok_0a1b2c3d4e5f67890a1b2c3d4e5f6789", "name": "Example", "format": "cdnx_v1", "prefix": "string", "scopes": [ "string" ], "status": "active", "mine": false, "created_at": "2026-01-15T10:00:00Z", "expires_at": "2026-01-15T10:00:00Z", "last_used_at": "2026-01-15T10:00:00Z", "revoked_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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/api-tokensCreate an API token
Creates a personal API token with explicit scopes. The secret is in this answer only. It needs a recent sign-in and a verified e-mail address.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| name | string | Yes |
|
| scopes | array<string> | Yes |
|
| expires_at | string | No |
|
{
"name": "Example",
"scopes": [
"sites.read"
],
"expires_at": "2026-01-15T10:00:00Z"
}Responses
201Createdapplication/json
Fields (13)
Responses createApiToken 201 Field Type Required Rules token object Yes token.id string Yes - Pattern: ^tok_[0-9a-f]{32}$
token.name string Yes token.format string Yes - One of: cdnx_v1, legacy_user_hex50, legacy_user_hex40
token.prefix string Yes token.scopes array<string> Yes token.status string Yes - One of: active, revoked, expired
token.mine boolean Yes token.created_at string Yes - Format: date-time
token.expires_at string Yes - Format: date-time
- Can be null
token.last_used_at string Yes - Format: date-time
- Can be null
token.revoked_at string Yes - Format: date-time
- Can be null
secret string Yes Example (generated from the schema) { "token": { "id": "tok_0a1b2c3d4e5f67890a1b2c3d4e5f6789", "name": "Example", "format": "cdnx_v1", "prefix": "string", "scopes": [ "string" ], "status": "active", "mine": false, "created_at": "2026-01-15T10:00:00Z", "expires_at": "2026-01-15T10:00:00Z", "last_used_at": "2026-01-15T10:00:00Z", "revoked_at": "2026-01-15T10:00:00Z" }, "secret": "example-secret-shown-once" }401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/api-tokens/legacy-keyIssue a new API v1 key
Issues a new key for the legacy API v1; the previous key stops working at once. The key is in this answer only.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Request body
Content types: application/json
Body: object
{}Responses
201Createdapplication/json
Fields (13)
Responses regenerateLegacyApiKey 201 Field Type Required Rules token object Yes token.id string Yes - Pattern: ^tok_[0-9a-f]{32}$
token.name string Yes token.format string Yes - One of: cdnx_v1, legacy_user_hex50, legacy_user_hex40
token.prefix string Yes token.scopes array<string> Yes token.status string Yes - One of: active, revoked, expired
token.mine boolean Yes token.created_at string Yes - Format: date-time
token.expires_at string Yes - Format: date-time
- Can be null
token.last_used_at string Yes - Format: date-time
- Can be null
token.revoked_at string Yes - Format: date-time
- Can be null
secret string Yes Example (generated from the schema) { "token": { "id": "tok_0a1b2c3d4e5f67890a1b2c3d4e5f6789", "name": "Example", "format": "cdnx_v1", "prefix": "string", "scopes": [ "string" ], "status": "active", "mine": false, "created_at": "2026-01-15T10:00:00Z", "expires_at": "2026-01-15T10:00:00Z", "last_used_at": "2026-01-15T10:00:00Z", "revoked_at": "2026-01-15T10:00:00Z" }, "secret": "example-secret-shown-once" }401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.
/api/v2/api-tokens/{token_id}Revoke an API token
Revokes a token, which stops working at once.
- Authentication
- Portal session only
- Required permission
- Not declared in the contract
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| token_id | Path | string | Yes |
|
Responses
204No content
401Unauthorizedapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/invalid_credentials", "title": "Invalid credentials", "status": 401, "code": "invalid_credentials", "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" }
Used by the customer portal with a signed-in session. API tokens cannot call it, so there is no curl example.