Opero Docs
Opero APIcompanies

Search email

GET
/v1/companies/{companyId}/email/search

Searches only mailboxes explicitly granted to the current token and exposed in the selected company.

Authorization

api-token
AuthorizationBearer <token>

Opero API token. Send it as Authorization: Bearer ek_...

In: header

Path Parameters

companyId*string

Query Parameters

q*string
accountId?string
folderId?string
direction?string
dateFrom?string
dateTo?string
order?string
limit?number
cursor?string

Response Body

application/json

curl -X GET "https://example.com/v1/companies/string/email/search?q=string"
{  "data": {    "items": [      {        "id": "string",        "accountId": "string",        "threadId": "string",        "subject": "string",        "direction": "INBOUND",        "receivedAt": "2019-08-24T14:15:22Z",        "excerpt": "string",        "bodyAvailable": true,        "searchTruncated": true,        "mailboxThreadHref": "string"      }    ],    "nextCursor": "string",    "hasMore": true,    "failure": "unavailable"  }}