RelayAPI

List media files

GET
/v1/media
AuthorizationBearer <token>

API key (rlay_live_* or rlay_test_*)

In: header

Query Parameters

cursor?string

Pagination cursor

limit?integer

Number of items per page

Default20
Range1 <= value <= 100
from?string

Filter: start date (ISO 8601)

Formatdate-time
to?string

Filter: end date (ISO 8601)

Formatdate-time
workspace_id?string

Filter by workspace ID

account_id?string

Filter by specific account ID

status?string

Filter by post status

Value in"draft" | "scheduled" | "publishing" | "published" | "failed"
include?string

Comma-separated list of fields to include in the response (e.g. 'targets,media')

include_external?string

When true, also return external posts merged by published_at (works with status=published or no status filter)

Default"false"
Value in"true" | "false"

Response Body

application/json

application/json

curl -X GET "https://api.relayapi.dev/v1/media"
{
  "data": [
    {
      "id": "string",
      "url": "http://example.com",
      "filename": "string",
      "mime_type": "string",
      "size": 0,
      "width": 0,
      "height": 0,
      "duration": 0,
      "created_at": "2019-08-24T14:15:22Z"
    }
  ],
  "next_cursor": "string",
  "has_more": true
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}

Found something wrong? Help us improve this page.

Submit an Issue
Requires a GitHub account.View repo