> ## 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.

# Vobiz UCC Complaints API (Beta)

> Read the UCC (NDNC) complaints raised against your Vobiz numbers, upload opt-in proof before the deadline, and receive signed callbacks for every complaint and block event.

> [!NOTE]
>
> **This API is in beta.** Changes might be possible. To enable UCC complaints for your account, email [support@vobiz.ai](mailto:support@vobiz.ai?subject=Enable%20UCC%20complaints).

The Vobiz UCC Complaints API gives you the same tools as the **UCC complaints** pages in the Vobiz Console. You can read the complaints raised against your numbers, upload opt-in proof, and get updates on your own server.

For the rules behind UCC complaints in India, see [UCC management](https://www.vobiz.ai/docs/compliance/india/ucc.md).

## How it works

**1. A complaint is recorded**

When a telecom operator reports a UCC complaint, Vobiz finds the call and the number on your account that made it. The complaint appears in your account with a proof deadline.

**2. You're notified**

You get an email, and a [callback](https://www.vobiz.ai/docs/ucc-complaints/callbacks.md) if you've set one up.

**3. You upload proof**

[Upload opt-in proof](https://www.vobiz.ai/docs/ucc-complaints/upload-proof.md) before the deadline: a consent record showing the person agreed to receive your calls, dated within 6 months before the complaint. The complaint moves to `under_review`.

**4. Vobiz reviews it**

The Vobiz compliance team accepts the proof, rejects it, or marks it incomplete. If it's incomplete, you can upload again.

**5. Blocks, if no valid proof arrives**

If there's no valid proof by the deadline, the number is blocked for 15 days. Blocks are paused while your proof is under review, and cancelled when it's accepted. If 5 different people complain about your account within 10 days, the whole account can be blocked.

> [!WARNING]
>
> **Proof deadlines can't be extended.** Use the [dashboard](https://www.vobiz.ai/docs/ucc-complaints/get-dashboard.md) or callbacks to see new complaints as soon as they arrive.

## Authentication

The API uses your account's **Auth ID** and **Auth Token**, the same credentials as every other Vobiz API. Find them under **API keys** in the [Vobiz Console](https://console.vobiz.ai).

| Header | Required | Value |
| - | - | - |
| `X-Auth-ID` | Yes | Your Auth ID, for example `MA_XXXXXXXX` |
| `X-Auth-Token` | Yes | Your Auth Token |
| `Content-Type` | For requests with a body | `application/json` |

## Base URL

```text theme={null}
https://api.vobiz.ai/api/v1/Account/{auth_id}/ndnc
```

* `{auth_id}` must be the account you authenticate as. A different account in the URL returns `403`.
* Sub-accounts (`SA_...`) use their own Auth ID and Auth Token, and see only their own complaints.
* A main account also sees its sub-accounts' complaints. Vobiz can set your account to show only complaints about the main account's own numbers. In that case, sub-account complaints, emails and callbacks go to the sub-account only.

## Endpoints

| Method | Path | What it does |
| - | - | - |
| `GET` | [`/dashboard`](https://www.vobiz.ai/docs/ucc-complaints/get-dashboard) | Summary counts, the next deadline and the complaint limit |
| `GET` | [`/complaints`](https://www.vobiz.ai/docs/ucc-complaints/list-complaints) | List complaints, newest first |
| `GET` | [`/complaints/{vobiz_urn}`](https://www.vobiz.ai/docs/ucc-complaints/get-complaint) | One complaint, with the proofs uploaded for it |
| `POST` | [`/complaints/{vobiz_urn}/proof/upload-url`](https://www.vobiz.ai/docs/ucc-complaints/create-proof-upload-url) | Get a secure link to upload a proof file |
| `POST` | [`/complaints/{vobiz_urn}/proof`](https://www.vobiz.ai/docs/ucc-complaints/submit-proof) | Submit the uploaded file for review |
| `GET` `PUT` `DELETE` | `/webhook` | [Get](https://www.vobiz.ai/docs/ucc-complaints/get-callback-url.md), [set](https://www.vobiz.ai/docs/ucc-complaints/set-callback-url.md) or [delete](https://www.vobiz.ai/docs/ucc-complaints/delete-callback-url.md) your callback URL |
| `POST` | [`/webhook/test`](https://www.vobiz.ai/docs/ucc-complaints/send-test-event) | Send a test event to your callback URL |
| `GET` | [`/webhook/deliveries`](https://www.vobiz.ai/docs/ucc-complaints/list-callback-deliveries) | See recent callback deliveries |

## Complaint states

Each complaint has a `state`, matching the tabs on the **UCC complaints** page in the console:

| State | Meaning |
| - | - |
| `proof_needed` | Waiting for your proof |
| `under_review` | Proof submitted, being checked by Vobiz |
| `overdue` | The deadline passed without valid proof |
| `accepted` | Your proof was accepted |
| `rejected` | Your proof was rejected |
| `closed` | No further action is needed |

## Data format

* Times are in UTC (ISO 8601).
* Phone numbers are in E.164 format, for example `+919876543210`.
* Each complaint has a Vobiz reference (`vobiz_urn`) such as `VUCC-000003`. Use it in every complaint URL.

## Errors

Errors return a JSON body with a `code` and a `message`. Validation errors also list the fields that failed:

```json theme={null}
{
  "error": {
    "code": "validation_failed",
    "message": "invalid state",
    "details": [{ "field": "state", "issue": "one of proof_needed, under_review, overdue, accepted, rejected, closed" }]
  }
}
```

| HTTP | Code | Meaning |
| - | - | - |
| `400` | `validation_failed` | A parameter or field is invalid |
| `401` | | Missing or wrong Auth ID or Auth Token |
| `403` | | The account in the URL isn't yours |
| `403` | `ndnc_not_enabled` | UCC complaints isn't enabled for your account. Email [support@vobiz.ai](mailto:support@vobiz.ai) to enable it |
| `404` | `not_found` | The complaint or callback doesn't exist, or isn't yours |
| `409` | `deadline_passed` | The proof deadline has passed |
| `409` | `invalid_state` | Proof can't be uploaded in the complaint's current state, for example while a proof is under review |
| `429` | `rate_limited` | Too many requests in a minute. Wait and try again |

## Related

> [card] [UCC management](https://www.vobiz.ai/docs/compliance/india/ucc.md)
>
> NDNC, UCC complaints and TRAI enforcement in India.

> [card] [Validating callbacks](https://www.vobiz.ai/docs/concepts/validating-callbacks.md)
>
> Check that a callback really came from Vobiz.


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