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.

v0.2.1OAS 3.0.3

Cloudinary Account Provisioning API

Download OpenAPI Document

Accounts 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:

Get product environments

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).

    example true
  • 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.
application/json
ProductEnvironmentsResponse
  • sub_accounts ProductEnvironment[]
    ShowHide child attributes of sub_accounts
    Items ProductEnvironment

    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 ApiAccessKey

      Brief details of a single API Access Key.

      • key string

        The API key.

      • secret string

        The API secret.

        format password
      • enabled boolean

        Whether the access key is enabled or disabled.

    • created_at string

      The date when the product environment was created.

      format date-time RFC 3339 date-time
    • updated_at string

      The date when the product environment was last updated.

      format date-time RFC 3339 date-time
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/sub_accounts
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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"
    }
  ]
}

Create product environment

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.

ProductEnvironmentRequest
  • 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.
application/json
ProductEnvironment

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 ApiAccessKey

    Brief details of a single API Access Key.

    • key string

      The API key.

    • secret string

      The API secret.

      format password
    • enabled boolean

      Whether the access key is enabled or disabled.

  • created_at string

    The date when the product environment was created.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the product environment was last updated.

    format date-time RFC 3339 date-time
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
POST/sub_accounts
curl -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": {}
}'
Response
{
  "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"
}

Get product environment

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.
application/json
ProductEnvironment

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 ApiAccessKey

    Brief details of a single API Access Key.

    • key string

      The API key.

    • secret string

      The API secret.

      format password
    • enabled boolean

      Whether the access key is enabled or disabled.

  • created_at string

    The date when the product environment was created.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the product environment was last updated.

    format date-time RFC 3339 date-time
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/sub_accounts/{sub_account_id}
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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"
}

Update product environment

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.

ProductEnvironmentUpdateRequest
  • 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
application/json
ProductEnvironment

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 ApiAccessKey

    Brief details of a single API Access Key.

    • key string

      The API key.

    • secret string

      The API secret.

      format password
    • enabled boolean

      Whether the access key is enabled or disabled.

  • created_at string

    The date when the product environment was created.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the product environment was last updated.

    format date-time RFC 3339 date-time
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
PUT/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
}'
Response
{
  "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"
}

Delete product environment

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.
application/json
SuccessResponse
  • message string
    example "ok"
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
DEL/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'
Response
{
  "message": "ok"
}

Get access keys

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.
application/json
AccessKeysResponse
  • 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.

      format password
    • created_at string

      The date when the access key was created.

      format date-time RFC 3339 date-time
    • updated_at string

      The date when the access key was last updated.

      format date-time RFC 3339 date-time
    • enabled boolean

      Whether the access key is enabled or disabled.

  • total integer

    Total number of the access keys.

401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/sub_accounts/{sub_account_id}/access_keys
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/sub_accounts/abcde1fghij2klmno3pqrst4uvwxy5z/access_keys' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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
}

Generate an access key

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.

AccessKeyRequest
  • name string

    The name of the access key.

    example "main_key"
  • enabled boolean

    Whether the access key is enabled or disabled.

    example true

Responses

200 Access key created successfully.
application/json
AccessKey
  • name string

    The name of the access key.

  • api_key string

    The API key.

  • api_secret string

    The API secret.

    format password
  • created_at string

    The date when the access key was created.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the access key was last updated.

    format date-time RFC 3339 date-time
  • enabled boolean

    Whether the access key is enabled or disabled.

400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
POST/sub_accounts/{sub_account_id}/access_keys
curl -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
}'
Response
{
  "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
}

Delete access key by name

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.
application/json
SuccessResponse
  • message string
    example "ok"
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
DEL/sub_accounts/{sub_account_id}/access_keys
curl -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'
Response
{
  "message": "ok"
}

Update an access key

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.

AccessKeyUpdateRequest
  • name string

    The name of the access key.

    example "main_key"
  • enabled boolean

    Whether the access key is enabled or disabled.

    example true
  • 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: webhooks

    example "webhooks"
    enum "webhooks"

