Contents
Reseller
Customer accounts of a reseller organization and their usage.
Examples marked as generated are built from the schema with synthetic values.
- GETList customers
/api/v2/reseller/customers - POSTCreate a customer
/api/v2/reseller/customers - GETGet a customer
/api/v2/reseller/customers/{customer_id} - GETUsage of a customer
/api/v2/reseller/customers/{customer_id}/usage
GET
/api/v2/reseller/customersList customers
Returns the customer accounts of your reseller organization.
- Authentication
- API token or portal session
- Required permission
tenant.customers_read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| limit | Query | integer | No |
|
| cursor | Query | string | No |
|
Responses
200OKapplication/json
Fields (13)
Responses listCustomers 200 Field Type Required Rules data array<object> Yes data[].id string Yes data[].type string Yes - One of: platform, reseller, customer
data[].name string Yes data[].status string Yes data[].default_locale string Yes - One of: en, es
data[].timezone string Yes data[].accounting_ref string Yes - Can be null
data[].created_at string Yes - Format: date-time
data[].updated_at string Yes - Format: date-time
pagination object Yes pagination.next_cursor string Yes - Can be null
pagination.has_more boolean Yes Example (generated from the schema) { "data": [ { "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" } ], "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 'https://api.cdnify.lat/api/v2/reseller/customers' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"POST
/api/v2/reseller/customersCreate a customer
Creates a customer account under your reseller organization.
- Authentication
- API token or portal session
- Required permission
tenant.customers_manage
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| Idempotency-Key | Header | string | No |
|
Request body
Content types: application/json
| Field | Type | Required | Rules |
|---|---|---|---|
| name | string | Yes |
|
| default_locale | string | No |
|
| timezone | string | No | |
| accounting_ref | string | No |
|
{
"name": "Example",
"default_locale": "en",
"timezone": "Europe/Madrid",
"accounting_ref": "string"
}Responses
201Createdapplication/json
Headers: Location
Fields (9)
Responses createCustomer 201 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" }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/reseller/customers' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"name":"Example","default_locale":"en","timezone":"Europe/Madrid","accounting_ref":"string"}'GET
/api/v2/reseller/customers/{customer_id}Get a customer
Returns one customer account of your reseller organization.
- Authentication
- API token or portal session
- Required permission
tenant.customers_read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| customer_id | Path | string | Yes |
Responses
200OKapplication/json
Fields (9)
Responses getCustomer 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" }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 'https://api.cdnify.lat/api/v2/reseller/customers/customer_example' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"GET
/api/v2/reseller/customers/{customer_id}/usageUsage of a customer
Returns the open usage period of one of your customers.
- Authentication
- API token or portal session
- Required permission
tenant.customers_read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| customer_id | Path | string | Yes |
Responses
200OKapplication/json
Fields (13)
Responses getCustomerUsage 200 Field Type Required Rules period_number integer Yes starts_at string Yes - Format: date-time
ends_at string Yes - Format: date-time
- Can be null
bytes_used integer Yes - Format: int64
bytes_limit integer Yes - Format: int64
- Can be null
requests_used integer Yes - Format: int64
metering_policy string Yes - One of: actual_bytes, uncached_multiplier, legacy_x4
metered_until string Yes - Format: date-time
- Can be null
blocks array<object> Yes blocks[].kind string Yes blocks[].bytes_limit integer Yes - Format: int64
blocks[].bytes_used integer Yes - Format: int64
blocks[].expires_at string Yes - Format: date-time
Example (generated from the schema) { "period_number": 1, "starts_at": "2026-01-15T10:00:00Z", "ends_at": "2026-01-15T10:00:00Z", "bytes_used": 1, "bytes_limit": 1, "requests_used": 1, "metering_policy": "actual_bytes", "metered_until": "2026-01-15T10:00:00Z", "blocks": [ { "kind": "string", "bytes_limit": 1, "bytes_used": 1, "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" }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 'https://api.cdnify.lat/api/v2/reseller/customers/customer_example/usage' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"