Skip to main content

Numbers API

Proxy numbers are managed centrally by Relavoi's Number Pool Manager. These endpoints let you observe pool health and request more capacity.

Endpoints​

MethodPathSummary
GET/v1/numbers/poolView pool capacity per region and provider
POST/v1/numbers/provisionRequest additional numbers (not yet available)

GET /v1/numbers/pool​

Auth: Bearer JWT (tenant).

Returns one entry per region/provider combination. This endpoint takes no query parameters.

Request

curl https://api.relavoi.com/v1/numbers/pool \
-H "Authorization: Bearer $RELAVOI_JWT"

Response

{
"pools": [
{
"region": "lagos",
"total": 10,
"available": 9,
"inUse": 1,
"cooldown": 0
}
]
}
FieldDescription
regionPool region label
totalNumbers provisioned in this region
availableNumbers ready for allocation
inUseNumbers currently bound to an active session
cooldownNumbers in post-session cooldown, temporarily unavailable

Errors

StatusCodeWhen
401unauthorizedMissing JWT

POST /v1/numbers/provision​

Auth: Bearer dashboard JWT with OWNER role (from /auth/dashboard/login). A standard SDK/tenant token is rejected with 403.

:::warning Not yet available Self-service provisioning is not yet implemented. Even with a valid owner token the endpoint returns 501. Requesting additional capacity today is a human-in-the-loop step — contact support. The contract is documented here so integrations can be staged against it. :::

FieldTypeRequiredDescription
regionstringyesPool region label
countintegeryesNumber of DIDs to provision (1-100)

Request

curl -X POST https://api.relavoi.com/v1/numbers/provision \
-H "Authorization: Bearer $RELAVOI_DASHBOARD_JWT" \
-H "Content-Type: application/json" \
-d '{ "count": 50, "region": "lagos" }'

Response (today) — 501 Not Implemented. Note this body is a plain { error } object, not the RFC 7807 shape.

{
"error": "Number provisioning via API is not yet available. Contact support."
}

Errors

StatusCodeWhen
400validationMissing/invalid region or count
403forbiddenCalled with a tenant/SDK token instead of an OWNER dashboard token
501—Endpoint not yet implemented (returned for authorized owners)