Responses

200 Access key updated successfully.
application/json
AccessKey
  • name string

    The name of the access key.

  • api_key string

    The API key.

  • api_secret string

    The API secret.

    format password
  • created_at string

    The date when the access key was created.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the access key was last updated.

    format date-time RFC 3339 date-time
  • enabled boolean

    Whether the access key is enabled or disabled.

400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
PUT/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"
}'
Response
{
  "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
}

Delete access key

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.
application/json
SuccessResponse
  • message string
    example "ok"
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
DEL/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'
Response
{
  "message": "ok"
}

Get users

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)

    example false
  • 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.

    format date RFC 3339 full-dateexample "2023-01-01"
  • to string

    All last logins before this date, given in the format: yyyy-mm-dd.

    format date RFC 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 string
    enum "name" "role" "status" "activity" "created_at"
  • page integer
  • page_size integer

Responses

200 Successful operation.
application/json
UsersResponse
  • users User[]
    ShowHide child attributes of users
    Items User

    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.

      format email Email 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.

      format date-time RFC 3339 date-time
    • updated_at string

      The date when the user was last updated.

      format date-time RFC 3339 date-time
    • last_login string

      The date when the user was last logged in.

      format date-time RFC 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.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/users
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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
    }
  ]
}

Create user

Create a new user.

Learn more about creating users.

Body Required application/json

User details.

object
  • 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 roles when creating a user, or role_management when updating a user, instead. Can't be combined with roles or role_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.

    example true
  • roles RoleAssignment[]

    The roles to assign. Can't be sent together with role.

    ShowHide child attributes of roles
    Items RoleAssignment

    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

Responses

200 User created successfully.
application/json
User

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.

    format email Email 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.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the user was last updated.

    format date-time RFC 3339 date-time
  • last_login string

    The date when the user was last logged in.

    format date-time RFC 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.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
POST/users
curl -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"
}'
Response
{
  "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
}

Get user

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.
application/json
User

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.

    format email Email 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.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the user was last updated.

    format date-time RFC 3339 date-time
  • last_login string

    The date when the user was last logged in.

    format date-time RFC 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.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/users/{user_id}
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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
}

Update user

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.

object
  • 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 roles when creating a user, or role_management when updating a user, instead. Can't be combined with roles or role_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.

    example true
  • 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 RoleAssignment

      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

Responses

200 User updated successfully.
application/json
User

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.

    format email Email 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.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the user was last updated.

    format date-time RFC 3339 date-time
  • last_login string

    The date when the user was last logged in.

    format date-time RFC 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.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
PUT/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"
      }
    ]
  }
}'
Response
{
  "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
}

Delete user

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.
application/json
SuccessResponse
  • message string
    example "ok"
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
DEL/users/{user_id}
curl -X DELETE 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442' \
  -u 'API_KEY:API_SECRET'
Response
{
  "message": "ok"
}

Get user groups

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.
application/json
UserGroupsListResponse
  • groups UserGroupSummary[]

    A list of user groups that the user belongs to.

    ShowHide child attributes of groups
    Items UserGroupSummary

    User group summary.

    • id string

      The user group's ID.

    • name string

      The user group's name.

401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/users/{user_id}/groups
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442/groups' \
  -u 'API_KEY:API_SECRET'
Response
{
  "groups": [
    {
      "id": "7f08f1f1fc910bf1f25274aef11d27",
      "name": "user_group_1"
    },
    {
      "id": "1cc3808888154263ac1e5eb2e5c52d61",
      "name": "user_group_2"
    }
  ]
}

Get user sub-accounts

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.
application/json
UserSubAccountsResponse
  • sub_accounts SubAccountSummary[]

    A list of product environments (sub-accounts) that the user has access to.

    ShowHide child attributes of sub_accounts
    Items SubAccountSummary

    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.

