fields=kapso(...) on list endpoints.
Works with:
- REST API: Add
?fields=kapso(...)query parameter - TypeScript SDK: Pass
fieldsoption with helper functions or string
Usage
TypeScript SDK
The SDK includes helper functions for common field sets:REST API
Add thefields query parameter:
kapso(default)orkapso(*)orkapso(all)- All default Kapso fieldskapso(field1,field2,...)- Specific fields onlykapso()- Omit Kapso fields entirely
Message fields
| Field | Description |
|---|---|
direction | Inbound or outbound based on the business number. |
status | Server-side message status when available. |
processing_status | Internal processing status when available. |
phone_number | Business phone number for the message. |
has_media | True when a media blob is attached. |
media_data | URL, filename, content type, and byte size for stored media. |
media_url | Direct URL to the attached media. Inbound: immediate. Outbound: appears shortly after send. |
whatsapp_conversation_id | Internal conversation identifier. |
contact_name | Display name when known. |
message_type_data | Per-type hints such as caption, sticker info, or location values. |
content | Original message fragment stored by Kapso (for example, entire interactive/catalog payloads). |
flow_response | Parsed Flows response JSON. |
flow_token | Token from a Flows response when present. |
flow_name | Name from a Flows response when present. |
order_text | Optional note from order messages. |
Conversation fields
Use these with conversations endpoint.| Field | Description |
|---|---|
contact_name | Display name for the contact linked to the conversation. |
messages_count | Total number of stored messages in the conversation. |
last_message_id | WAMID of the most recent message in the conversation. |
last_message_type | Type of the most recent message (for example text, image, reaction). |
last_message_timestamp | ISO 8601 timestamp of the most recent message. |
last_message_text | Text or caption preview when available (may be empty for non-text types). |
last_inbound_at | ISO 8601 timestamp of the most recent inbound message. |
last_outbound_at | ISO 8601 timestamp of the most recent outbound message. |
Examples
All Kapso fields
Subset of fields
Omit Kapso fields
Webhooks
The SDK includes a normalization helper for Meta webhooks. It returns the same structure as history queries and setskapso.direction. SMB echoes are tagged with kapso.source = "smb_message_echo". Other webhook fields are available under events.raw.<fieldName>.

