Cloudinary Upload Mappings API

Enables you to manage upload mappings

GitHub OpenAPI

Operations 5

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 /v1_1/{cloud_name}/upload_mappings List upload mapping rules · Retrieves a list of all upload mapping rules configured in your Cloudinary… #
Ask an LLM
“Which upload presets are mapped to folders and URL templates in my account?”
“Can I see the upload mapping for just one folder?”
Tell an agent
List all upload mappings for {cloud_name}.
Show the upload mapping for folder {folder} in {cloud_name}.
POST /v1_1/{cloud_name}/upload_mappings Map a folder to an upload URL template · Creates a new upload mapping #
Ask an LLM
“How do I make uploads to a folder go into a specific folder and use a custom URL?”
“Can I create a new upload mapping for a folder?”
Tell an agent
Create an upload mapping for folder {folder} in {cloud_name} using template {template}.
Map {folder} to URL template {template}.
PUT /v1_1/{cloud_name}/upload_mappings Change a folder's upload URL template · Updates an existing upload mapping by changing its remote URL template for a… #
Ask an LLM
“How do I change the URL template used for images uploaded to a folder?”
“Can I update an existing folder mapping's remote URL?”
Tell an agent
Update the URL template of folder {folder} in {cloud_name} to {template}.
Change the upload mapping for {folder} to use template {template}.
DELETE /v1_1/{cloud_name}/upload_mappings Delete a folder's upload mapping · Deletes a folder upload mapping #
Ask an LLM
“How do I stop a folder from getting its own URL template?”
“Can I permanently remove an upload mapping for a folder?”
Tell an agent destructive · confirm first
Delete the upload mapping for folder {folder} in {cloud_name}.
Remove the folder mapping {folder}.
PUT /v1_1/{cloud_name}/upload_mappings/replace Replace all upload mappings at once · Replaces all upload mappings #
Ask an LLM
“Can I overwrite every upload mapping in one call?”
“Is there a bulk replace for all folder mappings?”
Tell an agent destructive · confirm first
Replace all upload mappings in {cloud_name} with {mappings}.
Overwrite every folder mapping in {cloud_name}.

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-upload-mappings-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-upload-mappings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudinary Upload Mappings 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
  version: '1.0'
  description: 'Operations tagged upload_mappings across 3 of this provider''s published API definitions: cloudinary-api-schema.yml, cloudinary-environment-config-openapi.yml, cloudinary-platform-openapi.yml. Each path carries the servers of the definition it was published in.'
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.
tags:
- name: upload_mappings
  description: Enables you to manage upload mappings
