Media
Get media
GET
apiKeyheader
AuthorizationBearer <token>An API key from the web app, under Developers. It starts with rz_live_.
id*stringOK
application/json- response
id*stringtype*stringValue 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*stringstatus*stringuploading: waiting for its file. Only ready media can go on a post.
Value in
"uploading""ready""failed"contentType*stringsize*integerBytes, once uploaded.
Range
-9007199254740991 <= value <= 9007199254740991width*|Pixels, as shown: read from the file once it is uploaded.
height*|nullduration*|Seconds, for video.
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}Add media POST
With `contentType` and `size` (up to 4 GB), the answer says where to send the file: PUT each part, then call `complete` if there is one, and the media is `ready`. With `url`, Rizamo downloads the file and the media is ready in the answer. Media not used by a post within 7 days is deleted.
List inbox threads GET
Next Page