Fetch Media File
GET/api/v2/instance/:instanceId/media/:mediaId/file
Retrieves the binary file of a previously prepared media. Supports multiple formats such as images, videos, audios, etc.
Request
Path Parameters
mediaId Media IDrequired
Id of the media that was prepared.
instanceId stringrequired
ID of the instance.
Responses
- 200
- 401
- 404
- 500
Binary file - Media preview.
- application/octet-stream
- application/pdf
- image/jpeg
- audio/ogg
- video/mp4
- Schema
Schema
- string binary
- Schema
Schema
- string binary
- Schema
Schema
- string binary
- Schema
Schema
- string binary
- Schema
Schema
- string binary
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
NotFoundException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
InternalServerErrorException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
Loading...