Documentation Index
Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
Use this file to discover all available pages before exploring further.
Cloudinary Account Provisioning API
Download OpenAPI DocumentAccounts with Provisioning API access can create and manage their product environments, users and user groups using the RESTful Provisioning API.
Provisioning API access is available upon request for accounts on an Enterprise plan.
The API uses Basic Authentication over HTTPS. Your Account Management Key and Account Management Secret (previously referred to as Account API Keys and Provisioning API keys) are used for the authentication. These credentials (as well as your ACCOUNT_ID) are located in the Cloudinary Console under Settings > Account Management Keys.
The Provisioning and Permissions APIs share one set of SDKs, and each SDK covers both APIs:
Useful links:
Manage the product environments (sub-accounts) of your main account.
Return an array of all product environments, or if conditions are specified, return the relevant product environments.
Learn more about getting product environments.
Query parameters
- enabled boolean
Whether to only return enabled product environments (true) or disabled product environments (false). Default: all product environments are returned (both enabled and disabled).
exampletrue - ids string[]
A list of up to 100 product environment IDs. When provided, other parameters are ignored.
- cloud_names string[]
A list of up to 100 product environment cloud names.
- prefix string
Returns product environments where the name begins with the specified case-insensitive string.
example"product"
Responses
200 Successful operation.
- sub_accounts ProductEnvironment[]
ShowHide child attributes of sub_accounts
Items ProductEnvironmentProduct Environment
- cloud_name string
- name string
The cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled or disabled.
- id string
The ID of the product environment.
- api_access_keys ApiAccessKey[]
The list of the product environment's access keys.
ShowHide child attributes of api_access_keys
Items ApiAccessKeyBrief details of a single API Access Key.
- key string
The API key.
- secret string
The API secret.
formatpassword - enabled boolean
Whether the access key is enabled or disabled.
- created_at string
The date when the product environment was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the product environment was last updated.
formatdate-timeRFC 3339 date-time
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accountscurl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts' \
-u 'API_KEY:API_SECRET'{
"sub_accounts": [
{
"cloud_name": "product1",
"name": "Product1 Application",
"enabled": true,
"id": "abcde1fghij2klmno3pqrst4uvwxy5z",
"api_access_keys": [
{
"key": "123456789012345",
"secret": "asdf1JKL2xyz3ABc4s3c5reT01DfaKez",
"enabled": true
}
],
"created_at": "2016-09-27T08:00:16Z",
"updated_at": "2016-09-27T08:00:16Z"
},
{
"cloud_name": "product2",
"name": "Product2 Application",
"enabled": true,
"id": "0aaaaa1bbbbb2ccccc3ddddd4eeeee5f",
"api_access_keys": [
{
"key": "543210987654321",
"secret": "T415i5mYs3cr3TkeYN0tR3a77y0o0",
"enabled": true
}
],
"created_at": "2016-03-15T11:44:48Z",
"updated_at": "2016-03-15T11:44:48Z"
}
]
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Create a new product environment. Any users that have access to all product environments will also automatically have access to the new product environment.
Learn more about creating product environments.
Body Required application/json
Product environment details.
- name stringRequired
The display name for the product environment.
example"Product3 Application" - cloud_name string
The Cloudinary cloud name (optional, default is auto-generated).
example"product3" - base_sub_account_id string
The ID of another product environment to copy settings from (optional).
example"0aaaaa1bbbbb2ccccc3ddddd4eeeee5f" - custom_attributes object
Custom attributes associated with the product environment (optional).
Responses
200 Product environment created successfully.
Product Environment
- cloud_name string
- name string
The cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled or disabled.
- id string
The ID of the product environment.
- api_access_keys ApiAccessKey[]
The list of the product environment's access keys.
ShowHide child attributes of api_access_keys
Items ApiAccessKeyBrief details of a single API Access Key.
- key string
The API key.
- secret string
The API secret.
formatpassword - enabled boolean
Whether the access key is enabled or disabled.
- created_at string
The date when the product environment was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the product environment was last updated.
formatdate-timeRFC 3339 date-time
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accountscurl -X POST 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "Product3 Application",
"cloud_name": "product3",
"base_sub_account_id": "0aaaaa1bbbbb2ccccc3ddddd4eeeee5f",
"custom_attributes": {}
}'{
"cloud_name": "product3",
"name": "Product3 Application",
"enabled": false,
"id": "555asdf0000zxcvb3456qwerty",
"api_access_keys": [
{
"key": "135792468054321",
"secret": "w4aTi5Y0u6k3YN0773lL1nGyUt0Da8",
"enabled": true
}
],
"created_at": "2016-09-27T11:15:35Z",
"updated_at": "2016-09-27T11:15:35Z"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Retrieve a specific product environment.
Learn more about retrieving specific product environments.
Path parameters
- sub_account_id stringRequired
The ID of the product environment.
example"abcde1fghij2klmno3pqrst4uvwxy5z"
Responses
200 Successful operation.
Product Environment
- cloud_name string
- name string
The cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled or disabled.
- id string
The ID of the product environment.
- api_access_keys ApiAccessKey[]
The list of the product environment's access keys.
ShowHide child attributes of api_access_keys
Items ApiAccessKeyBrief details of a single API Access Key.
- key string
The API key.
- secret string
The API secret.
formatpassword - enabled boolean
Whether the access key is enabled or disabled.
- created_at string
The date when the product environment was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the product environment was last updated.
formatdate-timeRFC 3339 date-time
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accounts/{sub_account_id}curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z' \
-u 'API_KEY:API_SECRET'{
"cloud_name": "product1",
"name": "Product1 Application",
"enabled": true,
"id": "abcde1fghij2klmno3pqrst4uvwxy5z",
"api_access_keys": [
{
"key": "123456789012345",
"secret": "asdf1JKL2xyz3ABc4s3c5reT01DfaKez",
"enabled": true
}
],
"created_at": "2016-09-27T08:00:16Z",
"updated_at": "2016-09-27T08:00:16Z"
}{
"cloud_name": "product2",
"name": "Product2 Application",
"enabled": true,
"id": "0aaaaa1bbbbb2ccccc3ddddd4eeeee5f",
"api_access_keys": [
{
"key": "543210987654321",
"secret": "T415i5mYs3cr3TkeYN0tR3a77y0o0",
"enabled": true
}
],
"created_at": "2016-03-15T11:44:48Z",
"updated_at": "2016-03-15T11:44:48Z"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Update the details of a product environment.
Learn more about updating product environments.
Path parameters
- sub_account_id stringRequired
The ID of the product environment.
example"abcde1fghij2klmno3pqrst4uvwxy5z"
Body Required application/json
Product environment details to update.
- name string
The display name for the product environment.
example"Product3 Application" - cloud_name string
The Cloudinary cloud name. An error is returned if the requested name already exists. Note: Can only be changed for accounts with fewer than 1000 images.
example"product3" - custom_attributes object
Custom attributes associated with the product environment.
- enabled boolean
Whether the product environment is enabled. Default: true.
Responses
200 Product environment updated successfully
Product Environment
- cloud_name string
- name string
The cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled or disabled.
- id string
The ID of the product environment.
- api_access_keys ApiAccessKey[]
The list of the product environment's access keys.
ShowHide child attributes of api_access_keys
Items ApiAccessKeyBrief details of a single API Access Key.
- key string
The API key.
- secret string
The API secret.
formatpassword - enabled boolean
Whether the access key is enabled or disabled.
- created_at string
The date when the product environment was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the product environment was last updated.
formatdate-timeRFC 3339 date-time
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accounts/{sub_account_id}curl -X PUT 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "Product3 Application",
"cloud_name": "product3",
"custom_attributes": {},
"enabled": true
}'{
"cloud_name": "product1",
"name": "Product1 Application",
"enabled": true,
"id": "abcde1fghij2klmno3pqrst4uvwxy5z",
"api_access_keys": [
{
"key": "123456789012345",
"secret": "asdf1JKL2xyz3ABc4s3c5reT01DfaKez",
"enabled": true
}
],
"created_at": "2016-09-27T08:00:16Z",
"updated_at": "2016-09-27T08:00:16Z"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Delete a specific product environment.
Learn more about deleting product environments.
Path parameters
- sub_account_id stringRequired
The ID of the product environment.
example"abcde1fghij2klmno3pqrst4uvwxy5z"
Responses
200 Product environment deleted successfully.
- message stringexample
"ok"
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accounts/{sub_account_id}curl -X DELETE 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z' \
-u 'API_KEY:API_SECRET'{
"message": "ok"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Manage the access keys (also known as product environment API keys), which include an API key and secret pair, for your product environment (sub-account).
Retrieve an array of all access keys for a product environment.
Learn more about retrieving access keys.
Path parameters
- sub_account_id stringRequired
The ID of the product environment.
example"abcde1fghij2klmno3pqrst4uvwxy5z"
Query parameters
- page_size integer
How many entries to display on each page.
- page integer
Which page to return (maximum pages 100). Default: All pages are returned.
max 100 - sort_by string
Which response parameter to sort by. Possible values:
api_key,created_at,name,enabled.example"created_at"enum"api_key""created_at""name""enabled" - sort_order string
Control the order of returned keys. Possible values:
desc(default),asc.example"asc"enum"desc""asc"
Responses
200 Successful operation.
- access_keys AccessKey[]
The list of the access keys.
ShowHide child attributes of access_keys
Items AccessKey- name string
The name of the access key.
- api_key string
The API key.
- api_secret string
The API secret.
formatpassword - created_at string
The date when the access key was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the access key was last updated.
formatdate-timeRFC 3339 date-time - enabled boolean
Whether the access key is enabled or disabled.
- total integer
Total number of the access keys.
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accounts/{sub_account_id}/access_keyscurl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z/access_keys' \
-u 'API_KEY:API_SECRET'{
"access_keys": [
{
"name": "main_key",
"api_key": "814814814814814",
"api_secret": "QcsQcsQcsQcsQcsQcsQcsQcsQcs",
"created_at": "2022-03-15T11:44:48Z",
"updated_at": "2023-08-10T09:23:45Z",
"enabled": true
},
{
"name": "secondary_key",
"api_key": "418418418418418",
"api_secret": "scQscQscQscQscQscQscQscQscQ",
"created_at": "2023-09-10T09:23:45Z",
"updated_at": "2023-09-10T09:45:57Z",
"enabled": false
}
],
"total": 2
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Generate a new access key.
Learn more about generating access keys.
Path parameters
- sub_account_id stringRequired
The ID of the product environment.
example"abcde1fghij2klmno3pqrst4uvwxy5z"
Body Required application/json
Access key details.
- name string
The name of the access key.
example"main_key" - enabled boolean
Whether the access key is enabled or disabled.
exampletrue
Responses
200 Access key created successfully.
- name string
The name of the access key.
- api_key string
The API key.
- api_secret string
The API secret.
formatpassword - created_at string
The date when the access key was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the access key was last updated.
formatdate-timeRFC 3339 date-time - enabled boolean
Whether the access key is enabled or disabled.
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accounts/{sub_account_id}/access_keyscurl -X POST 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z/access_keys' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "main_key",
"enabled": true
}'{
"name": "main_key",
"api_key": "814814814814814",
"api_secret": "QcsQcsQcsQcsQcsQcsQcsQcsQcs",
"created_at": "2022-03-15T11:44:48Z",
"updated_at": "2023-08-10T09:23:45Z",
"enabled": true
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Delete a specific access key by name.
Learn more about deleting access keys.
Path parameters
- sub_account_id stringRequired
The ID of the product environment.
example"abcde1fghij2klmno3pqrst4uvwxy5z"
Query parameters
- name stringRequired
The access key name.
example"main_key"
Responses
200 Access Key deleted successfully.
- message stringexample
"ok"
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accounts/{sub_account_id}/access_keyscurl -X DELETE 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z/access_keys?name=main_key' \
-u 'API_KEY:API_SECRET'{
"message": "ok"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Update the name and/or status of an existing access key.
Learn more about updating access keys.
Path parameters
- sub_account_id stringRequired
The ID of the product environment.
example"abcde1fghij2klmno3pqrst4uvwxy5z" - key stringRequired
The access key (api key).
example"814814814814814"
Body Required application/json
Access key details for update.
- name string
The name of the access key.
example"main_key" - enabled boolean
Whether the access key is enabled or disabled.
exampletrue - dedicated_for string
Designates the access key for a specific purpose while allowing it to be used for other purposes, as well. This action replaces any previously assigned key. Possible values:
webhooksexample"webhooks"enum"webhooks"
Responses
200 Access key updated successfully.
- name string
The name of the access key.
- api_key string
The API key.
- api_secret string
The API secret.
formatpassword - created_at string
The date when the access key was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the access key was last updated.
formatdate-timeRFC 3339 date-time - enabled boolean
Whether the access key is enabled or disabled.
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accounts/{sub_account_id}/access_keys/{key}curl -X PUT 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z/access_keys/814814814814814' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "main_key",
"enabled": true,
"dedicated_for": "webhooks"
}'{
"name": "main_key",
"api_key": "814814814814814",
"api_secret": "QcsQcsQcsQcsQcsQcsQcsQcsQcs",
"created_at": "2022-03-15T11:44:48Z",
"updated_at": "2023-08-10T09:23:45Z",
"enabled": true
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Delete a specific access key.
Learn more about deleting access keys.
Path parameters
- sub_account_id stringRequired
The ID of the product environment.
example"abcde1fghij2klmno3pqrst4uvwxy5z" - key stringRequired
The access key (api key).
example"814814814814814"
Responses
200 Access key deleted successfully.
- message stringexample
"ok"
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/sub_accounts/{sub_account_id}/access_keys/{key}curl -X DELETE 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z/access_keys/814814814814814' \
-u 'API_KEY:API_SECRET'{
"message": "ok"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Returns an array of all users in the account, or if conditions are specified, returns the relevant users.
Learn more about retrieving users.
Query parameters
- pending boolean
Whether to return pending users. Default:
false(all users)examplefalse - ids string[]
A list of up to 100 user IDs. When provided, other parameters are ignored.
max items 100 - emails string[]
A list of up to 100 user Emails. When provided, other parameters are ignored.
max items 100 - prefix string
Returns users where the name begins with the specified case-insensitive string.
example"john" - sub_account_id string
Only returns users who have access to the specified account.
- last_login boolean
Specifies a date range for last login.
- from string
All last logins after this date, given in the format: yyyy-mm-dd.
formatdateRFC 3339 full-dateexample"2023-01-01" - to string
All last logins before this date, given in the format: yyyy-mm-dd.
formatdateRFC 3339 full-dateexample"2024-12-31" - union_type string
Whether to return users who last logged in within the specified date range (include) or those who didn't last log in within the range (exclude). Possible values:
include,exclude. Default:include.enum"include""exclude" - sort_order string
Control the order of returned users. Possible values:
desc(default),asc.enum"desc""asc" - sort_by stringenum
"name""role""status""activity""created_at" - page integer
- page_size integer
Responses
200 Successful operation.
- users User[]
ShowHide child attributes of users
Items UserUser details.
- id string
The user's ID.
- name string
The user's name.
- first_name string
The user's first name.
- last_name string
The user's last name.
- role stringdeprecated
The user's role. This field is returned only for accounts that don't have the granular permissions system enabled. For accounts with granular permissions enabled, this field isn't included, and roles are retrieved via the GET /principal_roles endpoint of the Permissions API instead.
- email string
The user's email.
formatemailEmail address - pending boolean
Whether the user is pending.
- enabled boolean
Whether the user is enabled.
- created_at string
The date when the user was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user was last updated.
formatdate-timeRFC 3339 date-time - last_login string
The date when the user was last logged in.
formatdate-timeRFC 3339 date-time - all_sub_accounts boolean
- providers string[]
The list of authentication providers for the user.
- email_preferences object
The user's email preferences.
- account_id string
The account ID.
- two_factor boolean
Whether two-factor authentication is enabled.
- status string
The user's status.
- root boolean
Whether the user is a root user.
- technical_role string
The user's technical role. This key is included only when the user has a technical role set. If the user has no technical role, the key is omitted entirely rather than returned as
null. - group_count integer
The number of groups the user belongs to.
- sub_account_count integer
The number of sub-accounts the user has access to.
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/userscurl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users' \
-u 'API_KEY:API_SECRET'{
"users": [
{
"id": "139147faa12ce11f22cfaffa84b307",
"name": "john_smith",
"role": "media_library_user",
"email": "john_smith@example.com",
"pending": true,
"enabled": true,
"created_at": "2020-01-13T05:16:06Z",
"updated_at": "2020-01-13T05:16:06Z",
"last_login": "2022-01-11T15:11:04Z",
"all_sub_accounts": true
},
{
"id": "28c84b2aa7924a5e64f949b5403981",
"name": "john_jones",
"role": "master_admin",
"email": "john_jones@example.com",
"pending": true,
"enabled": true,
"created_at": "2019-01-13T05:16:05Z",
"updated_at": "2019-01-13T05:16:05Z",
"last_login": "2021-11-12T15:11:02Z",
"all_sub_accounts": true
}
]
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Create a new user.
Learn more about creating users.
Body Required application/json
User details.
- name stringRequired
The user's name.
example"John" - email stringRequired
A unique email address, which serves as the login name and notification address.
example"john@example.com" - role stringdeprecated
The legacy role to assign. Deprecated: use
roleswhen creating a user, orrole_managementwhen updating a user, instead. Can't be combined withrolesorrole_management.example"technical_admin"enum"master_admin""admin""billing""technical_admin""reports""media_library_admin""media_library_user" - sub_account_ids string[]
A list of product environment IDs that this user can access. Ignored if the role is
master_admin. Default: all product environments. - enabled boolean
Whether the user is enabled. Default: true.
exampletrue - roles RoleAssignment[]
The roles to assign. Can't be sent together with
role.ShowHide child attributes of roles
Items RoleAssignmentA role assignment with optional scope and policy parameters.
- id stringRequired
The role ID.
example"cld::role::prodenv::media_library_admin" - scope_id string
The scope (product environment) ID the role applies to.
example"abcde1fghij2klmno3pqrst4uvwxy5z" - policy_parameters object
Optional content-scope policy parameters.
ShowHide child attributes of policy_parameters
- folder_id string
The folder ID the role is scoped to.
- collection_id string
The collection ID the role is scoped to.
- additional properties any
Responses
200 User created successfully.
User details.
- id string
The user's ID.
- name string
The user's name.
- first_name string
The user's first name.
- last_name string
The user's last name.
- role stringdeprecated
The user's role. This field is returned only for accounts that don't have the granular permissions system enabled. For accounts with granular permissions enabled, this field isn't included, and roles are retrieved via the GET /principal_roles endpoint of the Permissions API instead.
- email string
The user's email.
formatemailEmail address - pending boolean
Whether the user is pending.
- enabled boolean
Whether the user is enabled.
- created_at string
The date when the user was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user was last updated.
formatdate-timeRFC 3339 date-time - last_login string
The date when the user was last logged in.
formatdate-timeRFC 3339 date-time - all_sub_accounts boolean
- providers string[]
The list of authentication providers for the user.
- email_preferences object
The user's email preferences.
- account_id string
The account ID.
- two_factor boolean
Whether two-factor authentication is enabled.
- status string
The user's status.
- root boolean
Whether the user is a root user.
- technical_role string
The user's technical role. This key is included only when the user has a technical role set. If the user has no technical role, the key is omitted entirely rather than returned as
null. - group_count integer
The number of groups the user belongs to.
- sub_account_count integer
The number of sub-accounts the user has access to.
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/userscurl -X POST 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "jenny_bar",
"roles": [
{
"id": "cld::role::account::master_admin"
}
],
"email": "jenny_bar@example.com"
}'{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "jenny_bar",
"role": "master_admin",
"email": "jenny_bar@example.com",
"pending": true,
"enabled": true,
"created_at": "2019-09-12T11:53:57Z",
"updated_at": "2019-09-12T11:53:57Z",
"last_login": "2022-01-11T15:11:04Z",
"all_sub_accounts": true
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Retrieve a specific user.
Learn more about retrieving a specific user.
Path parameters
- user_id stringRequired
The ID of the user.
example"0abed8dfcc039ea05e2a1d494fd442"
Responses
200 Successful operation.
User details.
- id string
The user's ID.
- name string
The user's name.
- first_name string
The user's first name.
- last_name string
The user's last name.
- role stringdeprecated
The user's role. This field is returned only for accounts that don't have the granular permissions system enabled. For accounts with granular permissions enabled, this field isn't included, and roles are retrieved via the GET /principal_roles endpoint of the Permissions API instead.
- email string
The user's email.
formatemailEmail address - pending boolean
Whether the user is pending.
- enabled boolean
Whether the user is enabled.
- created_at string
The date when the user was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user was last updated.
formatdate-timeRFC 3339 date-time - last_login string
The date when the user was last logged in.
formatdate-timeRFC 3339 date-time - all_sub_accounts boolean
- providers string[]
The list of authentication providers for the user.
- email_preferences object
The user's email preferences.
- account_id string
The account ID.
- two_factor boolean
Whether two-factor authentication is enabled.
- status string
The user's status.
- root boolean
Whether the user is a root user.
- technical_role string
The user's technical role. This key is included only when the user has a technical role set. If the user has no technical role, the key is omitted entirely rather than returned as
null. - group_count integer
The number of groups the user belongs to.
- sub_account_count integer
The number of sub-accounts the user has access to.
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/users/{user_id}curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442' \
-u 'API_KEY:API_SECRET'{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "jenny_bar",
"role": "master_admin",
"email": "jenny_bar@example.com",
"pending": true,
"enabled": true,
"created_at": "2019-09-12T11:53:57Z",
"updated_at": "2019-09-12T11:53:57Z",
"last_login": "2022-01-11T15:11:04Z",
"all_sub_accounts": true
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Update the details of a user.
Learn more about updating a specific user.
Path parameters
- user_id stringRequired
The ID of the user.
example"0abed8dfcc039ea05e2a1d494fd442"
Body Required application/json
User details to update.
- name string
The user's name.
example"John" - email string
A unique email address, which serves as the login name and notification address.
example"john@example.com" - role stringdeprecated
The legacy role to assign. Deprecated: use
roleswhen creating a user, orrole_managementwhen updating a user, instead. Can't be combined withrolesorrole_management.example"technical_admin"enum"master_admin""admin""billing""technical_admin""reports""media_library_admin""media_library_user" - sub_account_ids string[]
A list of product environment IDs that this user can access. Ignored if the role is
master_admin. Default: all product environments. - enabled boolean
Whether the user is enabled. Default: true.
exampletrue - role_management RoleManagementRequest
A role management operation and the roles it applies to.
ShowHide child attributes of role_management
- operation stringRequired
Whether to add or remove the listed roles.
example"add"enum"add""remove" - roles RoleAssignment[]Required
The roles to add or remove.
ShowHide child attributes of roles
Items RoleAssignmentA role assignment with optional scope and policy parameters.
- id stringRequired
The role ID.
example"cld::role::prodenv::media_library_admin" - scope_id string
The scope (product environment) ID the role applies to.
example"abcde1fghij2klmno3pqrst4uvwxy5z" - policy_parameters object
Optional content-scope policy parameters.
ShowHide child attributes of policy_parameters
- folder_id string
The folder ID the role is scoped to.
- collection_id string
The collection ID the role is scoped to.
- additional properties any
Responses
200 User updated successfully.
User details.
- id string
The user's ID.
- name string
The user's name.
- first_name string
The user's first name.
- last_name string
The user's last name.
- role stringdeprecated
The user's role. This field is returned only for accounts that don't have the granular permissions system enabled. For accounts with granular permissions enabled, this field isn't included, and roles are retrieved via the GET /principal_roles endpoint of the Permissions API instead.
- email string
The user's email.
formatemailEmail address - pending boolean
Whether the user is pending.
- enabled boolean
Whether the user is enabled.
- created_at string
The date when the user was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user was last updated.
formatdate-timeRFC 3339 date-time - last_login string
The date when the user was last logged in.
formatdate-timeRFC 3339 date-time - all_sub_accounts boolean
- providers string[]
The list of authentication providers for the user.
- email_preferences object
The user's email preferences.
- account_id string
The account ID.
- two_factor boolean
Whether two-factor authentication is enabled.
- status string
The user's status.
- root boolean
Whether the user is a root user.
- technical_role string
The user's technical role. This key is included only when the user has a technical role set. If the user has no technical role, the key is omitted entirely rather than returned as
null. - group_count integer
The number of groups the user belongs to.
- sub_account_count integer
The number of sub-accounts the user has access to.
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/users/{user_id}curl -X PUT 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "John",
"role_management": {
"operation": "add",
"roles": [
{
"id": "cld::role::account::technical_admin"
}
]
}
}'{
"id": "0abed8dfcc039ea05e2a1d494fd442",
"name": "John",
"role": "technical_admin",
"email": "john@example.com",
"pending": true,
"enabled": true,
"created_at": "2020-09-03T13:33:25Z",
"updated_at": "2020-09-03T13:33:25Z",
"all_sub_accounts": true
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Delete a specific user.
Learn more about deleting a specific user.
Path parameters
- user_id stringRequired
The ID of the user.
example"0abed8dfcc039ea05e2a1d494fd442"
Responses
200 User deleted successfully.
- message stringexample
"ok"
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/users/{user_id}curl -X DELETE 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442' \
-u 'API_KEY:API_SECRET'{
"message": "ok"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Retrieve the groups that a specific user belongs to.
Learn more about retrieving user groups.
Path parameters
- user_id stringRequired
The ID of the user.
example"0abed8dfcc039ea05e2a1d494fd442"
Responses
200 Successful operation.
- groups UserGroupSummary[]
A list of user groups that the user belongs to.
ShowHide child attributes of groups
Items UserGroupSummaryUser group summary.
- id string
The user group's ID.
- name string
The user group's name.
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/users/{user_id}/groupscurl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442/groups' \
-u 'API_KEY:API_SECRET'{
"groups": [
{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "user_group_1"
},
{
"id": "1cc3808888154263ac1e5eb2e5c52d61",
"name": "user_group_2"
}
]
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Retrieve the product environments (sub-accounts) that a specific user has access to.
Learn more about retrieving user sub-accounts.
Path parameters
- user_id stringRequired
The ID of the user.
example"0abed8dfcc039ea05e2a1d494fd442"
Responses
200 Successful operation.
- sub_accounts SubAccountSummary[]
A list of product environments (sub-accounts) that the user has access to.
ShowHide child attributes of sub_accounts
Items SubAccountSummaryProduct environment (sub-account) summary.
- id string
The product environment's ID.
- name string
The product environment's name.
- description string
The product environment's description.
- cloud_name string
The Cloudinary cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled.
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/users/{user_id}/sub_accountscurl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442/sub_accounts' \
-u 'API_KEY:API_SECRET'{
"sub_accounts": [
{
"id": "abcde1fghij2klmno3pqrst4uvwxy5z",
"name": "Product1 Application",
"description": "Main product environment",
"cloud_name": "product1",
"enabled": true
},
{
"id": "0aaaaa1bbbbb2ccccc3ddddd4eeeee5f",
"name": "Product2 Application",
"description": "Secondary product environment",
"cloud_name": "product2",
"enabled": true
}
]
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Retrieve an array of all user groups in the account.
Learn more about retrieving user groups.
Query parameters
- extended_details boolean
Whether to only return extended (true) or basic information about the group (false). Default: false.
exampletrue
Responses
200 Successful operation.
- user_groups UserGroup[]
A list of user groups.
ShowHide child attributes of user_groups
Items UserGroupUser group.
- id string
The user group's ID.
- name string
The user group's name.
- users UserGroupUser[]
A list of user group users. Only returned in extended_details.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
- created_at string
The date when the user group was created. Only returned in extended_details.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user group was last updated. Only returned in extended_details.
formatdate-timeRFC 3339 date-time
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/user_groupscurl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups' \
-u 'API_KEY:API_SECRET'{
"user_groups": [
{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "user_group_1"
},
{
"id": "1cc3808888154263ac1e5eb2e5c52d61",
"name": "user_group_2"
}
]
}{
"user_groups": [
{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "user_group_1",
"users": [
{
"id": "0abed8dfcc039ea05e2a1d494fd442",
"name": "John Doe",
"email": "john.doe@example.com"
},
{
"id": "asdf1234uiopjkl7890wernmjlcaeg",
"name": "Harry Potts",
"email": "harry.potts@example.com"
}
],
"created_at": "2016-09-27T08:00:16Z",
"updated_at": "2016-09-27T08:00:16Z"
},
{
"id": "1cc3808888154263ac1e5eb2e5c52d61",
"name": "user_group_2",
"users": [
{
"id": "asdl23uioejafmckowpuafdaghjajw",
"name": "Beth Poppins",
"email": "beth.poppins@example.com"
},
{
"id": "iwejfjiwl83882kkswionvnnlxloow",
"name": "Mike Smith",
"email": "mike.smith@example.com"
}
],
"created_at": "2016-09-27T08:00:16Z",
"updated_at": "2016-09-27T08:00:16Z"
}
]
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Create a new user group for the account.
Learn more about creating user groups.
Body Required application/json
User group details.
- name string
The user group's name.
example"Designers" - extended_details boolean
Whether to only return extended (true) or basic information about the group (false). Default: false.
examplefalse
Responses
200 User group created successfully.
User group.
- id string
The user group's ID.
- name string
The user group's name.
- users UserGroupUser[]
A list of user group users. Only returned in extended_details.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
- created_at string
The date when the user group was created. Only returned in extended_details.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user group was last updated. Only returned in extended_details.
formatdate-timeRFC 3339 date-time
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/user_groupscurl -X POST 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "Designers",
"extended_details": false
}'{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "Designers"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Retrieve a specific user group.
Learn more about retrieving a specific user group.
Path parameters
- group_id stringRequired
The ID of the user group.
example"7f08f1f1fc910bf1f25274aef11d27"
Query parameters
- extended_details boolean
Whether to only return extended (true) or basic information about the group (false). Default: false.
exampletrue
Responses
200 Successful operation.
User group.
- id string
The user group's ID.
- name string
The user group's name.
- users UserGroupUser[]
A list of user group users. Only returned in extended_details.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
- created_at string
The date when the user group was created. Only returned in extended_details.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user group was last updated. Only returned in extended_details.
formatdate-timeRFC 3339 date-time
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/user_groups/{group_id}curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups/7f08f1f1fc910bf1f25274aef11d27' \
-u 'API_KEY:API_SECRET'{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "Designers"
}{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "Designers",
"users": [
{
"id": "0abed8dfcc039ea05e2a1d494fd442",
"name": "John Doe",
"email": "john.doe@example.com"
},
{
"id": "asdf1234uiopjkl7890wernmjlcaeg",
"name": "Harry Potts",
"email": "harry.potts@example.com"
}
],
"created_at": "2016-09-27T08:00:16Z",
"updated_at": "2016-09-27T08:00:16Z"
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Update the name of a specified user group.
Learn more about updating a specific user group.
Path parameters
- group_id stringRequired
The ID of the user group.
example"7f08f1f1fc910bf1f25274aef11d27"
Body Required application/json
User group details to update.
- name string
The user group's name.
example"Designers" - extended_details boolean
Whether to only return extended (true) or basic information about the group (false). Default: false.
examplefalse
Responses
200 User group updated successfully.
User group.
- id string
The user group's ID.
- name string
The user group's name.
- users UserGroupUser[]
A list of user group users. Only returned in extended_details.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
- created_at string
The date when the user group was created. Only returned in extended_details.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user group was last updated. Only returned in extended_details.
formatdate-timeRFC 3339 date-time
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/user_groups/{group_id}curl -X PUT 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups/7f08f1f1fc910bf1f25274aef11d27' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "Designers and Creatives"
}'{
"id": "7f08f1f1fc910bf1f25274aef11d27",
"name": "Designers and Creatives"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Delete a user group with the specified ID.
Learn more about deleting a specific user group.
Path parameters
- group_id stringRequired
The ID of the user group.
example"7f08f1f1fc910bf1f25274aef11d27"
Responses
200 User group deleted successfully.
- message stringexample
"ok"
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/user_groups/{group_id}curl -X DELETE 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups/7f08f1f1fc910bf1f25274aef11d27' \
-u 'API_KEY:API_SECRET'{
"message": "ok"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Retrieve the users in the group with the specified ID.
Learn more about retrieving users in a specific user group.
Path parameters
- group_id stringRequired
The ID of the user group.
example"7f08f1f1fc910bf1f25274aef11d27"
Responses
200 Successful operation.
- users UserGroupUser[]
A list of user group users.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/user_groups/{group_id}/userscurl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups/7f08f1f1fc910bf1f25274aef11d27/users' \
-u 'API_KEY:API_SECRET'{
"users": [
{
"id": "0abed8dfcc039ea05e2a1d494fd442",
"name": "John",
"email": "john@example.com"
}
]
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Add a user to a group with the specified ID.
Learn more about adding users to a specific user group.
Path parameters
- group_id stringRequired
The ID of the user group.
example"7f08f1f1fc910bf1f25274aef11d27" - user_id stringRequired
The ID of the user.
example"0abed8dfcc039ea05e2a1d494fd442"
Responses
200 User added to group successfully
User group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
409 Already exists.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/user_groups/{group_id}/users/{user_id}curl -X POST 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups/7f08f1f1fc910bf1f25274aef11d27/users/0abed8dfcc039ea05e2a1d494fd442' \
-u 'API_KEY:API_SECRET'{
"id": "0abed8dfcc039ea05e2a1d494fd442",
"name": "John Doe",
"email": "john.doe@example.com"
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Remove a user from a group with the specified ID.
Learn more about removing users from a specific user group.
Path parameters
- group_id stringRequired
The ID of the user group.
example"7f08f1f1fc910bf1f25274aef11d27" - user_id stringRequired
The ID of the user.
example"0abed8dfcc039ea05e2a1d494fd442"
Responses
200 User removed from group successfully.
- users UserGroupUser[]
A list of user group users.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
420 Max usage rate exceeded.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/user_groups/{group_id}/users/{user_id}curl -X DELETE 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups/7f08f1f1fc910bf1f25274aef11d27/users/0abed8dfcc039ea05e2a1d494fd442' \
-u 'API_KEY:API_SECRET'{
"users": []
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "error"
}
}Access billing usage information for your account and product environments.
Endpoints
Retrieve billing usage metrics for your account and product environments, including storage, bandwidth, impressions, and transformations.
If year is provided:
- Annual subscription: Returns the single annual usage cycle that began in the specified year (if any).
- Monthly subscription: Returns all monthly usage cycles that began in the specified year.
If year is not provided:
- Returns usage for the year in which the current active subscription period began.
- If no active subscription exists, an empty list is returned.
Note: Usage metrics are updated daily, so calling this endpoint once per day gives you the latest data.
Query parameters
- year integer
The year to retrieve billing usage for. Behavior depends on subscription type (see above).
formatint32Signed 32-bit integerexample2024 - include_prodenv_breakdown boolean
Whether to include usage details by product environment. Default: false.
Responses
200 Successful operation.
- plan_name string
The name of the plan (e.g., "Pro PAYG", "Advanced PAYG").
- metric_usage object[]
ShowHide child attributes of metric_usage
Items object- metric string
The type of metric being measured (e.g., "credit").
- limit number
The limit for this metric in the plan.
- cycles object[]
Full usage details per billing cycle (monthly or annual, depending on plan).
ShowHide child attributes of cycles
Items object- from_day string
The start date of the billing cycle.
formatdateRFC 3339 full-dateexample"2024-08-21" - to_day string
The end date of the billing cycle.
formatdateRFC 3339 full-dateexample"2024-09-20" - usage number
Total usage for this cycle.
example25641.55 - breakdown object
Usage breakdown by asset type and operation.
ShowHide child attributes of breakdown
- storage_image number
Storage usage for images.
- storage_video number
Storage usage for videos.
- storage_raw number
Storage usage for raw files.
- transformations_image number
Transformation usage for images.
- transformations_video number
Transformation usage for videos.
- bandwidth_image number
Bandwidth usage for images.
- bandwidth_video number
Bandwidth usage for videos.
- bandwidth_raw number
Bandwidth usage for raw files.
- image_impressions number
Number of times images were delivered (impressions).
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- product_environment_breakdown CloudAssetTypeBreakdown[]
Optional breakdown by product environment. May not be present in all responses.
ShowHide child attributes of product_environment_breakdown
Items CloudAssetTypeBreakdown- storage_image number
Storage usage for images in this product environment.
- storage_video number
Storage usage for videos in this product environment.
- storage_raw number
Storage usage for raw files in this product environment.
- transformations_image number
Transformation usage for images in this product environment.
- transformations_video number
Transformation usage for videos in this product environment.
- bandwidth_image number
Bandwidth usage for images in this product environment.
- bandwidth_video number
Bandwidth usage for videos in this product environment.
- bandwidth_raw number
Bandwidth usage for raw files in this product environment.
- image_impressions number
Number of times images were delivered (impressions) in this product environment.
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- cloud_name string
The name of the product environment.
- monthly_cycles object[]
Monthly-level breakdown within a single annual cycle.
ShowHide child attributes of monthly_cycles
Items object- from_day string
The start date of the monthly billing cycle.
formatdateRFC 3339 full-date - to_day string
The end date of the monthly billing cycle.
formatdateRFC 3339 full-date - usage number
Total usage for this monthly cycle.
- breakdown object
Usage breakdown by asset type and operation for the monthly cycle.
ShowHide child attributes of breakdown
- storage_image number
Storage usage for images.
- storage_video number
Storage usage for videos.
- storage_raw number
Storage usage for raw files.
- transformations_image number
Transformation usage for images.
- transformations_video number
Transformation usage for videos.
- bandwidth_image number
Bandwidth usage for images.
- bandwidth_video number
Bandwidth usage for videos.
- bandwidth_raw number
Bandwidth usage for raw files.
- image_impressions number
Number of times images were delivered (impressions).
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- product_environment_breakdown CloudAssetTypeBreakdown[]
Optional breakdown by product environment for the monthly cycle. May not be present in all responses.
ShowHide child attributes of product_environment_breakdown
Items CloudAssetTypeBreakdown- storage_image number
Storage usage for images in this product environment.
- storage_video number
Storage usage for videos in this product environment.
- storage_raw number
Storage usage for raw files in this product environment.
- transformations_image number
Transformation usage for images in this product environment.
- transformations_video number
Transformation usage for videos in this product environment.
- bandwidth_image number
Bandwidth usage for images in this product environment.
- bandwidth_video number
Bandwidth usage for videos in this product environment.
- bandwidth_raw number
Bandwidth usage for raw files in this product environment.
- image_impressions number
Number of times images were delivered (impressions) in this product environment.
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- cloud_name string
The name of the product environment.
400 Bad request.
- error object
ShowHide child attributes of error
- message stringexample
"error"
401 Authorization required.
- error object
ShowHide child attributes of error
- message stringexample
"error"
403 Not allowed.
- error object
ShowHide child attributes of error
- message stringexample
"error"
404 Not found.
- error object
ShowHide child attributes of error
- message stringexample
"error"
429 Too many requests.
- error object
ShowHide child attributes of error
- message stringexample
"error"
/billing_usagecurl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/billing_usage' \
-u 'API_KEY:API_SECRET'[
{
"plan_name": "Pro PAYG",
"metric_usage": [
{
"metric": "credit",
"limit": 2750,
"cycles": [
{
"from_day": "2024-08-21",
"to_day": "2024-09-20",
"usage": 25641.55,
"breakdown": {
"storage_image": 7971.55,
"storage_video": 1575.58,
"storage_raw": 0,
"transformations_image": 9603.73,
"transformations_video": 2290.76,
"bandwidth_image": 2972.57,
"bandwidth_video": 1227.22,
"bandwidth_raw": 0.14
},
"product_environment_breakdown": [
{
"storage_image": 0.04,
"storage_video": 0.09,
"storage_raw": 0,
"transformations_image": 0,
"transformations_video": 0,
"bandwidth_image": 0,
"bandwidth_video": 0,
"bandwidth_raw": 0,
"cloud_name": "myproduct"
}
]
}
]
}
]
}
][
{
"plan_name": "Advanced Extra PAYG +",
"metric_usage": [
{
"metric": "credit",
"limit": 1350,
"cycles": [
{
"from_day": "2025-02-05",
"to_day": "2025-03-04",
"usage": 2300,
"breakdown": {
"storage_image": 517.71,
"storage_video": 0.22,
"storage_raw": 0,
"transformations_image": 59.39,
"transformations_video": 0,
"video_seconds": 790.21,
"bandwidth_raw": 0,
"image_impressions": 932.46
},
"product_environment_breakdown": [
{
"storage_image": 0.04,
"storage_video": 0.11,
"storage_raw": 0,
"transformations_image": 0,
"transformations_video": 0,
"video_seconds": 0,
"bandwidth_raw": 0,
"image_impressions": 0,
"cloud_name": "myproduct1"
},
{
"storage_image": 517.67,
"storage_video": 0.11,
"storage_raw": 0,
"transformations_image": 59.39,
"transformations_video": 0,
"video_seconds": 790.21,
"bandwidth_raw": 0,
"image_impressions": 932.46,
"cloud_name": "myproduct2"
}
]
}
]
}
]
}
][
{
"plan_name": "Advanced PAYG",
"metric_usage": [
{
"metric": "credit",
"limit": 600,
"cycles": [
{
"from_day": "2024-08-26",
"to_day": "2024-09-18",
"usage": 1830.25,
"breakdown": {
"storage_image": 1.98,
"storage_video": 0.43,
"storage_raw": 0.01,
"transformations_image": 0.4,
"transformations_video": 0,
"bandwidth_image": 1827.43,
"bandwidth_video": 0,
"bandwidth_raw": 0
},
"product_environment_breakdown": [
{
"storage_image": 1.98,
"storage_video": 0.43,
"storage_raw": 0.01,
"transformations_image": 0.4,
"transformations_video": 0,
"bandwidth_image": 1827.43,
"bandwidth_video": 0,
"bandwidth_raw": 0,
"cloud_name": "myproduct"
}
]
}
]
}
]
}
][
{
"plan_name": "Pro PAYG +",
"metric_usage": [
{
"metric": "credit",
"limit": 2750,
"cycles": [
{
"from_day": "2025-01-14",
"to_day": "2025-02-04",
"usage": 1718.16,
"breakdown": {
"storage_image": 642.18,
"storage_video": 0.24,
"storage_raw": 0,
"transformations_image": 59.66,
"transformations_video": 0,
"video_seconds": 0.02,
"bandwidth_raw": 0,
"image_impressions": 1016.06
},
"product_environment_breakdown": [
{
"storage_image": 0.05,
"storage_video": 0.14,
"storage_raw": 0,
"transformations_image": 0,
"transformations_video": 0,
"video_seconds": 0,
"bandwidth_raw": 0,
"image_impressions": 0,
"cloud_name": "myproduct1"
},
{
"storage_image": 642.13,
"storage_video": 0.1,
"storage_raw": 0,
"transformations_image": 59.66,
"transformations_video": 0,
"video_seconds": 0.02,
"bandwidth_raw": 0,
"image_impressions": 1016.06,
"cloud_name": "myproduct2"
}
]
}
]
}
]
}
][
{
"plan_name": "Advanced PAYG",
"metric_usage": [
{
"metric": "credit",
"limit": 600,
"cycles": [
{
"from_day": "2024-08-26",
"to_day": "2024-09-18",
"usage": 1830.25,
"breakdown": {
"storage_image": 1.98,
"storage_video": 0.43,
"storage_raw": 0.01,
"transformations_image": 0.4,
"transformations_video": 0,
"bandwidth_image": 1827.43,
"bandwidth_video": 0,
"bandwidth_raw": 0
},
"product_environment_breakdown": [
{
"storage_image": 1.98,
"storage_video": 0.43,
"storage_raw": 0.01,
"transformations_image": 0.4,
"transformations_video": 0,
"bandwidth_image": 1827.43,
"bandwidth_video": 0,
"bandwidth_raw": 0,
"cloud_name": "myproduct"
}
]
}
]
}
]
},
{
"plan_name": "Advanced Extra PAYG",
"metric_usage": [
{
"metric": "credit",
"limit": 1350,
"cycles": [
{
"from_day": "2024-09-19",
"to_day": "2024-09-25",
"usage": 1133.49,
"breakdown": {
"storage_image": 4.25,
"storage_video": 0.91,
"storage_raw": 0.02,
"transformations_image": 0.27,
"transformations_video": 0,
"bandwidth_image": 1128.03,
"bandwidth_video": 0,
"bandwidth_raw": 0
},
"product_environment_breakdown": [
{
"storage_image": 4.25,
"storage_video": 0.91,
"storage_raw": 0.02,
"transformations_image": 0.27,
"transformations_video": 0,
"bandwidth_image": 1128.03,
"bandwidth_video": 0,
"bandwidth_raw": 0,
"cloud_name": "myproduct"
}
]
}
]
}
]
}
]{
"error": {
"message": "error"
}
}{
"error": {
"message": "Invalid credentials"
}
}{
"error": {
"message": "error"
}
}{
"error": {
"message": "not found"
}
}{
"error": {
"message": "error"
}
}Models
Show schema
- name stringRequired
The display name for the product environment.
example"Product3 Application" - cloud_name string
The Cloudinary cloud name (optional, default is auto-generated).
example"product3" - base_sub_account_id string
The ID of another product environment to copy settings from (optional).
example"0aaaaa1bbbbb2ccccc3ddddd4eeeee5f" - custom_attributes object
Custom attributes associated with the product environment (optional).
Show schema
- name string
The display name for the product environment.
example"Product3 Application" - cloud_name string
The Cloudinary cloud name. An error is returned if the requested name already exists. Note: Can only be changed for accounts with fewer than 1000 images.
example"product3" - custom_attributes object
Custom attributes associated with the product environment.
- enabled boolean
Whether the product environment is enabled. Default: true.
Show schema
- sub_accounts ProductEnvironment[]
ShowHide child attributes of sub_accounts
Items ProductEnvironmentProduct Environment
- cloud_name string
- name string
The cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled or disabled.
- id string
The ID of the product environment.
- api_access_keys ApiAccessKey[]
The list of the product environment's access keys.
ShowHide child attributes of api_access_keys
Items ApiAccessKeyBrief details of a single API Access Key.
- key string
The API key.
- secret string
The API secret.
formatpassword - enabled boolean
Whether the access key is enabled or disabled.
- created_at string
The date when the product environment was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the product environment was last updated.
formatdate-timeRFC 3339 date-time
Show schema
Product Environment
- cloud_name string
- name string
The cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled or disabled.
- id string
The ID of the product environment.
- api_access_keys ApiAccessKey[]
The list of the product environment's access keys.
ShowHide child attributes of api_access_keys
Items ApiAccessKeyBrief details of a single API Access Key.
- key string
The API key.
- secret string
The API secret.
formatpassword - enabled boolean
Whether the access key is enabled or disabled.
- created_at string
The date when the product environment was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the product environment was last updated.
formatdate-timeRFC 3339 date-time
Show schema
- name string
The name of the access key.
example"main_key" - enabled boolean
Whether the access key is enabled or disabled.
exampletrue
Show schema
- name string
The name of the access key.
example"main_key" - enabled boolean
Whether the access key is enabled or disabled.
exampletrue - dedicated_for string
Designates the access key for a specific purpose while allowing it to be used for other purposes, as well. This action replaces any previously assigned key. Possible values:
webhooksexample"webhooks"enum"webhooks"
Show schema
- access_keys AccessKey[]
The list of the access keys.
ShowHide child attributes of access_keys
Items AccessKey- name string
The name of the access key.
- api_key string
The API key.
- api_secret string
The API secret.
formatpassword - created_at string
The date when the access key was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the access key was last updated.
formatdate-timeRFC 3339 date-time - enabled boolean
Whether the access key is enabled or disabled.
- total integer
Total number of the access keys.
Show schema
- name string
The name of the access key.
- api_key string
The API key.
- api_secret string
The API secret.
formatpassword - created_at string
The date when the access key was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the access key was last updated.
formatdate-timeRFC 3339 date-time - enabled boolean
Whether the access key is enabled or disabled.
Show schema
Brief details of a single API Access Key.
- key string
The API key.
- secret string
The API secret.
formatpassword - enabled boolean
Whether the access key is enabled or disabled.
Show schema
- name string
The user's name.
example"John" - email string
A unique email address, which serves as the login name and notification address.
example"john@example.com" - role stringdeprecated
The legacy role to assign. Deprecated: use
roleswhen creating a user, orrole_managementwhen updating a user, instead. Can't be combined withrolesorrole_management.example"technical_admin"enum"master_admin""admin""billing""technical_admin""reports""media_library_admin""media_library_user" - sub_account_ids string[]
A list of product environment IDs that this user can access. Ignored if the role is
master_admin. Default: all product environments. - enabled boolean
Whether the user is enabled. Default: true.
exampletrue
Show schema
A role management operation and the roles it applies to.
- operation stringRequired
Whether to add or remove the listed roles.
example"add"enum"add""remove" - roles RoleAssignment[]Required
The roles to add or remove.
ShowHide child attributes of roles
Items RoleAssignmentA role assignment with optional scope and policy parameters.
- id stringRequired
The role ID.
example"cld::role::prodenv::media_library_admin" - scope_id string
The scope (product environment) ID the role applies to.
example"abcde1fghij2klmno3pqrst4uvwxy5z" - policy_parameters object
Optional content-scope policy parameters.
ShowHide child attributes of policy_parameters
- folder_id string
The folder ID the role is scoped to.
- collection_id string
The collection ID the role is scoped to.
- additional properties any
Show schema
A role assignment with optional scope and policy parameters.
- id stringRequired
The role ID.
example"cld::role::prodenv::media_library_admin" - scope_id string
The scope (product environment) ID the role applies to.
example"abcde1fghij2klmno3pqrst4uvwxy5z" - policy_parameters object
Optional content-scope policy parameters.
ShowHide child attributes of policy_parameters
- folder_id string
The folder ID the role is scoped to.
- collection_id string
The collection ID the role is scoped to.
- additional properties any
Show schema
- users User[]
ShowHide child attributes of users
Items UserUser details.
- id string
The user's ID.
- name string
The user's name.
- first_name string
The user's first name.
- last_name string
The user's last name.
- role stringdeprecated
The user's role. This field is returned only for accounts that don't have the granular permissions system enabled. For accounts with granular permissions enabled, this field isn't included, and roles are retrieved via the GET /principal_roles endpoint of the Permissions API instead.
- email string
The user's email.
formatemailEmail address - pending boolean
Whether the user is pending.
- enabled boolean
Whether the user is enabled.
- created_at string
The date when the user was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user was last updated.
formatdate-timeRFC 3339 date-time - last_login string
The date when the user was last logged in.
formatdate-timeRFC 3339 date-time - all_sub_accounts boolean
- providers string[]
The list of authentication providers for the user.
- email_preferences object
The user's email preferences.
- account_id string
The account ID.
- two_factor boolean
Whether two-factor authentication is enabled.
- status string
The user's status.
- root boolean
Whether the user is a root user.
- technical_role string
The user's technical role. This key is included only when the user has a technical role set. If the user has no technical role, the key is omitted entirely rather than returned as
null. - group_count integer
The number of groups the user belongs to.
- sub_account_count integer
The number of sub-accounts the user has access to.
Show schema
User details.
- id string
The user's ID.
- name string
The user's name.
- first_name string
The user's first name.
- last_name string
The user's last name.
- role stringdeprecated
The user's role. This field is returned only for accounts that don't have the granular permissions system enabled. For accounts with granular permissions enabled, this field isn't included, and roles are retrieved via the GET /principal_roles endpoint of the Permissions API instead.
- email string
The user's email.
formatemailEmail address - pending boolean
Whether the user is pending.
- enabled boolean
Whether the user is enabled.
- created_at string
The date when the user was created.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user was last updated.
formatdate-timeRFC 3339 date-time - last_login string
The date when the user was last logged in.
formatdate-timeRFC 3339 date-time - all_sub_accounts boolean
- providers string[]
The list of authentication providers for the user.
- email_preferences object
The user's email preferences.
- account_id string
The account ID.
- two_factor boolean
Whether two-factor authentication is enabled.
- status string
The user's status.
- root boolean
Whether the user is a root user.
- technical_role string
The user's technical role. This key is included only when the user has a technical role set. If the user has no technical role, the key is omitted entirely rather than returned as
null. - group_count integer
The number of groups the user belongs to.
- sub_account_count integer
The number of sub-accounts the user has access to.
Show schema
- name string
The user group's name.
example"Designers" - extended_details boolean
Whether to only return extended (true) or basic information about the group (false). Default: false.
examplefalse
Show schema
- user_groups UserGroup[]
A list of user groups.
ShowHide child attributes of user_groups
Items UserGroupUser group.
- id string
The user group's ID.
- name string
The user group's name.
- users UserGroupUser[]
A list of user group users. Only returned in extended_details.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
- created_at string
The date when the user group was created. Only returned in extended_details.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user group was last updated. Only returned in extended_details.
formatdate-timeRFC 3339 date-time
Show schema
- groups UserGroupSummary[]
A list of user groups that the user belongs to.
ShowHide child attributes of groups
Items UserGroupSummaryUser group summary.
- id string
The user group's ID.
- name string
The user group's name.
Show schema
- sub_accounts SubAccountSummary[]
A list of product environments (sub-accounts) that the user has access to.
ShowHide child attributes of sub_accounts
Items SubAccountSummaryProduct environment (sub-account) summary.
- id string
The product environment's ID.
- name string
The product environment's name.
- description string
The product environment's description.
- cloud_name string
The Cloudinary cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled.
Show schema
- users UserGroupUser[]
A list of user group users.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
Show schema
User group summary.
- id string
The user group's ID.
- name string
The user group's name.
Show schema
Product environment (sub-account) summary.
- id string
The product environment's ID.
- name string
The product environment's name.
- description string
The product environment's description.
- cloud_name string
The Cloudinary cloud name of the product environment.
- enabled boolean
Whether the product environment is enabled.
Show schema
User group.
- id string
The user group's ID.
- name string
The user group's name.
- users UserGroupUser[]
A list of user group users. Only returned in extended_details.
ShowHide child attributes of users
Items UserGroupUserUser group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
- created_at string
The date when the user group was created. Only returned in extended_details.
formatdate-timeRFC 3339 date-time - updated_at string
The date when the user group was last updated. Only returned in extended_details.
formatdate-timeRFC 3339 date-time
Show schema
User group user.
- id string
The user's ID.
- name string
The user's name.
- email string
The user's email.
formatemailEmail address
Show schema
- error object
ShowHide child attributes of error
- message stringexample
"error"
Show schema
- plan_name string
The name of the plan (e.g., "Pro PAYG", "Advanced PAYG").
- metric_usage object[]
ShowHide child attributes of metric_usage
Items object- metric string
The type of metric being measured (e.g., "credit").
- limit number
The limit for this metric in the plan.
- cycles object[]
Full usage details per billing cycle (monthly or annual, depending on plan).
ShowHide child attributes of cycles
Items object- from_day string
The start date of the billing cycle.
formatdateRFC 3339 full-dateexample"2024-08-21" - to_day string
The end date of the billing cycle.
formatdateRFC 3339 full-dateexample"2024-09-20" - usage number
Total usage for this cycle.
example25641.55 - breakdown object
Usage breakdown by asset type and operation.
ShowHide child attributes of breakdown
- storage_image number
Storage usage for images.
- storage_video number
Storage usage for videos.
- storage_raw number
Storage usage for raw files.
- transformations_image number
Transformation usage for images.
- transformations_video number
Transformation usage for videos.
- bandwidth_image number
Bandwidth usage for images.
- bandwidth_video number
Bandwidth usage for videos.
- bandwidth_raw number
Bandwidth usage for raw files.
- image_impressions number
Number of times images were delivered (impressions).
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- product_environment_breakdown CloudAssetTypeBreakdown[]
Optional breakdown by product environment. May not be present in all responses.
ShowHide child attributes of product_environment_breakdown
Items CloudAssetTypeBreakdown- storage_image number
Storage usage for images in this product environment.
- storage_video number
Storage usage for videos in this product environment.
- storage_raw number
Storage usage for raw files in this product environment.
- transformations_image number
Transformation usage for images in this product environment.
- transformations_video number
Transformation usage for videos in this product environment.
- bandwidth_image number
Bandwidth usage for images in this product environment.
- bandwidth_video number
Bandwidth usage for videos in this product environment.
- bandwidth_raw number
Bandwidth usage for raw files in this product environment.
- image_impressions number
Number of times images were delivered (impressions) in this product environment.
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- cloud_name string
The name of the product environment.
- monthly_cycles object[]
Monthly-level breakdown within a single annual cycle.
ShowHide child attributes of monthly_cycles
Items object- from_day string
The start date of the monthly billing cycle.
formatdateRFC 3339 full-date - to_day string
The end date of the monthly billing cycle.
formatdateRFC 3339 full-date - usage number
Total usage for this monthly cycle.
- breakdown object
Usage breakdown by asset type and operation for the monthly cycle.
ShowHide child attributes of breakdown
- storage_image number
Storage usage for images.
- storage_video number
Storage usage for videos.
- storage_raw number
Storage usage for raw files.
- transformations_image number
Transformation usage for images.
- transformations_video number
Transformation usage for videos.
- bandwidth_image number
Bandwidth usage for images.
- bandwidth_video number
Bandwidth usage for videos.
- bandwidth_raw number
Bandwidth usage for raw files.
- image_impressions number
Number of times images were delivered (impressions).
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- product_environment_breakdown CloudAssetTypeBreakdown[]
Optional breakdown by product environment for the monthly cycle. May not be present in all responses.
ShowHide child attributes of product_environment_breakdown
Items CloudAssetTypeBreakdown- storage_image number
Storage usage for images in this product environment.
- storage_video number
Storage usage for videos in this product environment.
- storage_raw number
Storage usage for raw files in this product environment.
- transformations_image number
Transformation usage for images in this product environment.
- transformations_video number
Transformation usage for videos in this product environment.
- bandwidth_image number
Bandwidth usage for images in this product environment.
- bandwidth_video number
Bandwidth usage for videos in this product environment.
- bandwidth_raw number
Bandwidth usage for raw files in this product environment.
- image_impressions number
Number of times images were delivered (impressions) in this product environment.
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- cloud_name string
The name of the product environment.
Show schema
- storage_image number
Storage usage for images in this product environment.
- storage_video number
Storage usage for videos in this product environment.
- storage_raw number
Storage usage for raw files in this product environment.
- transformations_image number
Transformation usage for images in this product environment.
- transformations_video number
Transformation usage for videos in this product environment.
- bandwidth_image number
Bandwidth usage for images in this product environment.
- bandwidth_video number
Bandwidth usage for videos in this product environment.
- bandwidth_raw number
Bandwidth usage for raw files in this product environment.
- image_impressions number
Number of times images were delivered (impressions) in this product environment.
- video_seconds number
Video delivery usage measured in billing seconds (actual viewed duration multiplied by a resolution-based ratio).
- cloud_name string
The name of the product environment.