401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/users/{user_id}/sub_accounts
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/users/0abed8dfcc039ea05e2a1d494fd442/sub_accounts' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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
    }
  ]
}

Get User Groups

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.

    example true

Responses

200 Successful operation.
application/json
UserGroupsResponse
  • user_groups UserGroup[]

    A list of user groups.

    ShowHide child attributes of user_groups
    Items UserGroup

    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 UserGroupUser

      User group user.

      • id string

        The user's ID.

      • name string

        The user's name.

      • email string

        The user's email.

        format email Email address
    • created_at string

      The date when the user group was created. Only returned in extended_details.

      format date-time RFC 3339 date-time
    • updated_at string

      The date when the user group was last updated. Only returned in extended_details.

      format date-time RFC 3339 date-time
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/user_groups
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups' \
  -u 'API_KEY:API_SECRET'
Response
{
  "user_groups": [
    {
      "id": "7f08f1f1fc910bf1f25274aef11d27",
      "name": "user_group_1"
    },
    {
      "id": "1cc3808888154263ac1e5eb2e5c52d61",
      "name": "user_group_2"
    }
  ]
}

Create User Group

Create a new user group for the account.

Learn more about creating user groups.

Body Required application/json

User group details.

UserGroupRequest
  • 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.

    example false

Responses

200 User group created successfully.
application/json
UserGroup

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 UserGroupUser

    User group user.

    • id string

      The user's ID.

    • name string

      The user's name.

    • email string

      The user's email.

      format email Email address
  • created_at string

    The date when the user group was created. Only returned in extended_details.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the user group was last updated. Only returned in extended_details.

    format date-time RFC 3339 date-time
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
POST/user_groups
curl -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
}'
Response
{
  "id": "7f08f1f1fc910bf1f25274aef11d27",
  "name": "Designers"
}

Get User Group

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.

    example true

Responses

200 Successful operation.
application/json
UserGroup

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 UserGroupUser

    User group user.

    • id string

      The user's ID.

    • name string

      The user's name.

    • email string

      The user's email.

      format email Email address
  • created_at string

    The date when the user group was created. Only returned in extended_details.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the user group was last updated. Only returned in extended_details.

    format date-time RFC 3339 date-time
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/user_groups/{group_id}
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups/7f08f1f1fc910bf1f25274aef11d27' \
  -u 'API_KEY:API_SECRET'
Response
{
  "id": "7f08f1f1fc910bf1f25274aef11d27",
  "name": "Designers"
}

Update User Group

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.

UserGroupRequest
  • 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.

    example false

Responses

200 User group updated successfully.
application/json
UserGroup

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 UserGroupUser

    User group user.

    • id string

      The user's ID.

    • name string

      The user's name.

    • email string

      The user's email.

      format email Email address
  • created_at string

    The date when the user group was created. Only returned in extended_details.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the user group was last updated. Only returned in extended_details.

    format date-time RFC 3339 date-time
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
PUT/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"
}'
Response
{
  "id": "7f08f1f1fc910bf1f25274aef11d27",
  "name": "Designers and Creatives"
}

Delete User Group

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.
application/json
SuccessResponse
  • message string
    example "ok"
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
DEL/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'
Response
{
  "message": "ok"
}

Get Users in User Group

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.
application/json
UserGroupUsersResponse
  • users UserGroupUser[]

    A list of user group users.

    ShowHide child attributes of users
    Items UserGroupUser

    User group user.

    • id string

      The user's ID.

    • name string

      The user's name.

    • email string

      The user's email.

      format email Email address
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/user_groups/{group_id}/users
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/user_groups/7f08f1f1fc910bf1f25274aef11d27/users' \
  -u 'API_KEY:API_SECRET'
Response
{
  "users": [
    {
      "id": "0abed8dfcc039ea05e2a1d494fd442",
      "name": "John",
      "email": "john@example.com"
    }
  ]
}

Add User to User Group

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
application/json
UserGroupUser

