> ## Documentation Index
> Fetch the complete documentation index at: https://www.vobiz.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload UCC proof (Beta)

> Upload opt-in consent proof for a UCC complaint in three steps: get a secure upload link, upload the file, then submit it for review.

> [!NOTE]
>
> This API is in beta. Changes might be possible. To enable it for your account, email [support@vobiz.ai](mailto:support@vobiz.ai).

Proof is a consent record showing the person agreed to receive your calls, dated within 6 months before the complaint. Uploading it moves the complaint to `under_review` and puts any planned block on hold.

Upload proof in three steps.

**1. Get an upload link**

Call [Create proof upload URL](https://www.vobiz.ai/docs/ucc-complaints/create-proof-upload-url.md).

```http theme={null}
POST https://api.vobiz.ai/api/v1/Account/{auth_id}/ndnc/complaints/{vobiz_urn}/proof/upload-url
```

| Field | Type | Required | Description |
| - | - | - | - |
| `file_name` | string | Yes | Name of your file, with its extension |
| `content_type` | string | Yes | The file's MIME type. It must match the extension |

```bash theme={null}
curl -X POST "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/ndnc/complaints/VUCC-000003/proof/upload-url" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "file_name": "consent.pdf", "content_type": "application/pdf" }'
```

```json Response - 200 OK theme={null}
{
  "upload_url": "https://...",
  "fields": {
    "key": "ndnc/uploads/VUCC-000003/1763640000000000000-consent.pdf",
    "Content-Type": "application/pdf",
    "policy": "...",
    "x-amz-signature": "..."
  },
  "max_bytes": 10485760,
  "s3_key": "ndnc/uploads/VUCC-000003/1763640000000000000-consent.pdf",
  "expires_at": "2026-11-21T09:45:00Z"
}
```

The link is valid for 15 minutes, until `expires_at`. Keep `s3_key` for step 3.

**2. Upload the file**

Send the file to `upload_url` as a form upload (`multipart/form-data`). Include every entry from `fields` as a form field, and add the file last as `file`. Don't send your Vobiz credentials to this URL.

```bash theme={null}
curl -X POST "$UPLOAD_URL" \
  -F "key=$KEY" \
  -F "Content-Type=application/pdf" \
  -F "policy=$POLICY" \
  -F "x-amz-signature=$SIGNATURE" \
  -F "file=@consent.pdf"
```

Pass every field returned in `fields` exactly as given; the example shows only some of them. Most HTTP libraries can build this form from the `fields` object directly.

**3. Submit it for review**

Call [Submit proof](https://www.vobiz.ai/docs/ucc-complaints/submit-proof.md).

```http theme={null}
POST https://api.vobiz.ai/api/v1/Account/{auth_id}/ndnc/complaints/{vobiz_urn}/proof
```

| Field | Type | Required | Description |
| - | - | - | - |
| `s3_key` | string | Yes | The `s3_key` from step 1 |
| `note` | string | No | A note for the Vobiz reviewer |

```bash theme={null}
curl -X POST "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/ndnc/complaints/VUCC-000003/proof" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "s3_key": "ndnc/uploads/VUCC-000003/1763640000000000000-consent.pdf", "note": "Opt-in collected on our website form" }'
```

The response is `201 Created` with the new proof, in the format shown in [Get a UCC complaint](https://www.vobiz.ai/docs/ucc-complaints/get-complaint.md#proof-fields). The complaint moves to `under_review`.

## File requirements

| Requirement | Value |
| - | - |
| File types | PDF, PNG, JPG, WEBP, CSV, XLSX |
| Maximum size | 10 MB |
| Content | Must match its file type. An empty file is refused |

## When you can upload

Check `can_upload` on the complaint before you start.

| Response | When |
| - | - |
| `409 deadline_passed` | The proof deadline has passed. Deadlines can't be extended |
| `409 invalid_state` | A proof is already under review, or the complaint doesn't accept proof in its current state |
| `400 validation_failed` | The file type isn't allowed, the type doesn't match the extension, the file hasn't been uploaded yet, or that upload was already submitted |
| `429 rate_limited` | More than 20 upload links in a minute |

If a proof is marked **incomplete**, you'll get an `ndnc.proof.incomplete` [callback](https://www.vobiz.ai/docs/ucc-complaints/callbacks.md#events) and can upload a new file the same way.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.