Cloudinary Access Keys API

Manage the access keys, including a key and secret pair, for your product environment (sub-account). (In the Cloudinary Console and documentation, these are referred to as product environment API keys.)

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /sub_accounts/{sub_account_id}/access_keys List access keys for a product environment · Get access keys #
Ask an LLM
“Which access keys exist for one of my product environments?”
“Can I sort and page through a sub-account's access keys?”
Tell an agent
List all access keys for product environment {sub_account_id}.
Show access keys for {sub_account_id} sorted by {sort_by}.
POST /sub_accounts/{sub_account_id}/access_keys Generate an access key for a product environment · Generate an access key #
Ask an LLM
“How do I create a new access key for a sub-account?”
“Can I create an access key that starts out disabled?”
Tell an agent
Generate a new access key for product environment {sub_account_id}.
Create an access key named {name} for {sub_account_id} with enabled set to {enabled}.
DELETE /sub_accounts/{sub_account_id}/access_keys Delete an access key by name · Delete access key by name #
Ask an LLM
“Can I remove an access key from a product environment by its name?”
“What happens to the key once I delete it by name?”
Tell an agent destructive · confirm first
Delete the access key named {name} from product environment {sub_account_id}.
Remove access key {name} from {sub_account_id}.
PUT /sub_accounts/{sub_account_id}/access_keys/{key} Rename or enable an existing access key · Update an access key #
Ask an LLM
“How do I rename an access key I already have?”
“Can I disable an access key without deleting it?”
Tell an agent
Rename access key {key} in {sub_account_id} to {name}.
Set enabled to {enabled} on access key {key} for {sub_account_id}.
DELETE /sub_accounts/{sub_account_id}/access_keys/{key} Delete an access key by API key · Delete access key #
Ask an LLM
“How do I delete an access key using its API key?”
“Can I revoke one access key by its key value?”
Tell an agent destructive · confirm first
Delete access key {key} from product environment {sub_account_id}.
Revoke the API key {key} in {sub_account_id}.
GET /v1_1/provisioning/accounts/{account_id}/sub_accounts/{sub_account_id}/access_keys Get access keys #
POST /v1_1/provisioning/accounts/{account_id}/sub_accounts/{sub_account_id}/access_keys Generate an access key #
DELETE /v1_1/provisioning/accounts/{account_id}/sub_accounts/{sub_account_id}/access_keys Delete access key by name #
PUT /v1_1/provisioning/accounts/{account_id}/sub_accounts/{sub_account_id}/access_keys/{key} Update an access key #
DELETE /v1_1/provisioning/accounts/{account_id}/sub_accounts/{sub_account_id}/access_keys/{key} Delete access key #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudinary:cloudinary-access-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudinary-access-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudinary Access Keys API
  contact:
    name: Cloudinary Support
    email: support@cloudinary.com
    url: https://support.cloudinary.com
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://cloudinary.com/tou
  x-cld-module-context: account
  x-cld-module-name: account-provisioning
  version: '1.0'
  description: 'Operations tagged Access Keys across 3 of this provider''s published API definitions: cloudinary-openapi.yml, cloudinary-provisioning-schema.yml, cloudinary-provisioning-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.cloudinary.com/v1_1/provisioning/accounts/{accountId}
  variables:
    accountId:
      default: ACCOUNT_ID
      description: Your Account ID.
- url: https://{region}.cloudinary.com
  description: Regional API endpoints for optimal performance.
  variables:
    region:
      default: api
      description: Regional endpoint selection
      enum:
      - api
      - api-eu
      - api-ap
- url: https://{host}
  description: Custom domains for enterprise deployments.
  variables:
    host:
      default: api.cloudinary.com
      description: API host domain.
security:
- basicAuth: []
tags:
- name: Access Keys
  description: Manage the access keys, including a key and secret pair, for your product environment (sub-account). (In the Cloudinary Console and documentation, these are referred to as product environment API keys.)
  externalDocs:
    description: Learn more about access keys management.
    url: https://cloudinary.com/documentation/provisioning_api#access_keys
