Initialize sub-account KYC
create_sub_account_kyc_sessionStart a Vobiz-hosted KYC session for a sub-account via email link or redirect widget, then track verification progress.
Instructions
Start a Vobiz-hosted KYC session for a sub-account. flow_type email (default) has Vobiz email the customer a secure verification link (customer_email required); flow_type redirect returns a widget_url to send the customer to (redirect_url required). Optional webhook_url receives KYC events. Returns the session record (widget_url for the redirect flow) and a next_step hint; track progress with get_sub_account_kyc_status. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true; needs main-account (MA_) credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true, set only after the user explicitly approved: starting KYC for this sub-account (the email flow emails the customer). | |
| flow_type | No | email (default): Vobiz emails the customer a verification link. redirect: you send the customer to the returned widget_url yourself. | |
| sub_auth_id | Yes | The sub-account's Auth ID (SA_...), from list_sub_accounts. | |
| webhook_url | No | Public https endpoint that receives KYC events. Omit for no callbacks. | |
| redirect_url | No | Required for flow_type redirect: where the customer's browser goes after verification (public https). | |
| customer_email | No | Required for flow_type email: Vobiz sends the KYC link here. | |
| expires_in_days | No | Days until the link expires (Vobiz default 7). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | true on success; false (with error and message) when the tool failed. | |
| created | No | true once the KYC session exists. | |
| session | No | The KYC session as Vobiz returns it (session id, flow_type, expiry, and widget_url for the redirect flow); secrets removed. | |
| next_step | No | What to do now: wait for the customer's email, or send them to widget_url. | |
| http_status | No | HTTP status Vobiz answered with. |