(1/2) Upload brand logo or favicon
POST {{base_url}}/images
To upload your brand logo or favicon and retrieve its image_id
, you need to make two requests.
This first request will generate a response that includes the presigned_post_params
, which contains the URL where you will upload your image in the second step.
⚠️ 5MB is the max file size for the brand logo or favicon.
Request Body
{"extension"=>"image/png"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string | ||
organization-id | string |
RESPONSES
status: Created
{"image_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","organization_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","extension":"png","media_url":"https://media.videoask.com/images/raw/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/image.png?token=xxxxxxxxxx","presigned_url":"https://videoask-uploads-prod.s3.amazonaws.com/images/raw/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/image.png?AWSAccessKeyId=xxxxxxxxxx\u0026Signature=xxxxxxxxxx\u0026content-type=image%2Fpng\u0026x-amz-security-token=xxxxxxxxxx\u0026Expires=1667505108","presigned_post_params":{"url":"https://videoask-uploads-prod.s3.amazonaws.com/","fields":{"content-type":"image/png","key":"images/raw/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/image.png","AWSAccessKeyId":"xxxxxxxxxx","x-amz-security-token":"xxxxxxxxxx","policy":"xxxxxxxxxx","signature":"xxxxxxxxxx"}},"author_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}