Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.useanima.sh/v1/messages/search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "query": "<string>", "filters": {}, "pagination": { "limit": 20 } } '
{ "items": [ { "id": "<string>", "agentId": "<string>", "fromAddress": "<string>", "toAddress": "<string>", "subject": "<string>", "body": "<string>", "bodyHtml": "<string>", "headers": {}, "metadata": {}, "threadId": "<string>", "inReplyTo": "<string>", "externalId": "<string>", "sentAt": "2023-11-07T05:31:56Z", "receivedAt": "2023-11-07T05:31:56Z", "attachments": [ { "id": "<string>", "filename": "<string>", "mimeType": "<string>", "sizeBytes": 1, "storageKey": "<string>", "url": "<string>", "createdAt": "2023-11-07T05:31:56Z", "detectedMimeType": "<string>" } ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } ], "pagination": { "nextCursor": "<string>", "hasMore": true } }
JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer
Request body for searching messages with full-text query and optional filters
Full-text search query to match against message content
1
Optional filters to narrow search results
Show child attributes
Pagination parameters for the search results
OK
Paginated list of messages
Array of message resources matching the query
Pagination metadata for retrieving additional pages