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.1.3OAS 3.0.3

Video Canvas API

Download OpenAPI Document

Use the Video Canvas API to create and manage applets. An applet is a visual, node-based video transformation pipeline, defined by its inputs, blocks, connections, and outputs; Cloudinary compiles it into a named transformation that you can deliver like any other transformation. See the Video Canvas guide for the Console-based workflow.

The API supports Basic Authentication using your Cloudinary API Key and API Secret (which can be found in the API Keys page of your Cloudinary Console).

List applets

Returns the account's saved Video Canvas applets as summaries, without their inputs, blocks, connections, or outputs.

Responses

200 A list of Video Canvas applets.
application/json
VideoCanvasAppletsWrappedResponse

A response envelope wrapping a list of applet summaries.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoCanvasAppletResponse[]Required

    The list of applet summaries.

    ShowHide child attributes of data
    Items VideoCanvasAppletResponse

    A summary of a saved applet, without its content.

    • id string

      The server-generated, immutable applet id.

    • name string

      The applet's display name.

    • description string

      The applet's description.

    • named_transformation string

      The name of the named transformation that backs the applet.

    • created_at integer

      Creation time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • updated_at integer

      Last-modified time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
401 Authentication error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

500 Internal server error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

GET/video_canvas/applets
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/video_canvas/applets' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "named_transformation": "string",
      "created_at": 0,
      "updated_at": 0
    }
  ]
}

Create an applet

Creates an applet from its content (inputs, blocks, connections, and outputs). Cloudinary compiles the action blocks into a named transformation and returns the stored applet.

Body Required application/json

The applet content to create.

VideoCanvasAppletContentPayload

The full content of a Video Canvas applet: its inputs, blocks, connections, and outputs. The blocks are ordered by the connections and their action-group content is compiled into a Cloudinary named transformation.

  • name stringRequired

    A display name for the applet.

    example "Scale to 200px"
  • description string

    An optional description of what the applet does.

  • inputs VideoCanvasInputPayload[]

    The applet's declared parameters.

    ShowHide child attributes of inputs
    Items VideoCanvasInputPayload

    A declared parameter of the applet. Its id can be referenced by the serializer inline as $<id>.

    • id stringRequired

      Client-supplied id. Must match ^[a-zA-Z_][a-zA-Z0-9_]*$ and be at most 64 characters.

      example "source"
    • kind stringRequired

      The value type of the input.

      example "video"
      enum "video" "image" "text"
    • state stringRequired

      How the caller supplies the value. required means the caller must provide it, optional uses value as an overridable default, and hidden bakes value in and does not expose it to callers.

      example "required"
      enum "required" "optional" "hidden"
    • value string

      The default (for optional) or fixed (for hidden) value.

    • label string

      A human-readable label for the input.

      example "Source video"
  • blocks VideoCanvasBlockPayload[]Required

    The nodes on the canvas.

    ShowHide child attributes of blocks
    Items VideoCanvasBlockPayload

    A node on the canvas. Most blocks are action groups; a kind ending in _input or _output marks a boundary block, and preview_node marks a preview tap.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "speed"
    • kind stringRequired

      Either a special type or the name of a group of actions, and it determines how content is read. Special types: a kind ending in _input or _output is a boundary block (content is an {"input":...}/{"output":...} reference) and preview_node is a preview tap (no content). Any other value is an action group whose content is an array of serializer actions; the exact string (e.g. group) only names the actions for the UI and has no backend role beyond that grouping.

      example "group"
    • content any

      For an action group, an ordered array of serializer action items (opaque to this service), e.g. [{"actionType":"scale","dimensions":{"width":200}}]. The groups are concatenated in connection order and encoded into a Cloudinary transformation. The action item format (actionType and its fields) is defined by the JSON Schema at https://production-transformations-bff.cloudinary.com/schemas/transformation.json. For an input boundary block (kind ending in _input) it references a declared input ({"input":"<inputId>"}); for an output boundary block (kind ending in _output) a declared output ({"output":"<outputId>"}).

    • metadata object

      Editor state; must contain position_x and position_y.

  • connections VideoCanvasConnectionPayload[]

    The directed edges between block ports.

    ShowHide child attributes of connections
    Items VideoCanvasConnectionPayload

    A directed edge between two block ports. Endpoints reference blocks by their client-supplied id. Connections define the order in which action groups are applied.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "c1"
    • source_block_id stringRequired

      Client-supplied id of the source block.

      example "in"
    • source_port_id stringRequired

      The output port on the source block.

      example "out"
    • target_block_id stringRequired

      Client-supplied id of the target block.

      example "speed"
    • target_port_id stringRequired

      The input port on the target block.

      example "in"
  • outputs VideoCanvasOutputPayload[]

    The applet's declared results.

    ShowHide child attributes of outputs
    Items VideoCanvasOutputPayload

    A declared result of the applet.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "result"
    • kind stringRequired

      The type of the result.

      example "video"
      enum "image" "video" "video_player" "raw"
    • label string

      A human-readable label for the output.

      example "Scaled video"

