Skip to main content
POST
Search emails using Meilisearch

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Body

application/json
client_id
string
Example:

"207"

q
string

Search query

Example:

"hug"

search_type
string

Search type: all, message, sender, receiver

Example:

"all"

page
integer
Example:

1

perpage
integer
Example:

10

category
string

Email category filter

Example:

"new"

permissions
object
Example:

Response

Successful operation

emails
object[]

The list of emails matching the search

number
integer

The total number of emails matching the search

perpage
integer

The number of emails per page

page
integer

The current page

total_pages
integer

The total number of pages