Cloudinary Moderations API
Enables you to manage moderation definitions.
Operations 1
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
Enables you to manage moderation definitions.
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
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/cloudinary:cloudinary-moderations-api"
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.
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: 3.2.0
info:
title: Cloudinary Moderations API
version: 0.7.10
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
description: 'Operations tagged moderations across 3 of this provider''s published API definitions: cloudinary-api-schema.yml, cloudinary-asset-management-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.
security:
- basicAuth: []
- oauth2:
- asset_management
- upload
- media_generation
tags:
- name: Moderations
description: Enables you to manage moderation definitions.
paths:
/v1_1/{cloud_name}/resources/{resource_type}/moderations/{moderation_kind}/{moderation_status}:
get:
summary: Get resources by moderation kind and status
description: Retrieves resources matching specific moderation kind and status.
tags:
- Moderations
operationId: listResourcesByModerationKindAndStatus
parameters:
- $ref: '#/components/parameters/cloud_name'
- $ref: '#/components/parameters/resource_type'
- $ref: '#/components/parameters/moderation_kind'
- $ref: '#/components/parameters/moderation_status'
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/next_cursor'
- $ref: '#/components/parameters/max_results'
- $ref: '#/components/parameters/direction'
responses:
'200':
description: List of resources retrieved
content:
application/json:
schema:
$ref: '#/components/schemas/list_response'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/api_error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/api_error'
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:
asset_delivery_type:
type: string
enum:
- asset
description: Static asset delivery type.
delivery_type_all:
anyOf:
- $ref: '#/components/schemas/managed_delivery_type'
- $ref: '#/components/schemas/asset_delivery_type'
- $ref: '#/components/schemas/fetch_delivery_type'
- $ref: '#/components/schemas/social_delivery_type'
- $ref: '#/components/schemas/generated_delivery_type'
- type: string
enum:
- media_optimization
description: All supported delivery types.
coordinates_response:
type:
- object
- 'null'
description: Coordinate data for faces and custom regions.
properties:
faces:
type: array
description: Detected face coordinate rectangles [x, y, width, height].
items:
type: array
items:
type: integer
custom:
type: array
description: Custom coordinate rectangles [x, y, width, height].
items:
type: array
items:
type: number
managed_delivery_type:
type: string
enum:
- upload
- private
- authenticated
description: Managed delivery types for assets uploaded and stored by Cloudinary.
version_id:
type: string
pattern: ^([0-9a-f]{32})+$
description: Hexadecimal version ID; length is a positive multiple of 32 (typically 32 or 64).
context_full_response:
type:
- object
- 'null'
description: Contextual metadata grouped by kind. Custom user context appears under the 'custom' key. Other context kinds may also appear as additional keys.
properties:
custom:
type: object
additionalProperties:
type: string
description: User-defined contextual metadata as key-value pairs.
additionalProperties:
type: object
additionalProperties:
type: string
direction_enum:
type: string
enum:
- asc
- desc
description: Sort direction.
access_control_item:
type: object
description: Access control rule that defines when and how the asset can be accessed.
required:
- access_type
properties:
access_type:
type: string
enum:
- token
- anonymous
description: The type of access control to apply to the asset.
key:
type: string
pattern: ^[a-zA-Z0-9]+$
description: The authentication key identifier for token-based access. Default key is used if not specified or if set to 'default'.
example: prod2024
start:
oneOf:
- type: string
- type: integer
description: The start date and time when anonymous access becomes available. Accepts ISO 8601 string or Unix timestamp.
example: '2024-03-15T09:00:00Z'
end:
oneOf:
- type: string
- type: integer
description: The end date and time when anonymous access expires. Accepts ISO 8601 string or Unix timestamp.
example: '2024-06-30T23:59:59Z'
resource_type:
type: string
enum:
- image
- video
- raw
description: The type of resource.
resource_fields_enum:
type: string
enum:
- public_id
- asset_id
- asset_folder
- folder
- display_name
- format
- version
- resource_type
- type
- created_at
- bytes
- width
- height
- backup
- access_control
- access_mode
- url
- secure_url
- tags
- context
- metadata
- moderation_kind
- moderation_status
- placeholder
- regions
- is_audio
description: Valid field names for selective resource responses.
info:
type: object
properties:
asset_id:
$ref: '#/components/schemas/asset_id'
public_id:
type: string
asset_folder:
type: string
display_name:
type: string
folder:
type: string
x-speakeasy-deprecation-message: Use asset_folder instead with folder decoupling.
filename:
type: string
format:
type: string
version:
type: integer
resource_type:
type: string
type:
$ref: '#/components/schemas/delivery_type_all'
created_at:
type: string
format: date-time
uploaded_at:
type: string
format: date-time
bytes:
type: integer
backup_bytes:
type: integer
width:
type:
- integer
- 'null'
height:
type:
- integer
- 'null'
aspect_ratio:
type:
- number
- 'null'
pixels:
type:
- integer
- 'null'
tags:
allOf:
- $ref: '#/components/schemas/tags_response'
description: Included if 'tags=true' parameter is used.
context:
allOf:
- $ref: '#/components/schemas/context_full_response'
description: Included if 'context=true' parameter is used.
metadata:
type: object
additionalProperties: true
moderation_kind:
type: string
description: The type of moderation applied to the asset.
example: manual
moderation_status:
type: string
description: The current status of the moderation process for the asset.
example: pending
moderation:
type: array
description: Included if 'moderations=true' parameter is used.
items:
type: object
properties:
kind:
type: string
status:
type: string
updated_at:
type: string
format: date-time
backup:
type: boolean
url:
type: string
format: uri
secure_url:
type: string
format: uri
status:
type: string
access_control:
anyOf:
- $ref: '#/components/schemas/access_control'
- type: 'null'
etag:
type: string
animated:
type:
- boolean
- 'null'
description: Whether the asset is animated (e.g., GIF, animated WebP). Null for non-animated assets.
duration:
type:
- number
- 'null'
description: Duration in seconds for video/audio assets. Null for images.
resource_subtype:
type:
- string
- 'null'
description: The subtype of the resource (e.g., for video). Null when not applicable.
substatus:
type:
- string
- 'null'
description: The substatus of the resource. Null when not set.
related_assets:
type:
- array
- 'null'
description: Related assets linked to this resource. Null when none linked.
items:
type: object
last_updated:
type:
- object
- 'null'
properties:
access_control_updated_at:
type: string
format: date-time
context_updated_at:
type: string
format: date-time
metadata_updated_at:
type: string
format: date-time
public_id_updated_at:
type: string
format: date-time
tags_updated_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
next_cursor:
type: string
description: Cursor for paginating derived assets.
derived:
type: array
items:
type: object
properties:
transformation:
type: string
format:
type: string
bytes:
type: integer
id:
type: string
url:
type: string
format: uri
secure_url:
type: string
format: uri
faces:
allOf:
- $ref: '#/components/schemas/faces_response'
description: Detected face rectangles. Included if 'faces=true' parameter is used.
coordinates:
allOf:
- $ref: '#/components/schemas/coordinates_response'
description: Face and custom coordinate data. Included if 'coordinates=true' parameter is used.
illustration_score:
type: number
semi_transparent:
type: boolean
grayscale:
type: boolean
colors:
type: array
items:
type: array
predominant:
type: object
additionalProperties:
type: array
items:
type: array
versions:
type: array
items:
type: object
properties:
version_id:
$ref: '#/components/schemas/version_id'
version:
type: string
format:
type:
- string
- 'null'
size:
type: integer
time:
type: string
format: date-time
restorable:
type: boolean
info:
type: object
description: Additional asset information (visual search, recognized people, etc.)
derivatives:
type:
- array
- 'null'
description: Included if 'derived=true' parameter is used. Null when no derivatives exist.
items:
type: object
properties:
id:
type: string
description: The unique identifier of the derived resource.
example: 5a73fd588cb301206c0a5c5c6ad796b3
transformation:
type: string
description: The transformation string that was applied.
example: w_300,h_100/
transformation_signature:
type: string
description: The unique signature of the transformation.
example: 658a49d8-2944-37db-9825-1ddface10c7b
secure_url:
type: string
format: uri
description: The secure URL for accessing the derived resource.
example: https://res.cloudinary.com/demo/image/upload/w_300,h_100/sample
list_response:
type: object
properties:
resources:
type: array
items:
$ref: '#/components/schemas/info'
next_cursor:
type:
- string
- 'null'
total_count:
type: integer
access_control:
type: array
description: 'Restricts access to the asset by specifying one or more access types.
The asset is restricted unless at least one listed access type is valid.
'
items:
$ref: '#/components/schemas/access_control_item'
example:
- access_type: token
key: prod2024
- access_type: anonymous
start: '2024-03-15T09:00:00Z'
end: '2024-06-30T23:59:59Z'
api_error:
type: object
properties:
error:
type: object
properties:
message:
type: string
required:
- message
required:
- error
asset_id:
type: string
pattern: ^[0-9a-f]{32}$
description: A 32-character hexadecimal asset ID.
generated_delivery_type:
type: string
enum:
- multi
- sprite
- text
- list
description: Delivery types for assets generated by Cloudinary operations.
fetch_delivery_type:
type: string
enum:
- fetch
- url2png
description: Fetch-based delivery types for assets retrieved from remote URLs.
faces_response:
type:
- array
- 'null'
description: Detected face coordinate rectangles [x, y, width, height].
items:
type: array
items:
type: integer
social_delivery_type:
type: string
enum:
- facebook
- twitter
- twitter_name
- instagram
- instagram_name
- gravatar
- youtube
- hulu
- vimeo
- animoto
- dailymotion
- worldstarhiphop
description: Delivery types for assets fetched from third-party platforms.
tags_response:
type:
- array
- 'null'
items:
type: string
description: Tag names assigned to the asset.
parameters:
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:
name: next_cursor
in: query
required: false
schema:
type: string
description: Cursor for pagination.
moderation_kind:
name: moderation_kind
in: path
required: true
schema:
type: string
enum:
- manual
- webpurify
- aws_rek
- aws_rek_video
- perception_point
- google_video_moderation
- duplicate
description: The type of moderation to filter by.
fields:
name: fields
in: query
required: false
explode: false
schema:
anyOf:
- type: string
description: A comma-separated list of field names.
- type: array
items:
$ref: '#/components/schemas/resource_fields_enum'
description: Additional fields to include in the response. The fields public_id and asset_id are always included.
moderation_status:
name: moderation_status
in: path
required: true
schema:
type: string
enum:
- approved
- rejected
- pending
- queued
- aborted
description: The moderation status to filter by.
max_results:
name: max_results
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 500
description: Maximum number of results to return (1-500).
direction:
name: direction
in: query
required: false
schema:
$ref: '#/components/schemas/direction_enum'
description: The sort direction for the results. Default is "desc".
resource_type:
name: resource_type
in: path
required: true
schema:
$ref: '#/components/schemas/resource_type'
description: The type of resource (image, video, or raw).
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-asset-management-openapi.yml
- cloudinary-platform-openapi.yml