> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thinnest.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Phone Numbers

> Retrieve all phone numbers in your account

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET https://api.thinnest.ai/v2/phone-numbers \
    -H "Authorization: Bearer $THINNESTAI_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  url = "https://api.thinnest.ai/v2/phone-numbers"
  headers = {
      "Authorization": "Bearer " + "YOUR_THINNESTAI_API_KEY",
  }

  response = requests.get(url, headers=headers)
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.thinnest.ai/v2/phone-numbers", {
    method: "GET",
    headers: {
      "Authorization": "Bearer " + "YOUR_THINNESTAI_API_KEY",
    },
  });

  const data = await response.json();
  console.log(data);
  ```

  ```go Go theme={null}
  package main

  import (
      "fmt"
      "io"
      "net/http"
  )

  func main() {
      req, _ := http.NewRequest("GET", "https://api.thinnest.ai/v2/phone-numbers", nil)
      req.Header.Set("Authorization", "Bearer YOUR_THINNESTAI_API_KEY")

      resp, err := http.DefaultClient.Do(req)
      if err != nil { panic(err) }
      defer resp.Body.Close()
      body, _ := io.ReadAll(resp.Body)
      fmt.Println(string(body))
  }
  ```
</RequestExample>

```http theme={null}
GET /v2/phone-numbers
```

## Query Parameters

<ParamField query="provider" type="string">
  Filter by provider (twilio, vobiz)
</ParamField>

<ParamField query="limit" type="integer">
  Max results (default: 50)
</ParamField>

<ParamField query="offset" type="integer">
  Pagination offset
</ParamField>

## Response

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "id": "pn_abc123",
      "number": "+919876543210",
      "provider": "vobiz",
      "status": "active",
      "agent_id": "ag_xyz789",
      "monthly_cost_inr": 150.00,
      "capabilities": ["voice", "sms"],
      "created_at": "2026-03-25T10:00:00Z"
    }
  ]
  ```
</ResponseExample>