paths:
  /sub_accounts/{sub_account_id}/access_keys:
    parameters:
    - $ref: '#/components/parameters/subAccountId'
    get:
      tags:
      - Access Keys
      summary: Get access keys
      description: Retrieve an array of all access keys for a product environment.
      externalDocs:
        description: Learn more about retrieving access keys.
        url: https://cloudinary.com/documentation/provisioning_api#get_access_keys
      operationId: getAccessKeys
      parameters:
      - name: page_size
        in: query
        schema:
          type: integer
        description: How many entries to display on each page.
      - name: page
        in: query
        schema:
          type: integer
          maximum: 100
        description: 'Which page to return (maximum pages 100). **Default**: All pages are returned.

          '
      - name: sort_by
        in: query
        schema:
          type: string
          enum:
          - api_key
          - created_at
          - name
          - enabled
        description: 'Which response parameter to sort by. **Possible values**: `api_key`, `created_at`, `name`, `enabled`.

          '
        example: created_at
      - name: sort_order
        in: query
        schema:
          type: string
          enum:
          - desc
          - asc
        description: 'Control the order of returned keys. **Possible values**: `desc` (default), `asc`.

          '
        example: asc
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKeysResponse'
              examples:
                AccessKeys:
                  $ref: '#/components/examples/AccessKeys'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '404':
          $ref: '#/components/responses/404NotFound'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
    post:
      tags:
      - Access Keys
      summary: Generate an access key
      description: Generate a new access key.
      externalDocs:
        description: Learn more about generating access keys.
        url: https://cloudinary.com/documentation/provisioning_api#generate_an_access_key
      operationId: generateAccessKey
      requestBody:
        required: true
        description: Access key details.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyRequest'
      responses:
        '200':
          description: Access key created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKey'
              examples:
                MainAccessKey:
                  $ref: '#/components/examples/MainAccessKey'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '409':
          $ref: '#/components/responses/409AlreadyExists'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
    delete:
      tags:
      - Access Keys
      summary: Delete access key by name
      description: Delete a specific access key by name.
      externalDocs:
        description: Learn more about deleting access keys.
        url: https://cloudinary.com/documentation/provisioning_api#delete_an_access_key
      operationId: deleteAccessKeyByName
      parameters:
      - name: name
        description: The access key name.
        in: query
        required: true
        schema:
          type: string
        example: main_key
      responses:
        '200':
          description: Access Key deleted successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
    servers:
    - url: https://api.cloudinary.com/v1_1/provisioning/accounts/{accountId}
      variables:
        accountId:
          default: ACCOUNT_ID
          description: Your Account ID.
  /sub_accounts/{sub_account_id}/access_keys/{key}:
    parameters:
    - $ref: '#/components/parameters/subAccountId'
    - $ref: '#/components/parameters/accessKey'
    put:
      tags:
      - Access Keys
      summary: Update an access key
      description: Update the name and/or status of an existing access key.
      externalDocs:
        description: Learn more about updating access keys.
        url: https://cloudinary.com/documentation/provisioning_api#update_an_access_key
      operationId: updateAccessKey
      requestBody:
        required: true
        description: Access key details for update.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyUpdateRequest'
      responses:
        '200':
          description: Access key updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKey'
              examples:
                MainAccessKey:
                  $ref: '#/components/examples/MainAccessKey'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '409':
          $ref: '#/components/responses/409AlreadyExists'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
    delete:
      tags:
      - Access Keys
      summary: Delete access key
      description: Delete a specific access key.
      externalDocs:
        description: Learn more about deleting access keys.
        url: https://cloudinary.com/documentation/provisioning_api#delete_an_access_key
      operationId: deleteAccessKey
      responses:
        '200':
          description: Access key deleted successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
    servers:
    - url: https://api.cloudinary.com/v1_1/provisioning/accounts/{accountId}
      variables:
        accountId:
          default: ACCOUNT_ID
          description: Your Account ID.
  /v1_1/provisioning/accounts/{account_id}/sub_accounts/{sub_account_id}/access_keys:
    parameters:
    - $ref: '#/components/parameters/AccountIdParam'
    - $ref: '#/components/parameters/subAccountId'
    get:
      tags:
      - Access Keys
      summary: Get access keys
      description: Retrieve an array of all access keys for a product environment.
      externalDocs:
        description: Learn more about retrieving access keys.
        url: https://cloudinary.com/documentation/provisioning_api#get_access_keys
      operationId: getV11ProvisioningAccountsByAccountIdSubAccountsBySubAccountIdAccessKeys
      parameters:
      - name: page_size
        in: query
        schema:
          type: integer
        description: How many entries to display on each page.
      - name: page
        in: query
        schema:
          type: integer
          maximum: 100
        description: 'Which page to return (maximum pages 100). **Default**: All pages are returned.

          '
      - name: sort_by
        in: query
        schema:
          type: string
          enum:
          - api_key
          - created_at
          - name
          - enabled
        description: 'Which response parameter to sort by. **Possible values**: `api_key`, `created_at`, `name`, `enabled`.

          '
        example: created_at
      - name: sort_order
        in: query
        schema:
          type: string
          enum:
          - desc
          - asc
        description: 'Control the order of returned keys. **Possible values**: `desc` (default), `asc`.

          '
        example: asc
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKeysResponse'
              examples:
                AccessKeys:
                  $ref: '#/components/examples/AccessKeys'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '404':
          $ref: '#/components/responses/404NotFound'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
      x-operation-id-source: normalized
      x-operation-id-original: getAccessKeys
    post:
      tags:
      - Access Keys
      summary: Generate an access key
      description: Generate a new access key.
      externalDocs:
        description: Learn more about generating access keys.
        url: https://cloudinary.com/documentation/provisioning_api#generate_an_access_key
      operationId: postV11ProvisioningAccountsByAccountIdSubAccountsBySubAccountIdAccessKeys
      requestBody:
        required: true
        description: Access key details.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyRequest'
      responses:
        '200':
          description: Access key created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKey'
              examples:
                MainAccessKey:
                  $ref: '#/components/examples/MainAccessKey'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '409':
          $ref: '#/components/responses/409AlreadyExists'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
      x-operation-id-source: normalized
      x-operation-id-original: generateAccessKey
    delete:
      tags:
      - Access Keys
      summary: Delete access key by name
      description: Delete a specific access key by name.
      externalDocs:
        description: Learn more about deleting access keys.
        url: https://cloudinary.com/documentation/provisioning_api#delete_an_access_key
      operationId: deleteV11ProvisioningAccountsByAccountIdSubAccountsBySubAccountIdAccessKeys
      parameters:
      - name: name
        description: The access key name.
        in: query
        required: true
        schema:
          type: string
        example: main_key
      responses:
        '200':
          description: Access Key deleted successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
      x-operation-id-source: normalized
      x-operation-id-original: deleteAccessKeyByName
    servers:
    - url: https://{region}.cloudinary.com
      description: Regional API endpoints for optimal performance.
      variables:
        region:
          default: api
          description: Regional endpoint selection
          enum:
          - api
          - api-eu
          - api-ap
    - url: https://{host}
      description: Custom domains for enterprise deployments.
      variables:
        host:
          default: api.cloudinary.com
          description: API host domain.
  /v1_1/provisioning/accounts/{account_id}/sub_accounts/{sub_account_id}/access_keys/{key}:
    parameters:
    - $ref: '#/components/parameters/AccountIdParam'
    - $ref: '#/components/parameters/subAccountId'
    - $ref: '#/components/parameters/accessKey'
    put:
      tags:
      - Access Keys
      summary: Update an access key
      description: Update the name and/or status of an existing access key.
      externalDocs:
        description: Learn more about updating access keys.
        url: https://cloudinary.com/documentation/provisioning_api#update_an_access_key
      operationId: putV11ProvisioningAccountsByAccountIdSubAccountsBySubAccountIdAccessKeysByKey
      requestBody:
        required: true
        description: Access key details for update.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyUpdateRequest'
      responses:
        '200':
          description: Access key updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKey'
              examples:
                MainAccessKey:
                  $ref: '#/components/examples/MainAccessKey'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '409':
          $ref: '#/components/responses/409AlreadyExists'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
      x-operation-id-source: normalized
      x-operation-id-original: updateAccessKey
    delete:
      tags:
      - Access Keys
      summary: Delete access key
      description: Delete a specific access key.
      externalDocs:
        description: Learn more about deleting access keys.
        url: https://cloudinary.com/documentation/provisioning_api#delete_an_access_key
      operationId: deleteV11ProvisioningAccountsByAccountIdSubAccountsBySubAccountIdAccessKeysByKey
      responses:
        '200':
          description: Access key deleted successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthorized'
        '403':
          $ref: '#/components/responses/403NotAllowed'
        '404':
          $ref: '#/components/responses/404NotFound'
        '420':
          $ref: '#/components/responses/420MaxUsageRateExceeded'
        '429':
          $ref: '#/components/responses/429TooManyRequests'
      x-operation-id-source: normalized
      x-operation-id-original: deleteAccessKey
    servers:
    - url: https://{region}.cloudinary.com
      description: Regional API endpoints for optimal performance.
      variables:
        region:
          default: api
          description: Regional endpoint selection
          enum:
          - api
          - api-eu
          - api-ap
    - url: https://{host}
      description: Custom domains for enterprise deployments.
      variables:
        host:
          default: api.cloudinary.com
          description: API host domain.
