Vercel AI SDK
The Vercel AI SDK wrapper automatically captures conversations from your existing chat handler with zero code changes to your application logic.app/api/chat/route.ts
- All user and assistant messages
- Conversation metadata (if provided)
- Session context (browser, device, referrer)
TypeScript SDK
The TypeScript SDK gives you explicit control over when and what data is sent.Python SDK
REST API
Use the REST API from any language or platform.Response
A successful request returns:Metadata reference
| Field | Type | Required | Description |
|---|---|---|---|
userId | string | No | Your internal user identifier |
email | string | No | User’s email address |
organization | string | No | User’s organization name |
plan | string | No | Subscription plan tier |
mrr | number | No | Monthly recurring revenue |
industry | string | No | Organization’s industry |
Session context reference
| Field | Type | Description |
|---|---|---|
pageUrl | string | URL where the conversation occurred |
referrer | string | Referring URL |
device | string | Device type (desktop, mobile, tablet) |
country | string | User’s country (ISO code) |
language | string | Browser language |
browser | string | Browser name and version |
os | string | Operating system |
Next steps
API keys
Manage and rotate your API keys.
Webhooks
Set up alert destinations for workflows.
Manage metadata
Track custom metadata fields for filtering.