API reference / Endpoints
Numbers
Every phone number the workspace has held.
GET/api/v1/numbers
Every number the workspace has ever held, released ones included.
Requestbash
curl https://app.prepaid.ai/api/v1/numbers \
-H "Authorization: Bearer pk_live_your_key_here"Responsejson
{
"workspaceId": "3f6c1e70-9a4d-4a58-b6a2-2f0f0f9d1c11",
"numbers": [
{
"e164": "+6448872813",
"country": "NZ",
"status": "active",
"agentId": "0f2c9f5a-2b31-4a7e-9c11-8a1f5d3e7b20"
}
]
}| Field | Type | Description |
|---|---|---|
| e164 required | string | The number in E.164, unformatted. |
| country required | string | ISO-2 country code. |
| status required | string | Where the number is in its lifecycle. |
| agentId required | string | null | The agent answering this line, or null when nothing is attached. |