List all conversations with optional filtering.

View as Markdown

Authentication

X-API-Keystring

API Key authentication. Generate your API key in the Gail Portal under General > Integrations > API Keys.

Query parameters

searchstringOptional
Optional search term to filter conversations.
typeenumOptional

Optional conversation type filter (e.g., Call, SMS).

Allowed values:
userIdstringOptionalformat: "uuid"
Optional user ID to filter conversations by user.
includeArchivedbooleanOptionalDefaults to false
When true, includes archived conversations in results.
afterstringOptionalformat: "uuid"
A GUID cursor to fetch items strictly after this ID.
beforestringOptionalformat: "uuid"
A GUID cursor to fetch items strictly before this ID.
limitintegerOptionalDefaults to 50

Maximum number of items to retrieve (default 50).

pageintegerOptionalDefaults to 1Deprecated

The page number (1-based).

sizeintegerOptionalDefaults to 50Deprecated

Number of items per page (default 50).

Response

OK
datalist of objects or nullOptional
totalinteger or nullOptional
pageinteger or nullOptional
sizeinteger or nullOptional
pagesinteger or nullOptional

Errors

400
Bad Request Error
404
Not Found Error