components:
  schemas:
    AccessKeyUpdateRequest:
      type: object
      properties:
        name:
          type: string
          description: The name of the access key.
          example: main_key
        enabled:
          type: boolean
          description: Whether the access key is enabled or disabled.
          example: true
        dedicated_for:
          type: string
          enum:
          - webhooks
          description: "Designates the access key for a specific purpose while allowing it to be used for other purposes, as well. \nThis action replaces any previously assigned key. **Possible values**: `webhooks`\n"
          example: webhooks
    AccessKeysResponse:
      type: object
      properties:
        access_keys:
          type: array
          description: The list of the access keys.
          items:
            $ref: '#/components/schemas/AccessKey'
        total:
          type: integer
          description: Total number of the access keys.
    SuccessResponse:
      type: object
      properties:
        message:
          type: string
          example: ok
    AccessKey:
      type: object
      properties:
        name:
          type: string
          description: The name of the access key.
        api_key:
          type: string
          description: The API key.
        api_secret:
          type: string
          format: password
          description: The API secret.
        created_at:
          type: string
          format: date-time
          description: The date when the access key was created.
        updated_at:
          type: string
          format: date-time
          description: The date when the access key was last updated.
        enabled:
          type: boolean
          description: Whether the access key is enabled or disabled.
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: error
    AccessKeyRequest:
      type: object
      properties:
        name:
          type: string
          description: The name of the access key.
          example: main_key
        enabled:
          type: boolean
          description: Whether the access key is enabled or disabled.
          example: true
  responses:
    400BadRequest:
      description: Bad request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    429TooManyRequests:
      description: Too many requests.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    409AlreadyExists:
      description: Already exists.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    403NotAllowed:
      description: Not allowed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    420MaxUsageRateExceeded:
      description: Max usage rate exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    401Unauthorized:
      description: Authorization required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              message: Invalid credentials
    404NotFound:
      description: Not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              message: not found
  parameters:
    subAccountId:
      name: sub_account_id
      description: The ID of the product environment.
      in: path
      required: true
      schema:
        type: string
      example: abcde1fghij2klmno3pqrst4uvwxy5z
    accessKey:
      name: key
      description: The access key (api key).
      in: path
      required: true
      schema:
        type: string
      example: '814814814814814'
    AccountIdParam:
      name: account_id
      description: Account ID
      in: path
      required: true
      schema:
        type: string
      x-speakeasy-globals-hidden: true
  examples:
    MainAccessKey:
      summary: Access key sample value
      value:
        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
    AccessKeys:
      summary: Get access keys sample response
      value:
        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
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
x-refined-from:
- cloudinary-openapi.yml
- cloudinary-provisioning-schema.yml
- cloudinary-provisioning-openapi.yml