Responses

201 The created Video Canvas applet.
application/json
VideoCanvasAppletDetailsWrappedResponse

A response envelope wrapping a single applet with its content.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoCanvasAppletDetailsResponseRequired

    A saved applet with its full content.

    ShowHide child attributes of data
    • id string

      The server-generated, immutable applet id.

    • name string

      The applet's display name.

    • description string

      The applet's description.

    • named_transformation string

      The name of the named transformation that backs the applet.

    • created_at integer

      Creation time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • updated_at integer

      Last-modified time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • inputs VideoCanvasInputResponse[]

      The applet's declared parameters.

      ShowHide child attributes of inputs
      Items VideoCanvasInputResponse

      A declared parameter of the applet, as returned in a response.

      • id string

        The client-supplied input id.

      • kind string

        The value type of the input.

        enum "video" "image" "text"
      • state string

        How the caller supplies the value.

        enum "required" "optional" "hidden"
      • value string

        The default or fixed value, if any.

      • label string

        A human-readable label for the input.

    • blocks VideoCanvasBlockResponse[]

      The nodes on the canvas.

      ShowHide child attributes of blocks
      Items VideoCanvasBlockResponse

      A node on the canvas, as returned in a response.

      • id string

        The client-supplied block id.

      • kind string

        The block kind (see the block payload for how kind is interpreted).

      • content any

        Block content; mirrors the payload shape (an action-group array or a boundary reference object).

      • metadata object

        Editor state, including the block's position.

    • connections VideoCanvasConnectionResponse[]

      The directed edges between block ports.

      ShowHide child attributes of connections
      Items VideoCanvasConnectionResponse

      A directed edge between two block ports, as returned in a response.

      • id string

        The client-supplied connection id.

      • source_block_id string

        The client-supplied id of the source block.

      • source_port_id string

        The output port on the source block.

      • target_block_id string

        The client-supplied id of the target block.

      • target_port_id string

        The input port on the target block.

    • outputs VideoCanvasOutputResponse[]

      The applet's declared results.

      ShowHide child attributes of outputs
      Items VideoCanvasOutputResponse

      A declared result of the applet, as returned in a response.

      • id string

        The client-supplied output id.

      • kind string

        The type of the result.

        enum "image" "video" "video_player" "raw"
      • label string

        A human-readable label for the output.

400 The applet could not be compiled into a valid transformation.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

401 Authentication error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

500 Internal server error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

POST/video_canvas/applets
curl -X POST 'https://api.cloudinary.com/v2/video/CLOUD_NAME/video_canvas/applets' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Scale to 200px",
  "description": "Downscale the source video",
  "inputs": [
    {
      "id": "source",
      "kind": "video",
      "state": "required",
      "label": "Source video"
    }
  ],
  "blocks": [
    {
      "id": "in",
      "kind": "video_input",
      "content": {
        "input": "source"
      },
      "metadata": {
        "position_x": 0,
        "position_y": 0
      }
    },
    {
      "id": "speed",
      "kind": "group",
      "content": [
        {
          "actionType": "scale",
          "dimensions": {
            "width": 200
          }
        }
      ],
      "metadata": {
        "position_x": 200,
        "position_y": 0
      }
    },
    {
      "id": "out",
      "kind": "video_output",
      "content": {
        "output": "result"
      },
      "metadata": {
        "position_x": 400,
        "position_y": 0
      }
    }
  ],
  "connections": [
    {
      "id": "c1",
      "source_block_id": "in",
      "source_port_id": "out",
      "target_block_id": "speed",
      "target_port_id": "in"
    },
    {
      "id": "c2",
      "source_block_id": "speed",
      "source_port_id": "out",
      "target_block_id": "out",
      "target_port_id": "in"
    }
  ],
  "outputs": [
    {
      "id": "result",
      "kind": "video",
      "label": "Scaled video"
    }
  ]
}'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "named_transformation": "string",
    "created_at": 0,
    "updated_at": 0,
    "inputs": [
      {
        "id": "string",
        "kind": "video",
        "state": "required",
        "value": "string",
        "label": "string"
      }
    ],
    "blocks": [
      {
        "id": "string",
        "kind": "string",
        "metadata": {}
      }
    ],
    "connections": [
      {
        "id": "string",
        "source_block_id": "string",
        "source_port_id": "string",
        "target_block_id": "string",
        "target_port_id": "string"
      }
    ],
    "outputs": [
      {
        "id": "string",
        "kind": "image",
        "label": "string"
      }
    ]
  }
}

