# Update an iMessage sender

Updates an iMessage sender. Fields you leave out keep their current values.

```http
PATCH https://api.pozy.ai/v1/imessage/senders/{senderId}
```

- Area: Messaging / iMessage
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `senderId` (string, required)

## Request body

Content type: `application/json`

- `displayName`, string: Up to 100 characters
- `contact`, object
  - `firstName`, string, required: Up to 64 characters
  - `lastName`, string: Up to 64 characters
  - `photoUrl`, string (URL)

## Example request

```bash
curl -X PATCH "https://api.pozy.ai/v1/imessage/senders/68ef6f94df13738fb25f1e94" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "displayName": "Acme",
  "contact": {
    "firstName": "Acme"
  }
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/imessage/senders/68ef6f94df13738fb25f1e94", {
  method: "PATCH",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    displayName: "Acme",
    contact: {
      firstName: "Acme"
    }
  }),
});
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.patch(
    "https://api.pozy.ai/v1/imessage/senders/68ef6f94df13738fb25f1e94",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "displayName": "Acme",
        "contact": {
            "firstName": "Acme",
        },
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean
- `sender`, object
  - `id`, string
  - `kind`, string: One of `phone`, `email`
  - `region`, string: One of `US`, `GB`. Can be null
  - `handle`, string: Can be null
  - `optInLink`, string: Can be null
  - `status`, string: One of `ordering`, `awaiting_payment`, `activating`, `active`, `suspended`, `canceled`, `failed`
  - `priceCents`, integer
  - `provider`, string
  - `profileId`, string
  - `displayName`, string: Can be null
  - `failureReason`, string: Can be null
  - `accountId`, string: Can be null
  - `createdAt`, string (date-time)

```json
{
  "success": true,
  "sender": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "kind": "phone",
    "region": "US",
    "handle": "acme",
    "optInLink": "string",
    "status": "ordering",
    "priceCents": 1,
    "provider": "string",
    "profileId": "6a0b6573846efc28aaa9a3ff",
    "displayName": "Acme",
    "failureReason": "string",
    "accountId": "696e0b682d0a31188e7a2ba9",
    "createdAt": "2026-10-02T09:00:00.000Z"
  }
}
```
