Fetch Media File
GEThttps://{127.0.0.1:8083}/api/v2/instance/:instanceId/media/:mediaId/file
Authorization: Json Web Token
name: Json Web Tokentype: httpscheme: bearerbearerFormat: jwtdescription: It is an **HTTP** authentication scheme that involves security tokens called **bearer tokens**. **BearerFormat:** JWTin: header
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
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- CURL
curl -L -g -X GET 'https://{127.0.0.1:8083}/api/v2/instance/:instanceId/media/:mediaId/file' \
-H 'Accept: application/octet-stream' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear