# Reply to a change request

Replies to a change request.

```http
POST https://api.pozy.ai/v1/sms/registrations/{id}/respond
```

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

## Path parameters

- `id` (string, required)

## Request body

Content type: `application/json`

- `note`, string: Up to 2000 characters
- `files`, array of string: Up to 5 items
- `requestId`, string
- `answers`, array of object: Up to 20 items
  - `pointId`, string, required
  - `text`, string: Up to 2000 characters
  - `url`, string (URL)
  - `files`, array of string: Up to 5 items

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/sms/registrations/6bfebd43ddc270f6d2c56fc5/respond" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "note": "string",
  "files": [
    "string"
  ],
  "requestId": "62281f30b62a8870b34602a4",
  "answers": [
    {
      "pointId": "6c6fb5b5b7fd19c8e884d220"
    }
  ]
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/sms/registrations/6bfebd43ddc270f6d2c56fc5/respond", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    note: "string",
    files: [
      "string"
    ],
    requestId: "62281f30b62a8870b34602a4",
    answers: [
      {
        pointId: "6c6fb5b5b7fd19c8e884d220"
      }
    ]
  }),
});
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/sms/registrations/6bfebd43ddc270f6d2c56fc5/respond",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "note": "string",
        "files": [
            "string",
        ],
        "requestId": "62281f30b62a8870b34602a4",
        "answers": [
            {
                "pointId": "6c6fb5b5b7fd19c8e884d220",
            },
        ],
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `status`, string: One of `requested`, `rejected`

```json
{
  "status": "requested"
}
```
