# Create a caller identity share link

Creates a caller identity share link.

```http
POST https://api.pozy.ai/v1/branded-calling/share
```

- Area: Phone & voice / Branded Calling
- Auth: Authorization: Bearer pz_live_...
- Not available yet: calls return 403 feature_not_available

## Request body

Content type: `application/json`

- `enterpriseId`, string
- `identityId`, string

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/branded-calling/share" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enterpriseId": "66496a86752378ad82057ff6",
  "identityId": "677d7bec579c1ba703d97ae7"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/branded-calling/share", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    enterpriseId: "66496a86752378ad82057ff6",
    identityId: "677d7bec579c1ba703d97ae7"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.post(
    "https://api.pozy.ai/v1/branded-calling/share",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "enterpriseId": "66496a86752378ad82057ff6",
        "identityId": "677d7bec579c1ba703d97ae7",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `url`, string
- `expiresAt`, string (date-time)

```json
{
  "url": "https://pozy.ai/media/example-1.jpg",
  "expiresAt": "2026-10-02T09:00:00.000Z"
}
```
