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

# KYC integration prompt

> A copyable prompt that walks a coding agent through a sandbox KYC integration with the Gu1 API.

Prompt version: **2026-11-30**.

Paste the block below into a coding agent. It uses only public Gu1 docs. The API key stays on your server.

> [!WARNING]
>
> Never put a Gu1 API key in a frontend, a mobile app, or a repository. Create the person and the validation from your backend.

```text theme={null}
Prompt version: 2026-11-30

Integrate Gu1 KYC in sandbox, end to end, using only these public pages. Do not invent endpoints, fields, or secrets.

Docs:
- https://docs.gu1.ai/en/api-reference/authentication
- https://docs.gu1.ai/en/api-reference/person/create
- https://docs.gu1.ai/en/use-cases/kyc/create-validation
- https://docs.gu1.ai/en/use-cases/kyc/sandbox-mock-data
- https://docs.gu1.ai/en/use-cases/kyc/check-status
- https://docs.gu1.ai/en/use-cases/kyc/webhook-integration

Rules:
- Use a sandbox API key. Send it only from the server, as Authorization: Bearer, or as X-API-Key. Never in the query string, never in frontend code, never committed.
- Base URL is https://api.gu1.ai unless the dashboard shows a dedicated base URL for that organization.
- Create a person with POST /entities (type person). For an approved sandbox result, use taxId 99990001. See the sandbox mock page for other outcomes.
- Create the validation with POST /api/kyc/validations. Body includes entityId and integrationCode global_gueno_validation_kyc, as documented.
- The create call returns pending. The final status arrives on the webhook. Read it with GET /api/kyc/validations/:id. Do not poll in a tight loop.
- Handle kyc.validation_approved and kyc.validation_rejected. Verify the webhook signature the way the webhook page describes.
- Stop when a sandbox person is created, a validation is created, and a webhook or a status read shows the mock outcome.
```

See the [KYC overview](https://docs.gu1.ai/en/use-cases/kyc/overview.md) for the same flow in prose.


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