API referenceSearch
Search conversations by words
Full-text search over subjects, senders and message text, best matches first. Agent keys see only their agent's inboxes. Needs inboxes:read.
GET
Full-text search over subjects, senders and message text, best matches first. Agent keys see only their agent's inboxes. Needs inboxes:read.
bearerAuthheader
AuthorizationBearer <mr_live_ / mr_test_>API key. Never log the secret.
q*stringWords; "quoted phrase"; -word to exclude; or
Length
length <= 200from?stringFormat
emailstatus?stringThread states
direction?stringValue in
"inbound""outbound"inbox_id?stringlimit?integerRange
1 <= value <= 50Default
20offset?integerRange
0 <= value <= 500Default
0Matches with a snippet (matches wrapped in **), and next_offset when there are more
application/json- response
data?array<>next_offset?integer|nullcurl -X GET 'https://api.mailroomapi.com/v1/search?q=string'Example Response
{ "data": [ { "message_id": "string", "thread_id": "string", "inbox_id": "string", "inbox": "string", "direction": "string", "from": "string", "subject": "string", "thread_status": "string", "snippet": "string", "content_is_untrusted": true, "created_at": "2019-08-24T14:15:22Z" } ], "next_offset": 0}