paths:
  /v1_1/{cloud_name}/upload_mappings:
    parameters:
    - $ref: '#/components/parameters/cloud_name'
    get:
      x-speakeasy-mcp:
        name: list-upload-mappings
        scopes:
        - builder
        title: List Upload Mappings
        readOnlyHint: true
        idempotentHint: true
      operationId: listUploadMappings
      summary: Retrieves a list of all upload mapping rules configured in your Cloudinary…
      description: 'Returns a list of all upload mappings defined for your account.

        Upload mappings allow you to map an upload preset to a specific folder and URL template.'
      tags:
      - upload_mappings
      parameters:
      - name: folder
        in: query
        required: false
        description: Get details of a specific mapping by folder name
        schema:
          type: string
      - $ref: '#/components/parameters/next_cursor_query'
      - $ref: '#/components/parameters/max_results_query'
      responses:
        '200':
          description: Upload mappings retrieved successfully
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/upload_mapping_list_response'
                - $ref: '#/components/schemas/upload_mapping'
        '400':
          description: Validation error (e.g. invalid next_cursor)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '401':
          description: Authentication error - Invalid API key or secret
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '404':
          description: Mapping not found for the specified folder
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
      security:
      - basicAuth: []
      - oauth2:
        - asset_management
        - upload
        - media_generation
    post:
      x-speakeasy-mcp:
        name: create-upload-mapping
        scopes:
        - builder
        title: Create Upload Mapping
      operationId: createUploadMapping
      summary: Creates a new upload mapping
      description: Creates a new upload mapping for the specified folder
      tags:
      - upload_mappings
      requestBody:
        description: The upload mapping folder and URL template.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/upload_mapping_input'
      responses:
        '200':
          description: Upload mapping created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/upload_mapping_create_response'
              example:
                message: created
                folder: my_folder
                external_id: 1bce826e-ec50-45c6-9f86-c858948c7158
        '400':
          description: Validation error (e.g. invalid template format)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '401':
          description: Authentication error - Invalid API key or secret
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '409':
          description: A mapping for this folder already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
      security:
      - basicAuth: []
      - oauth2:
        - asset_management
        - upload
        - media_generation
    put:
      x-speakeasy-mcp:
        name: update-upload-mapping
        scopes:
        - builder
        title: Update Upload Mapping
        idempotentHint: true
      operationId: updateUploadMapping
      summary: Updates an existing upload mapping by changing its remote URL template for a…
      description: Updates the URL template for an existing folder mapping
      tags:
      - upload_mappings
      requestBody:
        description: The updated upload mapping folder and URL template.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/upload_mapping_input'
      responses:
        '200':
          description: Upload mapping updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/upload_mapping_mutation_response'
              example:
                message: updated
                external_id: 1bce826e-ec50-45c6-9f86-c858948c7158
        '400':
          description: Validation error (e.g. invalid template format)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '401':
          description: Authentication error - Invalid API key or secret
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '404':
          description: No mapping found for the specified folder
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
      security:
      - basicAuth: []
      - oauth2:
        - asset_management
        - upload
        - media_generation
    delete:
      x-speakeasy-mcp:
        name: delete-upload-mapping
        scopes:
        - builder
        title: Delete Upload Mapping
        destructiveHint: true
        idempotentHint: true
      operationId: deleteUploadMapping
      summary: Deletes a folder upload mapping
      description: Permanently deletes the upload mapping for the specified folder
      tags:
      - upload_mappings
      parameters:
      - name: folder
        in: query
        required: true
        description: The folder name of the mapping to delete
        schema:
          type: string
      responses:
        '200':
          description: Upload mapping deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/upload_mapping_mutation_response'
              example:
                message: deleted
                external_id: 1bce826e-ec50-45c6-9f86-c858948c7158
        '401':
          description: Authentication error - Invalid API key or secret
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '404':
          description: No mapping found for the specified folder
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
      security:
      - basicAuth: []
      - oauth2:
        - asset_management
        - upload
        - media_generation
    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/{cloud_name}/upload_mappings/replace:
    parameters:
    - $ref: '#/components/parameters/cloud_name'
    put:
      operationId: replaceUploadMappings
      summary: Replaces all upload mappings
      tags:
      - upload_mappings
      responses:
        '200':
          description: upload mappings replaced
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/message_response'
              example:
                message: replaced
        '400':
          description: validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
        '401':
          description: authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_error'
      requestBody:
        description: The complete set of upload mappings to replace existing ones.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/replace_upload_mappings_request'
      security:
      - basicAuth: []
      - oauth2:
        - asset_management
        - upload
        - media_generation
    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:
    message_response:
      type: object
      properties:
        message:
          type: string
          description: A human-readable status message.
          example: updated
      required:
      - message
    upload_mapping:
      type: object
      description: Represents an upload mapping
      properties:
        folder:
          type: string
          description: The folder name
          example: my_folder
        template:
          type: string
          description: The template URL
          example: http://example.com/files
        external_id:
          type: string
          description: Unique identifier for the mapping
        upload_preset_name:
          type:
          - string
          - 'null'
          description: Name of an upload preset if one is associated
      required:
      - folder
      - template
      - external_id
    replace_upload_mappings_request:
      type: object
      properties:
        mappings:
          type: array
          items:
            $ref: '#/components/schemas/upload_mapping_input'
      required:
      - mappings
    upload_mapping_mutation_response:
      type: object
      properties:
        message:
          type: string
        external_id:
          type: string
          description: Unique identifier of the mapping.
          example: 1bce826e-ec50-45c6-9f86-c858948c7158
      required:
      - message
      - external_id
    upload_mapping_create_response:
      type: object
      properties:
        message:
          type: string
        folder:
          type: string
          description: The folder name that was created.
        external_id:
          type: string
          description: Unique identifier for the mapping.
          example: 1bce826e-ec50-45c6-9f86-c858948c7158
      required:
      - message
      - folder
      - external_id
    api_error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
          - message
      required:
      - error
    upload_mapping_input:
      type: object
      properties:
        folder:
          type: string
          description: The folder name for the mapping.
          example: my_folder
        template:
          type: string
          description: The template URL.
          example: http://example.com/files
      required:
      - folder
      - template
    upload_mapping_list_response:
      type: object
      description: List response for upload mappings.
      properties:
        mappings:
          type: array
          description: Array of upload mapping objects.
          items:
            $ref: '#/components/schemas/upload_mapping'
        total_entries:
          type: integer
          description: Total number of mappings.
        next_cursor:
          type: string
          description: Cursor for getting the next page of results.
      required:
      - mappings
      - total_entries
  parameters:
    max_results_query:
      name: max_results
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 500
        default: 10
      description: The maximum number of results to return. Default is 10.
    cloud_name:
      name: cloud_name
      in: path
      required: true
      schema:
        type: string
      description: The cloud name of your product environment.
      example: my_cloud
    next_cursor_query:
      name: next_cursor
      in: query
      required: false
      schema:
        type: string
      description: The cursor for pagination. Use the next_cursor value from a previous response to get the next page of results.
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication using Cloudinary API Key and API Secret.
    oauth2:
      type: oauth2
      description: OAuth2 Authorization Code flow for user authentication
      flows:
        authorizationCode:
          authorizationUrl: https://oauth.cloudinary.com/oauth2/auth
          tokenUrl: https://oauth.cloudinary.com/oauth2/token
          scopes:
            asset_management: Allows managing assets, including reading, updating, and deleting.
            upload: Allows uploading new assets.
            media_generation: Generate media
x-refined-from:
- cloudinary-api-schema.yml
- cloudinary-environment-config-openapi.yml
- cloudinary-platform-openapi.yml