Probably
Docs

List library media

list_assets, in Reads: Any connection or key may call these.

POST
/api/v1/tools/list_assets

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.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (prb_…) from Settings → Connections.

Request Body

application/json
  1. body
spaceId?string
Match^([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)$
Formatuuid
query?string
Lengthlength <= 120
kind?string
Value in"image""video""audio"
cursor?string
Lengthlength <= 400

Response Body

The tool's answer.

application/json
  1. response
assets*array<>
cursor*string|null
curl -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"}