rizamodocs
Media

Get media

GET
/media/{id}

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the web app, under Developers. It starts with rz_live_.

Path Parameters

id*string

Response Body

OK

application/json
  1. response
id*string
type*string
Value in"image""video"
url*|

A link that expires after a few hours: get the media again for a fresh one. Null until the file is uploaded.

alt*string
status*string

uploading: waiting for its file. Only ready media can go on a post.

Value in"uploading""ready""failed"
contentType*string
size*integer

Bytes, once uploaded.

Range-9007199254740991 <= value <= 9007199254740991
width*|

Pixels, as shown: read from the file once it is uploaded.

height*|null
duration*|

Seconds, for video.

Example Request
curl -X GET 'https://api.rizamo.com/v1/media/string'
Example Response200
{  "id": "string",  "type": "image",  "url": "string",  "alt": "string",  "status": "uploading",  "contentType": "string",  "size": -9007199254740991,  "width": -9007199254740991,  "height": -9007199254740991,  "duration": 0}