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

# Rent USA number

> Rent a USA virtual number

Rents a USA virtual number. The API price is deducted from your developer wallet balance.

## Endpoint

```http theme={null}
POST /virtual-numbers/usa/rent
```

## Body parameters

| Parameter      | Type   | Required | Description                                 |
| -------------- | ------ | -------- | ------------------------------------------- |
| `service_code` | string | Yes      | Service code (e.g. `whatsapp`, `telegram`). |

## Example request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://api.telewing247.com/api/api/v1/public/virtual-numbers/usa/rent \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer ak_YOUR_API_KEY_HERE" \
    -d '{
      "service_code": "whatsapp"
    }'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    "https://api.telewing247.com/api/api/v1/public/virtual-numbers/usa/rent",
    {
      method: "POST",
      headers: {
        Accept: "application/json",
        "Content-Type": "application/json",
        Authorization: "Bearer ak_YOUR_API_KEY_HERE",
      },
      body: JSON.stringify({
        service_code: "whatsapp",
      }),
    }
  );
  const data = await response.json();
  ```
</CodeGroup>
