---
title: "List phone numbers"
method: GET
path: "/accounts/{account_id}/phone_numbers"
tags: ["Phone numbers"]
---

# List phone numbers

`GET /accounts/{account_id}/phone_numbers`

List all phone numbers for an account with cursor-based pagination.

## Path parameters

- `account_id` string, required — The account ID to list phone numbers for.

## Query parameters

- `after` string — Cursor for forward pagination. Use the next_cursor from a previous response.
- `before` string — Cursor for backward pagination. Use the previous_cursor from a previous response.

## Response `200`

List of phone numbers

- PhoneNumberList — A paginated list of phone numbers
  - `data` PhoneNumber[], required — The list of phone numbers
    - `campaign` PhoneNumberCampaign, required — Campaign attachment details for a domestic local phone number
      - `attachment_status` 'attached' | 'attachment_pending' | 'detached' | 'detachment_pending', required — The current campaign attachment status for this phone number.
      - `id` string, required — The unique identifier of the campaign this phone number is attached to
    - `campaign_id` string, nullable, required — Deprecated. The unique identifier of the campaign this phone number is attached to, if any
    - `id` string, required — Unique identifier for the phone number
    - `name` string, nullable, required — A human-readable name for the phone number
    - `number` string, phone-number, required — The phone number in E.164 format
    - `type` 'local' | 'short_code' | 'toll_free', required — Whether the phone number is local, toll-free, or short code
  - `pagination` Pagination, required — Cursor-based pagination information
    - `next_cursor` string, nullable — Cursor for the next page of results. Null if there is no next page.
    - `previous_cursor` string, nullable — Cursor for the previous page of results. Null if there is no previous page.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/surgeapi/apis/surge.md) · [All operations](https://skmtc.net/surgeapi/apis/surge/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surgeapi/surge/versions/b5b0b6f62245/schema)