Get an applet

Returns a single applet with its full content, including its inputs, blocks, connections, and outputs.

Path parameters

  • appletId stringRequired

    The server-generated id of the applet.

Responses

200 A Video Canvas applet.
application/json
VideoCanvasAppletDetailsWrappedResponse

A response envelope wrapping a single applet with its content.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoCanvasAppletDetailsResponseRequired

    A saved applet with its full content.

    ShowHide child attributes of data
    • id string

      The server-generated, immutable applet id.

    • name string

      The applet's display name.

    • description string

      The applet's description.

    • named_transformation string

      The name of the named transformation that backs the applet.

    • created_at integer

      Creation time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • updated_at integer

      Last-modified time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • inputs VideoCanvasInputResponse[]

      The applet's declared parameters.

      ShowHide child attributes of inputs
      Items VideoCanvasInputResponse

      A declared parameter of the applet, as returned in a response.

      • id string

        The client-supplied input id.

      • kind string

        The value type of the input.

        enum "video" "image" "text"
      • state string

        How the caller supplies the value.

        enum "required" "optional" "hidden"
      • value string

        The default or fixed value, if any.

      • label string

        A human-readable label for the input.

    • blocks VideoCanvasBlockResponse[]

      The nodes on the canvas.

      ShowHide child attributes of blocks
      Items VideoCanvasBlockResponse

      A node on the canvas, as returned in a response.

      • id string

        The client-supplied block id.

      • kind string

        The block kind (see the block payload for how kind is interpreted).

      • content any

        Block content; mirrors the payload shape (an action-group array or a boundary reference object).

      • metadata object

        Editor state, including the block's position.

    • connections VideoCanvasConnectionResponse[]

      The directed edges between block ports.

      ShowHide child attributes of connections
      Items VideoCanvasConnectionResponse

      A directed edge between two block ports, as returned in a response.

      • id string

        The client-supplied connection id.

      • source_block_id string

        The client-supplied id of the source block.

      • source_port_id string

        The output port on the source block.

      • target_block_id string

        The client-supplied id of the target block.

      • target_port_id string

        The input port on the target block.

    • outputs VideoCanvasOutputResponse[]

      The applet's declared results.

      ShowHide child attributes of outputs
      Items VideoCanvasOutputResponse

      A declared result of the applet, as returned in a response.

      • id string

        The client-supplied output id.

      • kind string

        The type of the result.

        enum "image" "video" "video_player" "raw"
      • label string

        A human-readable label for the output.

401 Authentication error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

404 No applet exists with the given id.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

500 Internal server error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

GET/video_canvas/applets/{appletId}
curl 'https://api.cloudinary.com/v2/video/CLOUD_NAME/video_canvas/applets/{appletId}' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "named_transformation": "string",
    "created_at": 0,
    "updated_at": 0,
    "inputs": [
      {
        "id": "string",
        "kind": "video",
        "state": "required",
        "value": "string",
        "label": "string"
      }
    ],
    "blocks": [
      {
        "id": "string",
        "kind": "string",
        "metadata": {}
      }
    ],
    "connections": [
      {
        "id": "string",
        "source_block_id": "string",
        "source_port_id": "string",
        "target_block_id": "string",
        "target_port_id": "string"
      }
    ],
    "outputs": [
      {
        "id": "string",
        "kind": "image",
        "label": "string"
      }
    ]
  }
}

Replace an applet's content

Replaces the full content of an existing applet and recompiles its backing named transformation.

Path parameters

  • appletId stringRequired

    The server-generated id of the applet.

Body Required application/json

The new applet content.

VideoCanvasAppletContentPayload

