Admin Images
Upload an image
Authorization
admin_api_token X-Bold-Admin-Api-Key<token>
Admin key (bold_admin_*; older ones start with bold_live_). Full control of the account, like being signed in to the admin. Created in Settings → Developer or by boldvideo login. Server-side only: never ship it in a website or app.
In: header
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/admin/images" \ -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"
}
}{
"details": {},
"error": "string",
"status": 0,
"timestamp": "2019-08-24T14:15:22Z"
}{
"details": {},
"error": "string",
"status": 0,
"timestamp": "2019-08-24T14:15:22Z"
}{
"details": {},
"error": "string",
"status": 0,
"timestamp": "2019-08-24T14:15:22Z"
}{
"details": {},
"error": "string",
"status": 0,
"timestamp": "2019-08-24T14:15:22Z"
}