In-Chat Forms & Surveys
Send a form card by saved form_id from the dashboard.
Forms are not inline on HTTP. Create a definition under dashboard → Forms, copy the form id (ULID), then send a reference only.
Send a form card
curl -sS -X POST "$BASE/v1/messages/send"
-H "Authorization: Bearer $KEY"
-H "Idempotency-Key: survey-monday"
-H "Content-Type: application/json"
-d '{
"to": "peer_username",
"type": "form",
"form_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"schema_version": 1
}' HTTP send: to, type: "form", form_id (ULID from the dashboard), and schema_version: 1 (optional on the server if omitted, but include it in new integrations). Sending fields, name, text, or root expires_at in the send body → 400. The card snapshot is frozen at send time; library edits do not rewrite cards already in chat.
Create and manage definitions
| Action | Where |
|---|---|
| Form editor (fields, write bubble) | Dashboard → Forms (/forms) |
| Sequence, timing, max, HTTP after submit | Dashboard → Form actions (/forms/settings) |
| Answer inbox | Dashboard → Form responses (/forms/responses; filter by form_id) |
| End-user guide | Forms (sidebar) · Journey |
Chat web/mobile also send form_id only from compose — same as the API.
When they submit
Subscribe to interactive.submit. Answers live in the webhook fields map — not as separate chat messages (unless the card’s write setting shows a summary bubble). Example: Events.
Server order: validation → form HTTP actions (if any) → submission row → webhook + Flow.
See also
- How webhooks work
- Forms (sidebar) — Form responses on the dashbor (not under Developer)