The full content of a Video Canvas applet: its inputs, blocks, connections, and outputs. The blocks are ordered by the connections and their action-group content is compiled into a Cloudinary named transformation.

  • name stringRequired

    A display name for the applet.

    example "Scale to 200px"
  • description string

    An optional description of what the applet does.

  • inputs VideoCanvasInputPayload[]

    The applet's declared parameters.

    ShowHide child attributes of inputs
    Items VideoCanvasInputPayload

    A declared parameter of the applet. Its id can be referenced by the serializer inline as $<id>.

    • id stringRequired

      Client-supplied id. Must match ^[a-zA-Z_][a-zA-Z0-9_]*$ and be at most 64 characters.

      example "source"
    • kind stringRequired

      The value type of the input.

      example "video"
      enum "video" "image" "text"
    • state stringRequired

      How the caller supplies the value. required means the caller must provide it, optional uses value as an overridable default, and hidden bakes value in and does not expose it to callers.

      example "required"
      enum "required" "optional" "hidden"
    • value string

      The default (for optional) or fixed (for hidden) value.

    • label string

      A human-readable label for the input.

      example "Source video"
  • blocks VideoCanvasBlockPayload[]Required

    The nodes on the canvas.

    ShowHide child attributes of blocks
    Items VideoCanvasBlockPayload

    A node on the canvas. Most blocks are action groups; a kind ending in _input or _output marks a boundary block, and preview_node marks a preview tap.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "speed"
    • kind stringRequired

      Either a special type or the name of a group of actions, and it determines how content is read. Special types: a kind ending in _input or _output is a boundary block (content is an {"input":...}/{"output":...} reference) and preview_node is a preview tap (no content). Any other value is an action group whose content is an array of serializer actions; the exact string (e.g. group) only names the actions for the UI and has no backend role beyond that grouping.

      example "group"
    • content any

      For an action group, an ordered array of serializer action items (opaque to this service), e.g. [{"actionType":"scale","dimensions":{"width":200}}]. The groups are concatenated in connection order and encoded into a Cloudinary transformation. The action item format (actionType and its fields) is defined by the JSON Schema at https://production-transformations-bff.cloudinary.com/schemas/transformation.json. For an input boundary block (kind ending in _input) it references a declared input ({"input":"<inputId>"}); for an output boundary block (kind ending in _output) a declared output ({"output":"<outputId>"}).

    • metadata object

      Editor state; must contain position_x and position_y.

  • connections VideoCanvasConnectionPayload[]

    The directed edges between block ports.

    ShowHide child attributes of connections
    Items VideoCanvasConnectionPayload

    A directed edge between two block ports. Endpoints reference blocks by their client-supplied id. Connections define the order in which action groups are applied.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "c1"
    • source_block_id stringRequired

      Client-supplied id of the source block.

      example "in"
    • source_port_id stringRequired

      The output port on the source block.

      example "out"
    • target_block_id stringRequired

      Client-supplied id of the target block.

      example "speed"
    • target_port_id stringRequired

      The input port on the target block.

      example "in"
  • outputs VideoCanvasOutputPayload[]

    The applet's declared results.

    ShowHide child attributes of outputs
    Items VideoCanvasOutputPayload

    A declared result of the applet.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "result"
    • kind stringRequired

      The type of the result.

      example "video"
      enum "image" "video" "video_player" "raw"
    • label string

      A human-readable label for the output.

      example "Scaled video"

Responses

200 The updated Video Canvas applet.
application/json
VideoCanvasAppletDetailsWrappedResponse

A response envelope wrapping a single applet with its content.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoCanvasAppletDetailsResponseRequired

    A saved applet with its full content.

    ShowHide child attributes of data
    • id string

      The server-generated, immutable applet id.

    • name string

      The applet's display name.

    • description string

      The applet's description.

    • named_transformation string

      The name of the named transformation that backs the applet.

    • created_at integer

      Creation time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • updated_at integer

      Last-modified time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • inputs VideoCanvasInputResponse[]

      The applet's declared parameters.

      ShowHide child attributes of inputs
      Items VideoCanvasInputResponse

      A declared parameter of the applet, as returned in a response.

      • id string

        The client-supplied input id.

      • kind string

        The value type of the input.

        enum "video" "image" "text"
      • state string

        How the caller supplies the value.

        enum "required" "optional" "hidden"
      • value string

        The default or fixed value, if any.

      • label string

        A human-readable label for the input.

    • blocks VideoCanvasBlockResponse[]

      The nodes on the canvas.

      ShowHide child attributes of blocks
      Items VideoCanvasBlockResponse

      A node on the canvas, as returned in a response.

      • id string

        The client-supplied block id.

      • kind string

        The block kind (see the block payload for how kind is interpreted).

      • content any

        Block content; mirrors the payload shape (an action-group array or a boundary reference object).

      • metadata object

        Editor state, including the block's position.

    • connections VideoCanvasConnectionResponse[]

      The directed edges between block ports.

      ShowHide child attributes of connections
      Items VideoCanvasConnectionResponse

      A directed edge between two block ports, as returned in a response.

      • id string

        The client-supplied connection id.

      • source_block_id string

        The client-supplied id of the source block.

      • source_port_id string

        The output port on the source block.

      • target_block_id string

        The client-supplied id of the target block.

      • target_port_id string

        The input port on the target block.

    • outputs VideoCanvasOutputResponse[]

      The applet's declared results.

      ShowHide child attributes of outputs
      Items VideoCanvasOutputResponse

      A declared result of the applet, as returned in a response.

      • id string

        The client-supplied output id.

      • kind string

        The type of the result.

        enum "image" "video" "video_player" "raw"
      • label string

        A human-readable label for the output.

