Bold VideoDocs

Images

Upload an image

POST
/api/v1/images

Authorization

api_token
AuthorizationBearer <token>

API token provided by BOLD Admin

In: header

Header Parameters

X-Viewer-ID*string

Viewer UUID (required)

Request Body

multipart/form-data

Image file

file*string

Image file bytes. Sniffed by magic bytes against jpeg/png/gif/webp/avif (the client-declared content type is never trusted); SVG is rejected. Max 5 MB.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://app.boldvideo.io/api/v1/images" \  -H "X-Viewer-ID: string" \  -F file="string"
{
  "data": {
    "content_type": "image/jpeg",
    "key": "uploads/bt_demo/images/abc123.jpg",
    "size": 102400,
    "url": "https://uploads.eu1.boldvideo.io/uploads/bt_demo/images/abc123.jpg"
  }
}
{
  "code": "not_found",
  "message": "Video not found",
  "retryable": false,
  "type": "error"
}
{
  "code": "not_found",
  "message": "Video not found",
  "retryable": false,
  "type": "error"
}
{
  "code": "not_found",
  "message": "Video not found",
  "retryable": false,
  "type": "error"
}
{
  "code": "not_found",
  "message": "Video not found",
  "retryable": false,
  "type": "error"
}