Prepaid AIDocsv1
StatusSign in

API reference

List numbers

GET/api/v1/numbers

Every phone number the workspace has held, and which agent answers it.

1 min read
GET
curl https://app.prepaid.ai/api/v1/numbers \  -H "Authorization: Bearer $PREPAID_API_KEY"
Response · 200
{  "workspaceId": "3f6c1e70-9a4d-4a58-b6a2-2f0f0f9d1c11",  "numbers": [    {      "e164": "+6448872813",      "country": "NZ",      "status": "active",      "agentId": "0f2c9f5a-2b31-4a7e-9c11-8a1f5d3e7b20"    }  ]}

Every number the workspace has ever held, released ones included.

numbers[].e164stringalways present
The number, E.164.
numbers[].countrystringalways present
ISO 3166-1 alpha-2 country code.
numbers[].statusstringalways present
reserved, active, grace or released.
numbers[].agentIdstring | nullalways present
The agent answering this line, or null when nothing is attached.