400 The applet could not be compiled into a valid transformation.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

401 Authentication error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

404 No applet exists with the given id.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

500 Internal server error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

PUT/video_canvas/applets/{appletId}
curl -X PUT 'https://api.cloudinary.com/v2/video/CLOUD_NAME/video_canvas/applets/{appletId}' \
  -u 'API_KEY:API_SECRET' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Scale to 200px",
  "description": "Downscale the source video",
  "inputs": [
    {
      "id": "source",
      "kind": "video",
      "state": "required",
      "label": "Source video"
    }
  ],
  "blocks": [
    {
      "id": "in",
      "kind": "video_input",
      "content": {
        "input": "source"
      },
      "metadata": {
        "position_x": 0,
        "position_y": 0
      }
    },
    {
      "id": "speed",
      "kind": "group",
      "content": [
        {
          "actionType": "scale",
          "dimensions": {
            "width": 200
          }
        }
      ],
      "metadata": {
        "position_x": 200,
        "position_y": 0
      }
    },
    {
      "id": "out",
      "kind": "video_output",
      "content": {
        "output": "result"
      },
      "metadata": {
        "position_x": 400,
        "position_y": 0
      }
    }
  ],
  "connections": [
    {
      "id": "c1",
      "source_block_id": "in",
      "source_port_id": "out",
      "target_block_id": "speed",
      "target_port_id": "in"
    },
    {
      "id": "c2",
      "source_block_id": "speed",
      "source_port_id": "out",
      "target_block_id": "out",
      "target_port_id": "in"
    }
  ],
  "outputs": [
    {
      "id": "result",
      "kind": "video",
      "label": "Scaled video"
    }
  ]
}'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "named_transformation": "string",
    "created_at": 0,
    "updated_at": 0,
    "inputs": [
      {
        "id": "string",
        "kind": "video",
        "state": "required",
        "value": "string",
        "label": "string"
      }
    ],
    "blocks": [
      {
        "id": "string",
        "kind": "string",
        "metadata": {}
      }
    ],
    "connections": [
      {
        "id": "string",
        "source_block_id": "string",
        "source_port_id": "string",
        "target_block_id": "string",
        "target_port_id": "string"
      }
    ],
    "outputs": [
      {
        "id": "string",
        "kind": "image",
        "label": "string"
      }
    ]
  }
}

Delete an applet

Deletes an applet and its stored content. The named transformation that backs the applet isn't deleted, so delivery URLs and SDK calls that reference it keep working. To stop delivering the transformation, delete the named transformation separately.

Path parameters

  • appletId stringRequired

    The server-generated id of the applet.

Responses

200 The applet was deleted.
application/json
MessageWrappedResponse

A response envelope wrapping a simple message.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data objectRequired

    The message payload.

    ShowHide child attributes of data
    • message string

      A human-readable message.

401 Authentication error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

404 No applet exists with the given id.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

500 Internal server error.
application/json
ErrorWrappedResponse

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.

DEL/video_canvas/applets/{appletId}
curl -X DELETE 'https://api.cloudinary.com/v2/video/CLOUD_NAME/video_canvas/applets/{appletId}' \
  -u 'API_KEY:API_SECRET'
Response
{
  "request_id": "6ec0bd7f11c043da975e2a8ad9ebae0b",
  "data": {
    "message": "string"
  }
}

Models

VideoCanvasInputPayload

Show schema
object

A declared parameter of the applet. Its id can be referenced by the serializer inline as $<id>.

  • id stringRequired

    Client-supplied id. Must match ^[a-zA-Z_][a-zA-Z0-9_]*$ and be at most 64 characters.

    example "source"
  • kind stringRequired

    The value type of the input.

    example "video"
    enum "video" "image" "text"
  • state stringRequired

    How the caller supplies the value. required means the caller must provide it, optional uses value as an overridable default, and hidden bakes value in and does not expose it to callers.

    example "required"
    enum "required" "optional" "hidden"
  • value string

    The default (for optional) or fixed (for hidden) value.

  • label string

    A human-readable label for the input.

    example "Source video"

