API Reference
Numbers

Update a tenant number's routing config

PUT
/v1/numbers/{id}/routing

Patches voice_callback_url and/or events_url on a number's routing config. Both fields accept http or https; empty string clears the field; omitted fields are left untouched. The Idempotency-Key header is honoured for replay safety.

Authorization

bearerAuth
AuthorizationBearer <token>

Long-lived ES256 JWT minted from the dashboard (https://app.sautikit.com/developers/api-keys). Signed by the platform keyring. Carries workspace_id and scopes claims; revoked via the platform deny-list.

In: header

Path Parameters

id*string
Formatuuid

Header Parameters

Idempotency-Key?string
Lengthlength <= 64

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08/routing" \  -H "Content-Type: application/json" \  -d '{    "voice_callback_url": "https://example.com/sautikit/voice",    "events_url": "https://example.com/sautikit/events"  }'
{  "number": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",    "e164": "string",    "friendly_name": "string",    "status": "active",    "assigned_at": "2019-08-24T14:15:22Z"  },  "routing": {    "voice_callback_url": "string",    "events_url": "string"  }}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string"  }}
{  "error": {    "code": "validation.bad_request",    "message": "string",    "request_id": "string"  }}