User group user.

  • id string

    The user's ID.

  • name string

    The user's name.

  • email string

    The user's email.

    format email Email address
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
409 Already exists.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
POST/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'
Response
{
  "id": "0abed8dfcc039ea05e2a1d494fd442",
  "name": "John Doe",
  "email": "john.doe@example.com"
}

Remove User from User Group

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.
application/json
UserGroupUsersResponse
  • users UserGroupUser[]

    A list of user group users.

    ShowHide child attributes of users
    Items UserGroupUser

    User group user.

    • id string

      The user's ID.

    • name string

      The user's name.

    • email string

      The user's email.

      format email Email address
400 Bad request.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
420 Max usage rate exceeded.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
DEL/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'
Response
{
  "users": []
}

Billing Usage

Access billing usage information for your account and product environments.

Learn more about billing and usage information.

Get billing usage information

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).

    format int32 Signed 32-bit integerexample 2024
  • include_prodenv_breakdown boolean

    Whether to include usage details by product environment. Default: false.

Responses

200 Successful operation.
application/json
Items object
  • 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.

        format date RFC 3339 full-dateexample "2024-08-21"
      • to_day string

        The end date of the billing cycle.

        format date RFC 3339 full-dateexample "2024-09-20"
      • usage number

        Total usage for this cycle.

        example 25641.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.

        format date RFC 3339 full-date
      • to_day string

        The end date of the monthly billing cycle.

        format date RFC 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.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
401 Authorization required.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
403 Not allowed.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
404 Not found.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
429 Too many requests.
application/json
ErrorResponse
  • error object
    ShowHide child attributes of error
    • message string
      example "error"
GET/billing_usage
curl 'https://api.cloudinary.com/v1_1/provisioning/accounts/ACCOUNT_ID/billing_usage' \
  -u 'API_KEY:API_SECRET'
Response
[
  {
    "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"
              }
            ]
          }
        ]
      }
    ]
  }
]

Models

ProductEnvironmentRequest

Show schema
object
  • 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).

ProductEnvironmentUpdateRequest

Show schema
object
  • 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.

ProductEnvironmentsResponse

Show schema
object
  • sub_accounts ProductEnvironment[]
    ShowHide child attributes of sub_accounts
    Items ProductEnvironment

    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 ApiAccessKey

      Brief details of a single API Access Key.

      • key string

        The API key.

      • secret string

        The API secret.

        format password
      • enabled boolean

        Whether the access key is enabled or disabled.

    • created_at string

      The date when the product environment was created.

      format date-time RFC 3339 date-time
    • updated_at string

      The date when the product environment was last updated.

      format date-time RFC 3339 date-time

ProductEnvironment

Show schema
object

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 ApiAccessKey

    Brief details of a single API Access Key.

    • key string

      The API key.

    • secret string

      The API secret.

      format password
    • enabled boolean

      Whether the access key is enabled or disabled.

  • created_at string

    The date when the product environment was created.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the product environment was last updated.

    format date-time RFC 3339 date-time

AccessKeyRequest

Show schema
object
  • name string

    The name of the access key.

    example "main_key"
  • enabled boolean

    Whether the access key is enabled or disabled.

    example true

AccessKeyUpdateRequest

Show schema
object
  • name string

    The name of the access key.

    example "main_key"
  • enabled boolean

    Whether the access key is enabled or disabled.

    example true
  • 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: webhooks

    example "webhooks"
    enum "webhooks"

AccessKeysResponse

Show schema
object
  • 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.

      format password
    • created_at string

      The date when the access key was created.

      format date-time RFC 3339 date-time
    • updated_at string

      The date when the access key was last updated.

      format date-time RFC 3339 date-time
    • enabled boolean

      Whether the access key is enabled or disabled.

  • total integer

    Total number of the access keys.

AccessKey

Show schema
object
  • name string

    The name of the access key.

  • api_key string

    The API key.

  • api_secret string

    The API secret.

    format password
  • created_at string

    The date when the access key was created.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the access key was last updated.

    format date-time RFC 3339 date-time
  • enabled boolean

    Whether the access key is enabled or disabled.