VideoCanvasBlockPayload

Show schema
object

A node on the canvas. Most blocks are action groups; a kind ending in _input or _output marks a boundary block, and preview_node marks a preview tap.

  • id stringRequired

    Client-supplied id, unique within the applet.

    example "speed"
  • kind stringRequired

    Either a special type or the name of a group of actions, and it determines how content is read. Special types: a kind ending in _input or _output is a boundary block (content is an {"input":...}/{"output":...} reference) and preview_node is a preview tap (no content). Any other value is an action group whose content is an array of serializer actions; the exact string (e.g. group) only names the actions for the UI and has no backend role beyond that grouping.

    example "group"
  • content any

    For an action group, an ordered array of serializer action items (opaque to this service), e.g. [{"actionType":"scale","dimensions":{"width":200}}]. The groups are concatenated in connection order and encoded into a Cloudinary transformation. The action item format (actionType and its fields) is defined by the JSON Schema at https://production-transformations-bff.cloudinary.com/schemas/transformation.json. For an input boundary block (kind ending in _input) it references a declared input ({"input":"<inputId>"}); for an output boundary block (kind ending in _output) a declared output ({"output":"<outputId>"}).

  • metadata object

    Editor state; must contain position_x and position_y.

VideoCanvasConnectionPayload

Show schema
object

A directed edge between two block ports. Endpoints reference blocks by their client-supplied id. Connections define the order in which action groups are applied.

  • id stringRequired

    Client-supplied id, unique within the applet.

    example "c1"
  • source_block_id stringRequired

    Client-supplied id of the source block.

    example "in"
  • source_port_id stringRequired

    The output port on the source block.

    example "out"
  • target_block_id stringRequired

    Client-supplied id of the target block.

    example "speed"
  • target_port_id stringRequired

    The input port on the target block.

    example "in"

VideoCanvasOutputPayload

Show schema
object

A declared result of the applet.

  • id stringRequired

    Client-supplied id, unique within the applet.

    example "result"
  • kind stringRequired

    The type of the result.

    example "video"
    enum "image" "video" "video_player" "raw"
  • label string

    A human-readable label for the output.

    example "Scaled video"

VideoCanvasAppletContentPayload

Show schema
object

The full content of a Video Canvas applet: its inputs, blocks, connections, and outputs. The blocks are ordered by the connections and their action-group content is compiled into a Cloudinary named transformation.

  • name stringRequired

    A display name for the applet.

    example "Scale to 200px"
  • description string

    An optional description of what the applet does.

  • inputs VideoCanvasInputPayload[]

    The applet's declared parameters.

    ShowHide child attributes of inputs
    Items VideoCanvasInputPayload

    A declared parameter of the applet. Its id can be referenced by the serializer inline as $<id>.

    • id stringRequired

      Client-supplied id. Must match ^[a-zA-Z_][a-zA-Z0-9_]*$ and be at most 64 characters.

      example "source"
    • kind stringRequired

      The value type of the input.

      example "video"
      enum "video" "image" "text"
    • state stringRequired

      How the caller supplies the value. required means the caller must provide it, optional uses value as an overridable default, and hidden bakes value in and does not expose it to callers.

      example "required"
      enum "required" "optional" "hidden"
    • value string

      The default (for optional) or fixed (for hidden) value.

    • label string

      A human-readable label for the input.

      example "Source video"
  • blocks VideoCanvasBlockPayload[]Required

    The nodes on the canvas.

    ShowHide child attributes of blocks
    Items VideoCanvasBlockPayload

    A node on the canvas. Most blocks are action groups; a kind ending in _input or _output marks a boundary block, and preview_node marks a preview tap.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "speed"
    • kind stringRequired

      Either a special type or the name of a group of actions, and it determines how content is read. Special types: a kind ending in _input or _output is a boundary block (content is an {"input":...}/{"output":...} reference) and preview_node is a preview tap (no content). Any other value is an action group whose content is an array of serializer actions; the exact string (e.g. group) only names the actions for the UI and has no backend role beyond that grouping.

      example "group"
    • content any

      For an action group, an ordered array of serializer action items (opaque to this service), e.g. [{"actionType":"scale","dimensions":{"width":200}}]. The groups are concatenated in connection order and encoded into a Cloudinary transformation. The action item format (actionType and its fields) is defined by the JSON Schema at https://production-transformations-bff.cloudinary.com/schemas/transformation.json. For an input boundary block (kind ending in _input) it references a declared input ({"input":"<inputId>"}); for an output boundary block (kind ending in _output) a declared output ({"output":"<outputId>"}).

    • metadata object

      Editor state; must contain position_x and position_y.

  • connections VideoCanvasConnectionPayload[]

    The directed edges between block ports.

    ShowHide child attributes of connections
    Items VideoCanvasConnectionPayload

    A directed edge between two block ports. Endpoints reference blocks by their client-supplied id. Connections define the order in which action groups are applied.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "c1"
    • source_block_id stringRequired

      Client-supplied id of the source block.

      example "in"
    • source_port_id stringRequired

      The output port on the source block.

      example "out"
    • target_block_id stringRequired

      Client-supplied id of the target block.

      example "speed"
    • target_port_id stringRequired

      The input port on the target block.

      example "in"
  • outputs VideoCanvasOutputPayload[]

    The applet's declared results.

    ShowHide child attributes of outputs
    Items VideoCanvasOutputPayload

    A declared result of the applet.

    • id stringRequired

      Client-supplied id, unique within the applet.

      example "result"
    • kind stringRequired

      The type of the result.

      example "video"
      enum "image" "video" "video_player" "raw"
    • label string

      A human-readable label for the output.

      example "Scaled video"

