> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.agentphone.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.agentphone.ai/_mcp/server.

# Get Number

GET https://api.agentphone.ai/v1/numbers/{number_id}

Get a single phone number owned by this account.

Returns the number regardless of status (including released) so detail
pages still load for numbers that are no longer active. `ext:<externalId>`
in place of the id looks the number up by the tag you set.

Reference: https://docs.agentphone.ai/api-reference/numbers/get-number-v-1-numbers-number-id-get

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `number_id` (string, required)

## Response

### 200

Successful Response

- `id` (string, required)
- `phoneNumber` (string, required)
- `country` (string, required)
- `status` (string, required)
- `createdAt` (datetime, required)
- `type` (string, optional, default: sms)
- `agentId` (string, optional, nullable)
- `outboundSms` (enum, optional, default: enabled) — Outbound SMS readiness for this exact number: activating means campaign attachment is in progress; enabled means confirmed; registration_required means registration or attachment is still needed. Check the number and registration in the same account/sub-account scope. See /sms-registration.
  - Allowed values: `enabled`, `activating`, `registration_required`
- `inboundCallsEnabled` (boolean, optional, default: true)
- `readReceiptsEnabled` (boolean, optional, default: true)
- `whatsappEnabled` (boolean, optional, default: false)
- `dailyNewContacts` (DailyNewContactsUsage, optional, nullable)
- `externalId` (string, optional, nullable)
- `rcsFallbackForAlias` (string, optional, nullable)
- `expiresAt` (string, optional, nullable)
- `purchasedAt` (datetime, optional, nullable)
- `renewsAt` (string, optional, nullable) — Scheduled renewal of this number's monthly fee, ISO 8601 UTC. Null when no renewal is scheduled or its date is not known.

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### DailyNewContactsUsage

- `used` (integer, required)
- `limit` (integer, optional, nullable)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### ValidationErrorLocItems

- string
- integer

## Examples

**Response**

```json
{
  "id": "string",
  "phoneNumber": "string",
  "country": "string",
  "status": "string",
  "createdAt": "2024-01-15T09:30:00Z",
  "type": "sms",
  "agentId": "string",
  "outboundSms": "enabled",
  "inboundCallsEnabled": true,
  "readReceiptsEnabled": true,
  "whatsappEnabled": false,
  "dailyNewContacts": {
    "used": 1,
    "limit": 1
  },
  "externalId": "string",
  "rcsFallbackForAlias": "string",
  "expiresAt": "string",
  "purchasedAt": "2024-01-15T09:30:00Z",
  "renewsAt": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.agentphone.ai/v1/numbers/number_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.agentphone.ai/v1/numbers/number_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

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

func main() {

	url := "https://api.agentphone.ai/v1/numbers/number_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.agentphone.ai/v1/numbers/number_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.agentphone.ai/v1/numbers/number_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.agentphone.ai/v1/numbers/number_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.agentphone.ai/v1/numbers/number_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentphone.ai/v1/numbers/number_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```