Upload Media
POST {{URL}}/v1/media
Make a POST request to /v1/media
to upload your media. The body of the API request must contain the binary media data and the Content-Type
header must be set to the type of the media being uploaded. For more information, see the Supported Content-Types for supported options.
Sending binary data in a POST HTTP
request is a standard way of uploading binary data. If you want to upload an image, for example, you issue a POST request with the actual image bytes in the payload.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string | ||
`` | null |
RESPONSES
status: OK
{"media":[{"id":"f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68"}],"meta":{"api_status":"stable","version":"v2.45.1"}}