API Reference
SIP Credentials

Issue a device connection code

POST
/v1/numbers/{id}/sip-credentials/{credential_id}/connection-codes

Mint a six-digit code that connects one app device (laptop or mobile) to this line. A SIP credential carrying an extension IS a person's line; the desk phone registers with its SIP password, while app devices attach with a code instead. The plaintext code is returned ONCE and cannot be retrieved later. It is also emailed to the address supplied, so an agent with no company email address can still be enrolled by reading the digits out. Single use, ten minutes, and issuing a new code revokes any outstanding one for the same line. Fails with numbers.extension_required when the line has no extension — a device enrolled onto an undialable line could never be reached.

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
credential_id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08/sip-credentials/497f6eca-6276-4993-bfeb-53cbbbba6f08/connection-codes" \  -H "Content-Type: application/json" \  -d '{}'
{  "code_id": "c6a02b7d-40f4-4982-9c97-607f4e20761a",  "code": "048371",  "extension": "1002",  "expires_at": "2019-08-24T14:15:22Z",  "email_sent": true}
Empty
Empty