# Verify a user's identity URL: /docs/guides/kyc-quickstart Verify a Brazilian user's identity with a document and a liveness check before they deposit or withdraw with Pix. Before a user can move reais in or out, they verify their identity once: their name, birth date and CPF, a photo of a document, and usually a liveness check (a short selfie video). Notus checks it with its providers and gives you back an identity id to use on every [Pix deposit and withdrawal](/docs/guides/ramp-quickstart). ## 1. Create a verification session [#1-create-a-verification-session] ```ts const { session, frontDocumentUpload, backDocumentUpload } = await notus.kyc.createStandardIndividualVerification({ firstName: 'Maria', lastName: 'Silva Santos', birthDate: '15/03/1990', documentId: '12345678901', documentCategory: 'DRIVERS_LICENSE', documentCountry: 'BRAZIL', livenessRequired: true, }) ``` - `documentId` is the user's CPF, digits only. - `birthDate` is `DD/MM/YYYY`. - `documentCategory` is `IDENTITY_CARD`, `DRIVERS_LICENSE` or `PASSPORT`. ## 2. Upload the document photos [#2-upload-the-document-photos] Each upload object holds a `url` and form `fields`. Post the file straight to that URL, with the fields first and the file last. Do it within 15 minutes; the file must be PNG or JPEG, up to 25 MB. ```ts async function upload(file: Blob, { url, fields }: { url: string; fields: Record }) { const form = new FormData() for (const [key, value] of Object.entries(fields)) form.append(key, value) form.append('file', file) const response = await fetch(url, { method: 'POST', body: form }) if (!response.ok) throw new Error(`Upload failed: ${response.status}`) } await upload(front, frontDocumentUpload) if (backDocumentUpload) await upload(back, backDocumentUpload) ``` ## 3. Run the liveness check [#3-run-the-liveness-check] When `livenessRequired` is `true`, show the liveness component in your app with the session id: [`@notus-api/react-sdk`](/docs/sdks/react) on the web, [`@notus-api/expo-sdk`](/docs/sdks/expo) on mobile. ```tsx processSession(session.id)} /> ``` ## 4. Process the session and read the result [#4-process-the-session-and-read-the-result] ```ts await notus.kyc.processVerificationSession({ sessionId: session.id }) const result = await notus.kyc.getVerificationSessionResult({ sessionId: session.id }) ``` Poll the result, or listen for the `kyc` [notification sent to your server](/docs/guides/webhook-overview), until it finishes: Poll the result, or listen for the `kyc` [webhook](/docs/guides/webhook-overview), until it settles: | Status | Meaning | |---|---| | `PENDING` | Waiting for uploads and processing. | | `PROCESSING`, `VERIFYING` | Being checked. | | `PENDING_MANUAL_REVIEW` | A person on the Notus team is reviewing it. | | `COMPLETED` | Approved. `individualId` is set. | | `FAILED` | Rejected; `failureReason` says why. | | `EXPIRED` | Not finished in time. Start a new session. | The approved session's `individualId` is the user's identity id. Save it: Pix quotes take it as `identityId`. ## After approval [#after-approval] - **Limits.** [Get Identity Financial Limits](/docs/api-reference/know-your-customer/getIdentityFinancialLimits) returns how much the user can still deposit, withdraw and pay with Pix QR codes. - **Providers.** Each payment provider approves the user separately. [Get Identity Providers](/docs/api-reference/know-your-customer/getIdentityProviders) shows each provider's status and the `action` to take: `NONE`, `WAIT`, or `REVERIFY` when the provider needs a new verification. Start one with [Create Individual Reverification](/docs/api-reference/know-your-customer/createIndividualReverification). - **Deletion.** [Delete Identity](/docs/api-reference/know-your-customer/deleteIdentity) removes an identity at the user's request. - **Limits.** [Get Identity Financial Limits](/docs/api-reference/know-your-customer/getIdentityFinancialLimits) returns how much the user can still deposit, withdraw and pay with Pix QR codes. - **Providers.** Each ramp provider approves the user separately. [Get Identity Providers](/docs/api-reference/know-your-customer/getIdentityProviders) shows each provider's status and the `action` to take: `NONE`, `WAIT`, or `REVERIFY` when the provider needs a new verification. Start one with [Create Individual Reverification](/docs/api-reference/know-your-customer/createIndividualReverification). - **Deletion.** [Delete Identity](/docs/api-reference/know-your-customer/deleteIdentity) removes an identity at the user's request. - **Enhanced** (`createEnhancedIndividualVerification`) raises a verified user's limits with proof of address, source of funds and the purpose of their transactions. It returns extra upload slots for those documents. - **Business** (`createStandardBusinessVerification`) verifies a company by CNPJ, with its documents and its owners' documents. The approved session returns a `businessId`, used as `identityId` the same way. - **Options on the standard session:** `nationality`; `preFlight: true` checks the CPF against the government database first and fails the session on a mismatch; `limits` sets custom monthly, daily or quarterly limits; `metadata`. The contact fields (`email`, `address`, `city`, `state`, `postalCode`, `phoneNumber`) go all together or not at all. - **Default monthly limits:** 50,000 for a standard individual, 100,000 enhanced, 500,000 for a business. Pix QR code payments: 2,000 a day and 500 per payment. - The older per-type routes (`…/standard/{sessionId}`, `…/standard/{sessionId}/process`) are deprecated; use the generic `verification-sessions` routes above.