# Look up a sender name

```http
POST https://smsprovider-web.vercel.app/api/v1/senders
```

Returns a sender name available to the account (shared or approved for it). New names are requested in the portal (Sender names → request a new name) with a business certificate and an ID document; answered within one business day. Sending from phone numbers is not available.

**Authentication:** `Authorization: Bearer bm_live_…` · **Required scope:** `sms:send`

## Request body

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `value` | string | yes | len 2–20 |
| `is_default` | boolean | no |  |
| `note` | string | no | len 0–500 |

## Response

`201` — `Sender`

## Errors

| Status | Code |
| --- | --- |
| 400 | `validation_error` |
| 401 | `unauthorized` |
| 403 | `insufficient_scope` |
| 429 | `rate_limited` |
| 500 | `internal_error` |

## Examples

### curl
```bash
curl -X POST "https://smsprovider-web.vercel.app/api/v1/senders" \
  -H "Authorization: Bearer $BATLER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":"…"}'
```
### Node.js
```ts
import { BatlerSMS } from "@batler/sms";

const sms = new BatlerSMS({ apiKey: process.env.BATLER_API_KEY! });
const body = {
  "value": "…"
};
const result = await sms.senders.create(body);
```
### PHP
```php
<?php
$ch = curl_init("https://smsprovider-web.vercel.app/api/v1/senders");
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer " . getenv("BATLER_API_KEY"),
    "Content-Type: application/json",
  ],
  CURLOPT_POSTFIELDS => json_encode(["value" => "…"], JSON_UNESCAPED_UNICODE),
]);
$result = json_decode(curl_exec($ch), true);
```
### Python
```python
import os, uuid, requests

resp = requests.request(
    "POST", "https://smsprovider-web.vercel.app/api/v1/senders",
    headers={"Authorization": f"Bearer {os.environ['BATLER_API_KEY']}"},
    json={"value": "…"},
    timeout=30,
)
resp.raise_for_status()
result = resp.json()
```
### C#
```csharp
using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new("Bearer", Environment.GetEnvironmentVariable("BATLER_API_KEY"));
var req = new HttpRequestMessage(HttpMethod.Post, "https://smsprovider-web.vercel.app/api/v1/senders");
req.Content = new StringContent("{\"value\":\"…\"}", System.Text.Encoding.UTF8, "application/json");
var res = await http.SendAsync(req);
var result = await res.Content.ReadAsStringAsync();
```
