Endpoint
GET https://pilotstatus.com.br/v1/conversations
Requires a number-scoped API key (
ps_*) in the x-api-key header. Tenant-scoped keys return 403.Query parameters
ISO 8601 datetime. Filter conversations whose last message is on or after this date.
ISO 8601 datetime. Filter conversations whose last message is on or before this date.
Page number (≥ 1).
Results per page (1–100).
startDate and endDate are optional individually. When supplied, each must be a valid ISO 8601 string and startDate must not be later than endDate; otherwise 400 INVALID_DATE_RANGE is returned.
PII mode effect
The response depends on the PII mode configured for the number (set viaPATCH /api/whatsapp-numbers/[id]):
| PII mode | Effect |
|---|---|
STORE_INDEFINITE (default) | All conversations returned (subject to date filters). |
STORE_X_DAYS | Only conversations with activity within the last N days are returned. The effective lower bound is max(startDate, now − piiRetentionDays). |
RELAY_ONLY | Returns an empty list (conversations: [], total: 0) and includes a notice: "PII_RELAY_ONLY" field. No conversation data is stored for this number. |
Example
Conversation object fields
Pilot Status conversation ID.
"DIRECT", "GROUP" or "NEWSLETTER".Sender phone in E.164 (with
+) for individuals; null for groups/newsletters and lid-only peers.Contact or group display name when available (resolved from the conversation).
ISO 8601 — timestamp of the last message activity.
Number of inbound messages not yet read.
ISO 8601 — when the conversation was first created.
Common errors
400 INVALID_DATE_RANGE—startDateorendDateis not a valid ISO 8601 string, orstartDate > endDate.400 NUMBER_NOT_FOUND— the API key is not bound to a WhatsApp number.401— missing or invalidx-api-keyheader.403— tenant-scoped key used (number-scoped key required).