XPlanner

Docs

List media assets

Lists media assets accessible to the API key with workspace and Social Set filters.


GET

/media-assets

media:read

Header'lar

Authorization

*
string

API key. Format: Bearer xpl_live_...

Query parametreleri

workspaceId

string

Narrows the results to a single workspace.

socialSetId

string

Narrows results to one Social Set.

limit

integer

Number of records per page. Default is 50, maximum is 100.

cursor

string

The pagination.nextCursor value from the previous answer.

Cevaplar

200

Paginated media list.

cURL

curl "https://api.xplanner.co/v1/media-assets?socialSetId=set_123&limit=20" \  -H "Authorization: Bearer $XPLANNER_API_KEY"

Cevap

{  "data": [    {      "id": "media_123",      "workspaceId": "wrk_123",      "socialSetId": "set_123",      "bucketId": "media",      "objectPath": "wrk_123/set_123/api/launch.png",      "mediaType": "image",      "mimeType": "image/png",      "sizeBytes": 245000,      "altText": "Ürün ekran görüntüsü",      "createdAt": "2026-05-15T09:00:00.000Z",      "updatedAt": "2026-05-15T09:00:00.000Z"    }  ],  "pagination": {    "nextCursor": null  },  "requestId": "req_123"}