Contents
Reseller API
Users of a reseller, their limits and their usage periods. Served on the Reseller API host with the reseller API key.
Literal response from the frozen contract
- GETList users
/users - POSTCreate a user
/users - GETGet a user
/users/{user} - PATCHUpdate a user
/users/{user} - DELETEDelete a user
/users/{user} - GETBandwidth history of a user
/users/{user}/bandwidth_history - POSTReset the usage of a user
/users/{user}/reset_usage
/usersList users
Returns every user of the reseller.
The api_key field of each user is empty by default: keys are no longer stored in a readable form.
- Authentication
- HTTP Basic with the reseller API key
- Host
- https://reseller.cdnify.lat
- In CDNify
- Same behaviour as before
- API v2 equivalent
- List customers GET /api/v2/reseller/customers
Responses
200OKapplication/json
Fields (15)
Responses resellerListUsers 200 Field Type Required Rules users array<object> Yes users[].id string Yes - Pattern: ^u[0-9a-f]{9}$
users[].email string Yes users[].api_key string Yes users[].created string Yes users[].accounting_id string Yes users[].bandwidth_usage string | number Yes users[].bandwidth_limit string | number Yes users[].resource_limit integer | string Yes users[].custom string Yes - Can be null
users[].reset_interval integer | string Yes users[].usage_period integer Yes users[].last_reset_date string Yes users[].next_reset_date string Yes - Can be null
users[].roles array<string> Yes Example { "users": [ { "id": "u0a1b2c3d4", "email": "customer@example.com", "api_key": "SYNTHETIC-USER-API-KEY-0000000000000000000000000000", "created": "2026-01-15T10:00:00+00:00", "accounting_id": "ACC-1001", "bandwidth_usage": "12.50000", "bandwidth_limit": "100", "resource_limit": 5, "custom": null, "reset_interval": 30, "usage_period": 3, "last_reset_date": "2026-01-01T00:00:00+00:00", "next_reset_date": "2026-01-31T00:00:00+00:00", "roles": [ "ROLE_USER" ] } ] }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
curl 'https://reseller.cdnify.lat/users' \
-u "$CDNIFY_RESELLER_API_KEY:x"/usersCreate a user
Creates a user of the reseller with its limits. The answer includes the new user's API key.
- Authentication
- HTTP Basic with the reseller API key
- Host
- https://reseller.cdnify.lat
- In CDNify
- Same behaviour as before
- API v2 equivalent
- Create a customer POST /api/v2/reseller/customers
Request body
Content types: application/x-www-form-urlencoded
| Field | Type | Required | Rules |
|---|---|---|---|
| string | Yes |
| |
| password | string | Yes |
|
| reset_interval | integer | string | No | |
| resource_limit | integer | string | No |
|
| bandwidth_limit | number | string | No |
|
| accounting_id | string | No | |
| custom | string | No |
{
"email": "customer@example.com",
"password": "synthetic-password",
"bandwidth_limit": 100,
"resource_limit": 5,
"reset_interval": 30,
"accounting_id": "ACC-1001"
}Responses
201Createdapplication/json
Fields (15)
Responses resellerCreateUser 201 Field Type Required Rules users array<object> Yes users[].id string Yes - Pattern: ^u[0-9a-f]{9}$
users[].email string Yes users[].api_key string Yes users[].created string Yes users[].accounting_id string Yes users[].bandwidth_usage string | number Yes users[].bandwidth_limit string | number Yes users[].resource_limit integer | string Yes users[].custom string Yes - Can be null
users[].reset_interval integer | string Yes users[].usage_period integer Yes users[].last_reset_date string Yes users[].next_reset_date string Yes - Can be null
users[].roles array<string> Yes Example { "users": [ { "id": "u0a1b2c3d4", "email": "customer@example.com", "api_key": "SYNTHETIC-USER-API-KEY-0000000000000000000000000000", "created": "2026-01-15T10:00:00+00:00", "accounting_id": "ACC-1001", "bandwidth_usage": 0, "bandwidth_limit": "100", "resource_limit": "5", "custom": null, "reset_interval": "30", "usage_period": 0, "last_reset_date": "2026-01-01T00:00:00+00:00", "next_reset_date": "2026-01-31T00:00:00+00:00", "roles": [ "ROLE_USER" ] } ] }400Bad requestapplication/json
Fields (2)
Responses resellerCreateUser 400 Field Type Required Rules users array Yes - At most 0 items
error string Yes Example: email { "users": [], "error": "Invalid user email address" }Example: password { "users": [], "error": "Invalid password" }Example: duplicate { "users": [], "error": "Duplicate email address" }Example: bandwidth { "users": [], "error": "Invalid bandwidth limit" }Example: resources { "users": [], "error": "Invalid resource limit" }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
curl -X POST 'https://reseller.cdnify.lat/users' \
-u "$CDNIFY_RESELLER_API_KEY:x" \
--data-urlencode 'email=customer@example.com' \
--data-urlencode 'password=synthetic-password' \
--data-urlencode 'bandwidth_limit=100' \
--data-urlencode 'resource_limit=5' \
--data-urlencode 'reset_interval=30' \
--data-urlencode 'accounting_id=ACC-1001'/users/{user}Get a user
Returns one user, by ID or by e-mail address.
The api_key field is empty by default: keys are no longer stored in a readable form.
- Authentication
- HTTP Basic with the reseller API key
- Host
- https://reseller.cdnify.lat
- In CDNify
- Same behaviour as before
- API v2 equivalent
- Get a customer GET /api/v2/reseller/customers/{customer_id}
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| user | Path | string | Yes | |
| Query | string | No |
Responses
200OKapplication/json
Fields (15)
Responses resellerGetUser 200 Field Type Required Rules users array<object> Yes users[].id string Yes - Pattern: ^u[0-9a-f]{9}$
users[].email string Yes users[].api_key string Yes users[].created string Yes users[].accounting_id string Yes users[].bandwidth_usage string | number Yes users[].bandwidth_limit string | number Yes users[].resource_limit integer | string Yes users[].custom string Yes - Can be null
users[].reset_interval integer | string Yes users[].usage_period integer Yes users[].last_reset_date string Yes users[].next_reset_date string Yes - Can be null
users[].roles array<string> Yes Example { "users": [ { "id": "u0a1b2c3d4", "email": "customer@example.com", "api_key": "SYNTHETIC-USER-API-KEY-0000000000000000000000000000", "created": "2026-01-15T10:00:00+00:00", "accounting_id": "ACC-1001", "bandwidth_usage": "12.50000", "bandwidth_limit": "100", "resource_limit": 5, "custom": null, "reset_interval": 30, "usage_period": 3, "last_reset_date": "2026-01-01T00:00:00+00:00", "next_reset_date": "2026-01-31T00:00:00+00:00", "roles": [ "ROLE_USER" ] } ] }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Example []
curl 'https://reseller.cdnify.lat/users/u0a1b2c3d4' \
-u "$CDNIFY_RESELLER_API_KEY:x"/users/{user}Update a user
Changes the e-mail address, limits or reset interval of a user.
- Authentication
- HTTP Basic with the reseller API key
- Host
- https://reseller.cdnify.lat
- In CDNify
- Same contract, with a defect corrected
- API v2 equivalent
- No API v2 equivalent
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| user | Path | string | Yes |
Request body
Content types: application/x-www-form-urlencoded
| Field | Type | Required | Rules |
|---|---|---|---|
| password | string | No | |
| reset_interval | integer | string | No | |
| resource_limit | integer | string | No | |
| bandwidth_limit | number | string | No | |
| accounting_id | string | No | |
| custom | string | No |
{
"bandwidth_limit": 250
}Responses
200OKapplication/json
Fields (15)
Responses resellerUpdateUser 200 Field Type Required Rules users array<object> Yes users[].id string Yes - Pattern: ^u[0-9a-f]{9}$
users[].email string Yes users[].api_key string Yes users[].created string Yes users[].accounting_id string Yes users[].bandwidth_usage string | number Yes users[].bandwidth_limit string | number Yes users[].resource_limit integer | string Yes users[].custom string Yes - Can be null
users[].reset_interval integer | string Yes users[].usage_period integer Yes users[].last_reset_date string Yes users[].next_reset_date string Yes - Can be null
users[].roles array<string> Yes Example { "users": [ { "id": "u0a1b2c3d4", "email": "customer@example.com", "api_key": "SYNTHETIC-USER-API-KEY-0000000000000000000000000000", "created": "2026-01-15T10:00:00+00:00", "accounting_id": "ACC-1001", "bandwidth_usage": "12.50000", "bandwidth_limit": "250", "resource_limit": 5, "custom": null, "reset_interval": 30, "usage_period": 3, "last_reset_date": "2026-01-01T00:00:00+00:00", "next_reset_date": "2026-01-31T00:00:00+00:00", "roles": [ "ROLE_USER" ] } ] }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Example []500Internal server errortext/html
curl -X PATCH 'https://reseller.cdnify.lat/users/u0a1b2c3d4' \
-u "$CDNIFY_RESELLER_API_KEY:x" \
--data-urlencode 'bandwidth_limit=250'/users/{user}Delete a user
Deletes a user of the reseller.
- Authentication
- HTTP Basic with the reseller API key
- Host
- https://reseller.cdnify.lat
- In CDNify
- Same behaviour as before
- API v2 equivalent
- No API v2 equivalent
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| user | Path | string | Yes |
Responses
204No content
401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
curl -X DELETE 'https://reseller.cdnify.lat/users/u0a1b2c3d4' \
-u "$CDNIFY_RESELLER_API_KEY:x"/users/{user}/bandwidth_historyBandwidth history of a user
Returns the usage periods of a user with the bandwidth of each one.
- Authentication
- HTTP Basic with the reseller API key
- Host
- https://reseller.cdnify.lat
- In CDNify
- Same behaviour as before
- API v2 equivalent
- Usage of a customer GET /api/v2/reseller/customers/{customer_id}/usage
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| user | Path | string | Yes |
Responses
200OKapplication/json
Fields (7)
Responses resellerGetBandwidthHistory 200 Field Type Required Rules history array<object> Yes history[].usage_period integer Yes history[].start string Yes history[].end string Yes history[].limit string | number Yes history[].usage string | number Yes history[].custom string Yes - Can be null
Example { "history": [ { "usage_period": 2, "start": "2025-12-01T00:00:00+00:00", "end": "2026-01-01T00:00:00+00:00", "limit": "100.00000", "usage": "37.25000", "custom": null } ] }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Example []
curl 'https://reseller.cdnify.lat/users/u0a1b2c3d4/bandwidth_history' \
-u "$CDNIFY_RESELLER_API_KEY:x"/users/{user}/reset_usageReset the usage of a user
Closes the current usage period of a user and starts a new one at zero.
- Authentication
- HTTP Basic with the reseller API key
- Host
- https://reseller.cdnify.lat
- In CDNify
- Same behaviour as before
- API v2 equivalent
- No API v2 equivalent
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| user | Path | string | Yes |
Responses
200OKapplication/json
Fields (15)
Responses resellerResetUsage 200 Field Type Required Rules users array<object> Yes users[].id string Yes - Pattern: ^u[0-9a-f]{9}$
users[].email string Yes users[].api_key string Yes users[].created string Yes users[].accounting_id string Yes users[].bandwidth_usage string | number Yes users[].bandwidth_limit string | number Yes users[].resource_limit integer | string Yes users[].custom string Yes - Can be null
users[].reset_interval integer | string Yes users[].usage_period integer Yes users[].last_reset_date string Yes users[].next_reset_date string Yes - Can be null
users[].roles array<string> Yes Example { "users": [ { "id": "u0a1b2c3d4", "email": "customer@example.com", "api_key": "SYNTHETIC-USER-API-KEY-0000000000000000000000000000", "created": "2026-01-15T10:00:00+00:00", "accounting_id": "ACC-1001", "bandwidth_usage": 0, "bandwidth_limit": "100", "resource_limit": 5, "custom": null, "reset_interval": 30, "usage_period": 4, "last_reset_date": "2026-01-01T00:00:00+00:00", "next_reset_date": "2026-01-31T00:00:00+00:00", "roles": [ "ROLE_USER" ] } ] }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Example []
curl -X POST 'https://reseller.cdnify.lat/users/u0a1b2c3d4/reset_usage' \
-u "$CDNIFY_RESELLER_API_KEY:x"