Phone Numbers

Provision and manage phone numbers

List phone numbers

get

Retrieves all phone numbers for the organization

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
chevron-right
200

List of phone numbers

application/json
get
/phone-numbers

Purchase a phone number

post

Purchases a new phone number from the inventory.

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Body
inventory_idstring · uuidRequired

ID of the phone number from inventory

Responses
post
/phone-numbers

Get phone number details

get

Retrieves details including SIP credentials for routing

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Path parameters
idstring · uuidRequired

Phone number UUID

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
chevron-right
200

Phone number details with SIP credentials

application/json
get
/phone-numbers/{id}

Release phone number

delete

Releases the phone number back to the inventory

Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Path parameters
idstring · uuidRequired

Phone number UUID

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Responses
delete
/phone-numbers/{id}

No content

Update phone number settings

patch
Authorizations
AuthorizationstringRequired

API key in format kros_live_xxxx for production or kros_test_xxxx for testing. Also accepts JWT tokens from Supabase Auth for dashboard sessions.

Path parameters
idstring · uuidRequired

Phone number UUID

Header parameters
x-organization-idstring · uuidOptional

Organization UUID for multi-tenant context. Falls back to user's first organization if not provided.

Body
endpoint_idstring · uuid · nullableOptional

Endpoint to route calls to

allow_inboundbooleanOptional

Allow inbound calls

allow_outboundbooleanOptional

Allow outbound calls

statusstring · enumOptionalPossible values:
Responses
chevron-right
200

Phone number updated

application/json
patch
/phone-numbers/{id}

Last updated