GET
/
phone-numbers
/
all
curl --request GET \
  --url https://api.bolna.dev/phone-numbers/all \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "3c90c3cc0d444b5088888dd25736052a",
    "humanized_created_at": "5 minutes ago",
    "created_at": "2024-01-23T05:14:37Z",
    "humanized_updated_at": "5 minutes ago",
    "updated_at": "2024-02-29T04:22:89Z",
    "renewal_at": "17th Dec, 2024",
    "phone_number": "+19876543210",
    "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "price": "$5.0",
    "telephony_provider": "twilio",
    "rented": true
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json
list phone numbers response
id
string

The ID of the phone number

Example:

"3c90c3cc0d444b5088888dd25736052a"

humanized_created_at
string

Human-readable relative time since the phone number creation

Example:

"5 minutes ago"

created_at
string

Created timestamp of phone number

Example:

"2024-01-23T05:14:37Z"

humanized_updated_at
string

Human-readable relative time since the phone number last update

Example:

"5 minutes ago"

updated_at
string

Last updated timestamp of phone number

Example:

"2024-02-29T04:22:89Z"

renewal_at
string

Human readable renewal date for the phone number

Example:

"17th Dec, 2024"

phone_number
string

Phone number in (in E.164 format)

Example:

"+19876543210"

agent_id
string

Agent id associated with the phone number

price
string

Monthly rental price of the phone number

Example:

"$5.0"

telephony_provider
enum<string>

Telephony provider of the phone number

Available options:
twilio,
plivo,
vonage
Example:

"twilio"

rented
boolean

If the phone number was bought from Bolna

Example:

true