Posteady
Posteady Docs
APIMedia

List workspace media

List supported active media visible in the API key's workspace library. mediaType defaults to VIDEO for backward compatibility; pass IMAGE for JPEG. Use mediaId in a supported publishing or scheduling request. Unconfirmed uploads are excluded. The account and media must belong to the same workspace.

GET
/api/v1/media
AuthorizationBearer <token>

In: header

Query Parameters

mediaType?string
Default"VIDEO"

Value in

  • "IMAGE"
  • "VIDEO"
limit?integer
Range1 <= value <= 100
Default20
offset?integer
Range0 <= value <= 10000
Default0

Response Body

application/json

curl -X GET "https://example.com/api/v1/media"
{  "media": [    {      "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad",      "fileName": "string",      "mediaType": "IMAGE",      "mimeType": "string",      "fileSize": 0,      "url": "http://example.com",      "duration": 0,      "width": 0,      "height": 0,      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "total": 0,  "hasMore": true}