Endpoints
| Method | Path | Description |
|---|---|---|
GET | /v1/orgs/ | List organizations the caller belongs to |
POST | /v1/orgs/ | Create an organization |
GET | /v1/orgs/{id}/ | Retrieve a single organization |
PATCH | /v1/orgs/{id}/ | Update organization name |
DELETE | /v1/orgs/{id}/ | Delete the organization |
GET | /v1/webhook | Get the single-URL webhook (see note below) |
PUT / PATCH | /v1/webhook | Set the single-URL webhook |
Organization object
| Field | Type | Description |
|---|---|---|
id | integer | Server-assigned organization id |
name | string | Display name |
role | string | null | On list responses, the caller’s role in this org (owner, admin, member) |
created_at | timestamp | ISO 8601 in UTC |
updated_at | timestamp | ISO 8601 in UTC |
List organizations
Returns every organization the caller is a member of.An API key is bound to exactly one organization, so this list almost
always has a single entry when authenticated with
sk_live_. The
dashboard flow uses personal tokens and can return multiple orgs.Create organization
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | 1–120 characters |
201 Created with the new Organization object.
The creator becomes the owner member automatically.
Get organization
200 OK with an Organization object, or 404 if
the caller is not a member of the requested org.
Update organization
200 OK with the updated Organization object.
Delete organization
204 No Content.
| Status | Condition |
|---|---|
204 | Deleted |
400 | Other members still present, or this is the caller’s only org |
403 | Caller is not the owner |
Legacy single-URL webhook
This is the original webhook config: one URL receives every event
type (
call.incoming, call.complete, …). It is still supported for
existing integrations. New integrations should use the
Webhook Endpoints system (multiple URLs,
per-endpoint secrets, event filtering) — see
Webhooks overview.Get webhook config
200 OK with the webhook row, or 404 if the org has not
configured a webhook yet.
Set webhook URL
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | HTTPS URL; http:// is allowed only for localhost during local dev |
secret is generated server-side and rotated only when you
explicitly call PUT again. Store it in your secret manager and use it
to verify the X-ThunderPhone-Signature HMAC on inbound payloads — see
Webhooks overview.
Related
Members
Manage roles and memberships within an organization.
Invites
Invite users to join your organization.
Webhooks
Subscribe to real-time events delivered as HTTP POST requests.
API Keys
Rotate the
sk_live_ keys your integrations use.