# Resubmit a declined number

Resubmits a declined number.

```http
POST https://api.pozy.ai/v1/whatsapp/phone-numbers/{id}/remediate
```

- Area: WhatsApp / WhatsApp Phone Numbers
- Auth: Authorization: Bearer pz_live_...
- Deprecated

## Path parameters

- `id` (string, required)

## Request body

Content type: `application/json`

- `values`, map of string
- `documents`, array of object
  - one of: Option 1
    - `requirementId`, string, required
    - `filename`, string, required
    - `base64`, string, required
  - one of: Option 2
    - `requirementId`, string, required
    - `documentId`, string, required
- `address`, object

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/whatsapp/phone-numbers/6bfebd43ddc270f6d2c56fc5/remediate" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "values": {
    "key": "string"
  },
  "documents": [
    {
      "requirementId": "6296509a322aab288a61cc5d",
      "filename": "photo.jpg",
      "base64": "string"
    }
  ],
  "address": {}
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/whatsapp/phone-numbers/6bfebd43ddc270f6d2c56fc5/remediate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    values: {
      key: "string"
    },
    documents: [
      {
        requirementId: "6296509a322aab288a61cc5d",
        filename: "photo.jpg",
        base64: "string"
      }
    ],
    address: {}
  }),
});
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/whatsapp/phone-numbers/6bfebd43ddc270f6d2c56fc5/remediate",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "values": {
            "key": "string",
        },
        "documents": [
            {
                "requirementId": "6296509a322aab288a61cc5d",
                "filename": "photo.jpg",
                "base64": "string",
            },
        ],
        "address": {},
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `status`, string
- `phoneNumber`, object
  - `id`, string
  - `status`, string

```json
{
  "status": "active",
  "phoneNumber": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "status": "active"
  }
}
```
