phone-plusBuy Numbers

The Phone Numbers API allows you to purchase, configure, and manage local phone numbers for your AI voice agents.

List Phone Numbers

Retrieve all phone numbers owned by your organization.

GET /phone-numbers

Query Parameters

Parameter
Type
Description

status

string

Filter by status: active, suspended, pending

country

string

Filter by country code (e.g., NG, KE)

limit

integer

Number of results (default: 50, max: 100)

offset

integer

Pagination offset

curl -X GET "https://api.krosai.com/v1/phone-numbers?country=NG&limit=10" \
  -H "x-api-key: kros_live_your_key"

Get Phone Number

Retrieve details for a specific phone number.

GET /phone-numbers/{id}

Request

curl
curl -X GET "https://api.krosai.com/v1/phone-numbers/pn_abc123" \
  -H "x-api-key: kros_live_your_key"

Response

List Available Numbers

Search for phone numbers available for purchase.

Query Parameters

Parameter
Type
Required
Description

country

string

Yes

ISO country code (e.g., NG, KE, AE)

type

string

No

Number type: local, mobile, toll_free

area_code

string

No

Specific area code

limit

integer

No

Number of results (default: 20)

Request

Response

Purchase Phone Number

Purchase an available phone number.

Request Body

Field
Type
Required
Description

inventory_id

string

Yes

ID from available numbers list

endpoint_id

string

No

Endpoint to attach immediately

allow_inbound

boolean

No

Enable inbound calls (default: true)

allow_outbound

boolean

No

Enable outbound calls (default: true)

Request

Response

Error Responses

Status
Code
Description

400

KYC_REQUIRED

KYC verification not completed

400

KYC_PENDING

KYC verification still pending

400

INSUFFICIENT_BALANCE

Not enough credits

404

NUMBER_NOT_AVAILABLE

Number no longer available

Update Phone Number

Update phone number configuration.

Request Body

Field
Type
Description

endpoint_id

string

Endpoint ID to route calls to

allow_inbound

boolean

Enable/disable inbound calls

allow_outbound

boolean

Enable/disable outbound calls

Request

Response

Release Phone Number

Release a phone number. The number returns to the available pool.

Request

Response

circle-exclamation

Phone Number Status Values

Status
Description

active

Number is operational

suspended

Number is temporarily suspended

pending

Number is being provisioned

porting

Number is being ported

Code Examples

Next Steps

Last updated