AgentMessage
Phone numbers

Get a phone number by id

GET
/v1/phone-numbers/{id}

Retrieve a single assigned phone number by its resource id (not its E.164 number). A number that belongs to another organization returns 404 NOT_FOUND.

Requires the numbers:read scope.

AuthorizationBearer <token>

Authenticate by sending your API key as a bearer token: Authorization: Bearer am_live_.... Every request is automatically scoped to the organization that owns the key and to the scopes granted to that key.

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/phone-numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "success": true,
  "data": {
    "id": "7c1f0a2d-9e8b-4c3a-9d2e-1f0a2b3c4d5e",
    "number": "+14155550123",
    "number_type": "local",
    "inbound_url": "https://customer.example/inbound",
    "status_url": "https://customer.example/status",
    "label": "support-line",
    "campaign_id": "b5d3c4e2-7f7e-44a1-8c12-2bcd9e3f0a01",
    "sms_enabled": true,
    "mms_enabled": true,
    "created_at": "2026-04-20T10:30:00Z",
    "updated_at": "2026-04-26T08:00:00Z"
  }
}
{
  "success": false,
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "validation failed",
    "request_id": "01JTBQH2FZ8K1RXC0WJ4Z9P3VM",
    "details": {
      "to": "must be E.164",
      "body": "must be 1..1600 chars"
    }
  }
}
{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "authentication failed",
    "request_id": "01JTBQH2FZ8K1RXC0WJ4Z9P3VM"
  }
}
{
  "success": false,
  "error": {
    "code": "FORBIDDEN",
    "message": "missing required scope",
    "request_id": "01JTBQH2FZ8K1RXC0WJ4Z9P3VM"
  }
}
{
  "success": false,
  "error": {
    "code": "NOT_FOUND",
    "message": "not found",
    "request_id": "01JTBQH2FZ8K1RXC0WJ4Z9P3VM"
  }
}