Returns all documents linked to an agent, including their sync status.
cURL
curl --request GET \ --url https://api.vocobase.com/api/v2/agent/{id}/documents \ --header 'Authorization: Bearer <token>'
{ "success": true, "data": { "documents": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "type": "pdf", "status": "uploading", "file_size": 123, "sync_status": "pending", "synced_at": "2023-11-07T05:31:56Z", "linked_at": "2023-11-07T05:31:56Z" } ], "total": 123 } }
API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.
rg_live_xxxx
Agent ID.
List of linked documents.
Show child attributes