Find Email Thread

View as Markdown
Search the vault's connected Gmail for an existing conversation, including mail sent before this deployment started logging. Gmail search syntax, e.g. "to:ana@client.com inventory" or "subject:report newer_than:7d". Returns thread ids for send_email's replyToThreadId.

Authentication

AuthorizationBearer
Create a personal key in Alpha settings, or use an access token issued to an approved OAuth client.

Request

This endpoint expects an object.
querystringRequired
Gmail search syntax
vaultstringOptional

Exact vault id or name from list_vaults. Required whenever the key can reach more than one vault; never guess or use one client’s vault for another.

limitdoubleOptional

1-20, default 5

Response headers

X-Request-IdstringOptional
Stable identifier for tracing this request in Alpha logs.

Response

Find Email Thread completed.
datamap from strings to any or list of maps from strings to any
The result returned by the selected Alpha tool.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error