API reference
API reference
AnswerStack Platform API 1.0.0: 437 operations.
The AnswerStack API is the same API the account admin app uses. Everything you can do in the app, you can automate: manage playbooks and groups, read calls and analytics, and check usage. This reference is generated from the API’s OpenAPI document on every docs build, so it always matches the deployed API.
Base URL#
Examples read the API base URL from $ANSWERSTACK_API_URL and a token from $ACCESS_TOKEN:
export ANSWERSTACK_API_URL="https://api.<your-domain>"
export ACCESS_TOKEN="<access token>"Authentication#
Endpoints marked with a bearer token expect Authorization: Bearer <token>, where the token is the access token from signing in (Supabase Auth). Tokens are short-lived; refresh them with your Supabase client. Role checks apply on top of authentication, and every request only sees data for the caller’s own account.
Errors#
Every error response uses the same JSON body:
| Field | Type | Required | Description |
|---|---|---|---|
error | object | Yes | — |
error.code | string | Yes | — |
error.details | any | No | — |
error.message | string | Yes | — |
error.requestId | string | Yes | — |
Endpoints#
| Section | Operations | Description |
|---|---|---|
| Me | 80 | The signed-in user |
| Account | 42 | Account settings and team |
| Playbooks | 22 | Playbooks, drafts, versions and publishing |
| Groups | 21 | Groups, profiles, customizations and human backup |
| Numbers | 13 | Phone numbers and playbook assignments |
| Knowledge | 6 | Knowledge documents |
| Connections | 12 | CRM and calendar connections |
| Rules | 2 | Booking rules simulation |
| Calls | 15 | Calls, transcripts, recordings and callbacks |
| Analytics | 5 | Metrics |
| Usage | 5 | Usage and invoices |
| Test Calls | 3 | Test calls against drafts |
| Public | 21 | Public marketing site endpoints |
| Booking Pages | 8 | Booking Pages endpoints. |
| Brands | 8 | Brands endpoints. |
| Emails | 20 | Emails endpoints. |
| Experiments | 5 | Experiments endpoints. |
| Follow Up | 2 | Follow Up endpoints. |
| Insights | 48 | Insights endpoints. |
| Media | 25 | Media endpoints. |
| Members | 8 | Members endpoints. |
| Price Sync | 9 | Price Sync endpoints. |
| Pricing | 31 | Pricing endpoints. |
| Ring Groups | 7 | Ring Groups endpoints. |
| Tools | 15 | Tools endpoints. |
| Widget Keys | 4 | Widget Keys endpoints. |