Skip to main content
Kapso returns Meta-compatible objects by default. Opt in to extra fields using fields=kapso(...) on list endpoints. Works with:
  • REST API: Add ?fields=kapso(...) query parameter
  • TypeScript SDK: Pass fields option with helper functions or string
These extensions add valuable context like message direction, media URLs, conversation details, and more.

Usage

TypeScript SDK

The SDK includes helper functions for common field sets:

REST API

Add the fields query parameter:
Available selectors:
  • kapso(default) or kapso(*) or kapso(all) - All default Kapso fields
  • kapso(field1,field2,...) - Specific fields only
  • kapso() - Omit Kapso fields entirely

Message fields

Conversation fields

Use these with conversations endpoint.

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 sets kapso.direction. SMB echoes are tagged with kapso.source = "smb_message_echo". Other webhook fields are available under events.raw.<fieldName>.