VideoCanvasAppletResponse

Show schema
object

A summary of a saved applet, without its content.

  • id string

    The server-generated, immutable applet id.

  • name string

    The applet's display name.

  • description string

    The applet's description.

  • named_transformation string

    The name of the named transformation that backs the applet.

  • created_at integer

    Creation time, as a Unix timestamp in seconds.

    format int64 Signed 64-bit integer
  • updated_at integer

    Last-modified time, as a Unix timestamp in seconds.

    format int64 Signed 64-bit integer

VideoCanvasBlockResponse

Show schema
object

A node on the canvas, as returned in a response.

  • id string

    The client-supplied block id.

  • kind string

    The block kind (see the block payload for how kind is interpreted).

  • content any

    Block content; mirrors the payload shape (an action-group array or a boundary reference object).

  • metadata object

    Editor state, including the block's position.

VideoCanvasConnectionResponse

Show schema
object

A directed edge between two block ports, as returned in a response.

  • id string

    The client-supplied connection id.

  • source_block_id string

    The client-supplied id of the source block.

  • source_port_id string

    The output port on the source block.

  • target_block_id string

    The client-supplied id of the target block.

  • target_port_id string

    The input port on the target block.

VideoCanvasInputResponse

Show schema
object

A declared parameter of the applet, as returned in a response.

  • id string

    The client-supplied input id.

  • kind string

    The value type of the input.

    enum "video" "image" "text"
  • state string

    How the caller supplies the value.

    enum "required" "optional" "hidden"
  • value string

    The default or fixed value, if any.

  • label string

    A human-readable label for the input.

VideoCanvasOutputResponse

Show schema
object

A declared result of the applet, as returned in a response.

  • id string

    The client-supplied output id.

  • kind string

    The type of the result.

    enum "image" "video" "video_player" "raw"
  • label string

    A human-readable label for the output.

VideoCanvasAppletDetailsResponse

Show schema
object

A saved applet with its full content.

  • id string

    The server-generated, immutable applet id.

  • name string

    The applet's display name.

  • description string

    The applet's description.

  • named_transformation string

    The name of the named transformation that backs the applet.

  • created_at integer

    Creation time, as a Unix timestamp in seconds.

    format int64 Signed 64-bit integer
  • updated_at integer

    Last-modified time, as a Unix timestamp in seconds.

    format int64 Signed 64-bit integer
  • inputs VideoCanvasInputResponse[]

    The applet's declared parameters.

    ShowHide child attributes of inputs
    Items VideoCanvasInputResponse

    A declared parameter of the applet, as returned in a response.

    • id string

      The client-supplied input id.

    • kind string

      The value type of the input.

      enum "video" "image" "text"
    • state string

      How the caller supplies the value.

      enum "required" "optional" "hidden"
    • value string

      The default or fixed value, if any.

    • label string

      A human-readable label for the input.

  • blocks VideoCanvasBlockResponse[]

    The nodes on the canvas.

    ShowHide child attributes of blocks
    Items VideoCanvasBlockResponse

    A node on the canvas, as returned in a response.

    • id string

      The client-supplied block id.

    • kind string

      The block kind (see the block payload for how kind is interpreted).

    • content any

      Block content; mirrors the payload shape (an action-group array or a boundary reference object).

    • metadata object

      Editor state, including the block's position.

  • connections VideoCanvasConnectionResponse[]

    The directed edges between block ports.

    ShowHide child attributes of connections
    Items VideoCanvasConnectionResponse

    A directed edge between two block ports, as returned in a response.

    • id string

      The client-supplied connection id.

    • source_block_id string

      The client-supplied id of the source block.

    • source_port_id string

      The output port on the source block.

    • target_block_id string

      The client-supplied id of the target block.

    • target_port_id string

      The input port on the target block.

  • outputs VideoCanvasOutputResponse[]

    The applet's declared results.

    ShowHide child attributes of outputs
    Items VideoCanvasOutputResponse

    A declared result of the applet, as returned in a response.

    • id string

      The client-supplied output id.

    • kind string

      The type of the result.

      enum "image" "video" "video_player" "raw"
    • label string

      A human-readable label for the output.

