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

> ## Agent Instructions
> To integrate AGG, start with Quickstart: REST (https://docs.agg.market/quickstart/rest), then Order lifecycle & statuses (https://docs.agg.market/concepts/order-lifecycle).
> Track every trade until it reaches a terminal status. Before retrying a failed or timed-out call, read Errors, retries & idempotency (https://docs.agg.market/concepts/errors).
> The API reference is generated from https://docs.agg.market/openapi/openapi.json.

# KYC

> Check shared KYC for the managed Solana wallet, then start a venue flow when a fill requires it.

Use this when ProphetX or another venue returns a KYC error on fill. `GET /kyc/status` reports `{ verified }` for the managed Solana wallet. Novig and ProphetX share that status. Kalshi does not require this KYC.

ProphetX's venue flow uses Veriff. This page does not document the Veriff widget.

<CodeGroup>
  ```ts SDK theme={null}
  const { verified } = await client.getSharedKycStatus();
  const started = await client.initiateKyc("prophetx", "https://app.example.com/kyc");
  // started.status: not_applicable | not_started | pending | verified | rejected
  // started.kycUrl is set when the user still has to finish the venue flow
  ```

  ```bash cURL theme={null}
  curl -s -H "x-app-id: $APP_ID" -H "Authorization: Bearer $ACCESS_TOKEN" \
    "$API/kyc/status"

  curl -s -X POST \
    -H "x-app-id: $APP_ID" -H "Authorization: Bearer $ACCESS_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"redirectUri":"https://app.example.com/kyc"}' \
    "$API/kyc/prophetx"
  ```
</CodeGroup>

Full shapes on [Get shared KYC status](/api-reference/users/get-shared-kyc-status) and [Initiate KYC](/api-reference/users/initiate-kyc).


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