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

# Sub-Account KYC

> Verify customer_use sub-accounts with a Vobiz-hosted KYC session, then poll the aggregated KYC status until calls are unblocked. Includes a test mode.

A `customer_use` sub-account must complete its own KYC before it can place calls. Until it does, the sub-account is returned with `kyc_calls_blocked: true`. This section documents the per-sub-account KYC API used to drive that verification.

> [!NOTE]
>
> **Authentication:** Sub-account KYC endpoints authenticate as the **parent main account** that owns the sub-account (or an admin), using your account's `X-Auth-ID` and `X-Auth-Token` headers - the same credential pair used everywhere else in the API:
>
> ```
> X-Auth-ID: {auth_id}
> X-Auth-Token: {auth_token}
> ```

## When KYC applies

| `kyc_mode` | KYC required? | Notes |
| - | - | - |
| `personal_use` *(default)* | No | The sub-account inherits the parent account's KYC. |
| `customer_use` | Yes | The sub-account must verify itself. Requires an `email`. Fresh sub-accounts start with `kyc_calls_blocked: true`. |

Set `kyc_mode` at [creation](https://www.vobiz.ai/docs/sub-accounts/create-subaccount.md) or [promote an existing sub-account](https://www.vobiz.ai/docs/sub-accounts/update-subaccount.md).

## Verification paths

There are two ways to complete KYC for a `customer_use` sub-account:

> [card] [Initialize KYC](https://www.vobiz.ai/docs/sub-accounts/kyc/kyc-session.md)
>
> Hand the customer a Vobiz-hosted link (email) or redirect them inline to the hosted widget. The widget collects PAN, GST, CIN, or Aadhaar via DigiLocker as the entity requires.

> [card] [KYC status](https://www.vobiz.ai/docs/sub-accounts/kyc/kyc-status.md)
>
> Poll the aggregated status and the `kyc_calls_blocked` gate while the customer completes verification.

## Document requirements by entity

The hosted widget asks the customer for the documents their entity type requires:

| Entity (`business_type`) | Typical documents |
| - | - |
| `individual`, `proprietorship`, `huf` | PAN + Aadhaar (via DigiLocker) |
| `private_limited`, `public_limited`, `llp`, `partnership` | PAN + GST and/or CIN |
| `trust`, `society`, `government` | PAN + supporting registration (CIN/GST as applicable) |

## How the call-blocking gate works

Each verification persists a `kyc_verifications` row and recomputes the sub-account's aggregated KYC state. The aggregated [status](https://www.vobiz.ai/docs/sub-accounts/kyc/kyc-status.md) exposes:

* `overall_status` - `not_started` → `pending` → `verified` / `failed`.
* `verifications` - the per-document state (`pan`, `gst`, `cin`, `aadhaar`), each `not_started` / `pending` / `verified` / `failed`.
* `kyc_calls_blocked` - the gate. While `true`, the sub-account's calls are rejected; it flips to `false` once the documents its `business_type` requires are `verified`.

A single `failed` document leaves `kyc_calls_blocked: true`. Create a new session so the customer can resubmit that document with corrected details.

## Create → KYC → unblock recipe

1. **Create** a `customer_use` sub-account with an `email` and a `business_type`. It returns `kyc_calls_blocked: true`. ([Create](https://www.vobiz.ai/docs/sub-accounts/create-subaccount.md))
2. **Initialize KYC** - authenticate as the **parent**, with the sub-account in the path, and [create a hosted session](https://www.vobiz.ai/docs/sub-accounts/kyc/kyc-session.md). Email the customer a signed link or redirect them to the widget, and listen for [webhooks](https://www.vobiz.ai/docs/sub-accounts/kyc/email-flow-webhook.md) to learn the outcome.
3. **Poll** [KYC status](https://www.vobiz.ai/docs/sub-accounts/kyc/kyc-status.md) until `kyc_calls_blocked` is `false`.
4. The sub-account can now place calls with **its own** credentials. See the full [onboarding flow](https://www.vobiz.ai/docs/sub-accounts/onboarding-flow.md).

## Endpoints

| Method | Endpoint | Description |
| - | - | - |
| GET | `/sub-accounts/{sub_auth_id}/kyc/status` | Aggregated KYC state |
| POST | `/sub-accounts/{sub_auth_id}/kyc-sessions` | Initialize KYC (hosted session) |

> [!TIP]
>
> Building an integration? Use [Test Mode](https://www.vobiz.ai/docs/sub-accounts/kyc/test-mode.md) to drive `verified` / `failed` / `pending` outcomes with magic inputs - no real documents and no calls to the upstream provider.


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