Skip to content
First requestVisit website ↗
Navigation

Upload image for sequence messages

Upload an image file to Cloudflare R2 storage for use in SMS sequences. Supports JPEG, PNG, GIF, and WebP formats up to 10MB. Images are organized by workspace for security and isolation.

POST
https://api.channelautomation.com/api/media/upload

Authorization

  • bearerAuth
    optional
    bearerAuth
  • apiKey
    optional
    apiKey

Request body FORM-DATA required

  • image
    string
    required

    Image file to upload

    format: binary
  • workspaceId
    string
    required

    Workspace ID

Returns

200

Image uploaded successfully

JSON
  • success
    optional
    boolean
  • url
    optional
    string

    Public URL of uploaded image

  • fileName
    optional
    string
  • originalName
    optional
    string
  • size
    optional
    number

400

Bad request or validation error
JSON
  • success
    optional
    boolean
  • error
    optional
    string

    Error message

500

Server error
JSON
  • success
    optional
    boolean
  • error
    optional
    string

    Error message

Type to search…

↑↓ navigate↵ selectEsc close