ApiAccessKey

Show schema
object

Brief details of a single API Access Key.

  • key string

    The API key.

  • secret string

    The API secret.

    format password
  • enabled boolean

    Whether the access key is enabled or disabled.

UserRequest

Show schema
object
  • 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 roles when creating a user, or role_management when updating a user, instead. Can't be combined with roles or role_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.

    example true

RoleManagementRequest

Show schema
object

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 RoleAssignment

    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

RoleAssignment

Show schema
object

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

UsersResponse

Show schema
object
  • users User[]
    ShowHide child attributes of users
    Items User

    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.

      format email Email 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.

      format date-time RFC 3339 date-time
    • updated_at string

      The date when the user was last updated.

      format date-time RFC 3339 date-time
    • last_login string

      The date when the user was last logged in.

      format date-time RFC 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.

User

Show schema
object

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.

    format email Email 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.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the user was last updated.

    format date-time RFC 3339 date-time
  • last_login string

    The date when the user was last logged in.

    format date-time RFC 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.

UserGroupRequest

Show schema
object
  • 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.

    example false

UserGroupsResponse

Show schema
object
  • user_groups UserGroup[]

    A list of user groups.

    ShowHide child attributes of user_groups
    Items UserGroup

    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 UserGroupUser

      User group user.

      • id string

        The user's ID.

      • name string

        The user's name.

      • email string

        The user's email.

        format email Email address
    • created_at string

      The date when the user group was created. Only returned in extended_details.

      format date-time RFC 3339 date-time
    • updated_at string

      The date when the user group was last updated. Only returned in extended_details.

      format date-time RFC 3339 date-time

UserGroupsListResponse

Show schema
object
  • groups UserGroupSummary[]

    A list of user groups that the user belongs to.

    ShowHide child attributes of groups
    Items UserGroupSummary

    User group summary.

    • id string

      The user group's ID.

    • name string

      The user group's name.

UserSubAccountsResponse

Show schema
object
  • sub_accounts SubAccountSummary[]

    A list of product environments (sub-accounts) that the user has access to.

    ShowHide child attributes of sub_accounts
    Items SubAccountSummary

    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.

UserGroupUsersResponse

Show schema
object
  • users UserGroupUser[]

    A list of user group users.

    ShowHide child attributes of users
    Items UserGroupUser

    User group user.

    • id string

      The user's ID.

    • name string

      The user's name.

    • email string

      The user's email.

      format email Email address

UserGroupSummary

Show schema
object

User group summary.

  • id string

    The user group's ID.

  • name string

    The user group's name.

SubAccountSummary

Show schema
object

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.

UserGroup

Show schema
object

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 UserGroupUser

    User group user.

    • id string

      The user's ID.

    • name string

      The user's name.

    • email string

      The user's email.

      format email Email address
  • created_at string

    The date when the user group was created. Only returned in extended_details.

    format date-time RFC 3339 date-time
  • updated_at string

    The date when the user group was last updated. Only returned in extended_details.

    format date-time RFC 3339 date-time

UserGroupUser

Show schema
object

User group user.

  • id string

    The user's ID.

  • name string

    The user's name.

  • email string

    The user's email.

    format email Email address

SuccessResponse

Show schema
object
  • message string
    example "ok"

ErrorResponse

Show schema
object
  • error object
    ShowHide child attributes of error
    • message string
      example "error"

BillingUsageResponse

Show schema
object[]
Items object
  • 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.

        format date RFC 3339 full-dateexample "2024-08-21"
      • to_day string

        The end date of the billing cycle.

        format date RFC 3339 full-dateexample "2024-09-20"
      • usage number

        Total usage for this cycle.

        example 25641.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.

        format date RFC 3339 full-date
      • to_day string

        The end date of the monthly billing cycle.

        format date RFC 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.

CloudAssetTypeBreakdown

Show schema
object
  • 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.