List library media
list_assets, in Reads: Any connection or key may call these.
POST
Media in the library, newest first: a Space's own and what it uses, or the whole organization's when the connection reaches it. Filter by query (its name) and kind; pass cursor from the last page for more.
apiKeyheader
AuthorizationBearer <token>An API key (prb_…) from Settings → Connections.
application/json- body
spaceId?stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidquery?stringLength
length <= 120kind?stringValue in
"image""video""audio"cursor?stringLength
length <= 400The tool's answer.
application/json- response
assets*array<>cursor*string|nullcurl -X POST 'https://studio.probably.co/api/v1/tools/list_assets' \ -H "Authorization: Bearer $PROBABLY_API_KEY" \ -H 'Content-Type: application/json' \ -d '{}'{ "assets": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "spaceId": "a330a273-e64a-4183-aedb-f3152797a9a5", "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7", "mediaType": "string", "durationMs": 0 } ], "cursor": "string"}