Search messagesComing soon
Finds messages containing these words, across every conversation you are in, best match first.
Coming soon. Finds messages containing these words, across every conversation you are in, best match first.
Scopes: messages:read
Pricing: Included with the connection.
AuthorizationBearer <matchai_<base62>>A personal API key, sent as Authorization: Bearer matchai_…. Create keys in Matchai under Settings → Connectors → Advanced (for developers). A key starts with matchai_ followed by letters and digits, carries the scopes chosen when it was created, and can be revoked at any time. Keys reach only the account that created them: to serve other professionals, use Connect with Matchai.
Scope: messages:read
query*stringWords to find.
2 <= length <= 200conversation_id?stringSearch one conversation only.
limit?integerHow many results per page.
1 <= value <= 10025cursor?stringThe next_cursor of the previous page. Cursors expire after 24 hours.
length <= 512One page of matches.
application/json- response
One page of results. Pass next_cursor as cursor to get the next page; it is null on the last page.
data*array<>next_cursor*|Cursor for the next page, or null when there are no more results.
curl -X GET 'https://api.matchai.co/v1/messages/search?query=string'{ "data": [ { "message": { "id": "string", "conversation_id": "string", "type": "text", "text": "string", "sender": { "user_id": "string", "contact_id": "string", "display_name": "string", "avatar_url": "http://example.com" }, "from_you": true, "sent_via": { "kind": "person", "app_name": "string" }, "reply_to_message_id": "string", "attachments": [ { "document_id": "string", "name": "string", "mime_type": "string", "size_bytes": 0 } ], "delivery": { "channel": "matchai", "state": "sent" }, "sent_at": "2019-08-24T14:15:22Z", "edited_at": "2019-08-24T14:15:22Z" }, "highlight": "string" } ], "next_cursor": "string"}