VideoCanvasAppletDetailsWrappedResponse

Show schema
object

A response envelope wrapping a single applet with its content.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoCanvasAppletDetailsResponseRequired

    A saved applet with its full content.

    ShowHide child attributes of data
    • id string

      The server-generated, immutable applet id.

    • name string

      The applet's display name.

    • description string

      The applet's description.

    • named_transformation string

      The name of the named transformation that backs the applet.

    • created_at integer

      Creation time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • updated_at integer

      Last-modified time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • inputs VideoCanvasInputResponse[]

      The applet's declared parameters.

      ShowHide child attributes of inputs
      Items VideoCanvasInputResponse

      A declared parameter of the applet, as returned in a response.

      • id string

        The client-supplied input id.

      • kind string

        The value type of the input.

        enum "video" "image" "text"
      • state string

        How the caller supplies the value.

        enum "required" "optional" "hidden"
      • value string

        The default or fixed value, if any.

      • label string

        A human-readable label for the input.

    • blocks VideoCanvasBlockResponse[]

      The nodes on the canvas.

      ShowHide child attributes of blocks
      Items VideoCanvasBlockResponse

      A node on the canvas, as returned in a response.

      • id string

        The client-supplied block id.

      • kind string

        The block kind (see the block payload for how kind is interpreted).

      • content any

        Block content; mirrors the payload shape (an action-group array or a boundary reference object).

      • metadata object

        Editor state, including the block's position.

    • connections VideoCanvasConnectionResponse[]

      The directed edges between block ports.

      ShowHide child attributes of connections
      Items VideoCanvasConnectionResponse

      A directed edge between two block ports, as returned in a response.

      • id string

        The client-supplied connection id.

      • source_block_id string

        The client-supplied id of the source block.

      • source_port_id string

        The output port on the source block.

      • target_block_id string

        The client-supplied id of the target block.

      • target_port_id string

        The input port on the target block.

    • outputs VideoCanvasOutputResponse[]

      The applet's declared results.

      ShowHide child attributes of outputs
      Items VideoCanvasOutputResponse

      A declared result of the applet, as returned in a response.

      • id string

        The client-supplied output id.

      • kind string

        The type of the result.

        enum "image" "video" "video_player" "raw"
      • label string

        A human-readable label for the output.

VideoCanvasAppletsWrappedResponse

Show schema
object

A response envelope wrapping a list of applet summaries.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data VideoCanvasAppletResponse[]Required

    The list of applet summaries.

    ShowHide child attributes of data
    Items VideoCanvasAppletResponse

    A summary of a saved applet, without its content.

    • id string

      The server-generated, immutable applet id.

    • name string

      The applet's display name.

    • description string

      The applet's description.

    • named_transformation string

      The name of the named transformation that backs the applet.

    • created_at integer

      Creation time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer
    • updated_at integer

      Last-modified time, as a Unix timestamp in seconds.

      format int64 Signed 64-bit integer

MessageWrappedResponse

Show schema
object

A response envelope wrapping a simple message.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • data objectRequired

    The message payload.

    ShowHide child attributes of data
    • message string

      A human-readable message.

ErrorWrappedResponse

Show schema
object

A response envelope returned when a request fails.

  • request_id stringRequired

    A unique id for the request, useful when contacting support.

    example "6ec0bd7f11c043da975e2a8ad9ebae0b"
  • error objectRequired

    Details about the error.

    ShowHide child attributes of error
    • message string

      A human-readable error message.