Skip to main content
Build and test your KYC integration before going live. The Pods sandbox lets you simulate approvals, rejections, and retries so you can verify how your application handles each outcome.

Choose your integration

All integrations use the same status endpoint to track the applicant’s progress.
What you can test Test your backend integration, application responses to KYC outcomes, and retry handling. Identity verification is simulated. Hosted sandbox links do not open a document-upload or liveness flow, and sandbox approval in the staging environment is limited to testing and has no bearing on production approval.

Before you start

You’ll need:
  • Your staging Pods API URL and customer API key, provided by Pods.
  • Applicant details: a test-generated CPF with valid formatting and check digits (not linked to a real person), a test-only email and wallet address.
  • Node.js 20 or later to run the examples using built-in fetch.
  • For hosted KYC: Sandbox does not returns a real verification link. Document and liveness checks are skipped in the sandbox and performed only in production.

Prepare test identities

You can generate a CPF for testing with the 4Devs CPF generator. Select “Não” under “Gerar com pontuação?” to generate the digits-only format used in these examples. Generated numbers follow CPF validation rules; they are test inputs, not verified identities. Use a fresh test identity for each independent scenario. Preserve the same identity when testing a retry.

Set up the Node.js client

Run these examples on your backend. Configure PODS_API_BASE_URL and PODS_API_KEY in your environment with the staging values provided by Pods. Save this helper as pods-client.mjs:
The examples below use ES modules and top-level await. Save them as .mjs files alongside the helper.

KYC status reference

These are the statuses used by the sandbox flows:

Option 1: Shared-token KYC

Choose this path if your application already integrates with Sumsub. The sandbox accepts the same submission request as the production shared-token flow. To test Pods, use any non-empty share token and applicant ID: the sandbox does not validate these values with Sumsub. If you also want to exercise your own token-generation code, use values from your Sumsub sandbox account. See Sumsub setup.

1. Submit an applicant

Expected response:
provider_pending means the applicant is awaiting a review outcome. Save kycUserId to track this profile and submit sandbox transitions. For the passport path, the request also accepts taxId and optional taxIdCountry instead of cpf. At least one of cpf or taxId is required.

2. Simulate approval

Continue in the same script:
Relevant response fields:
approved means the attempt passed KYC review. In this simulation, brlaEnabled: true represents the enabled Brazil capability.

3. Confirm the result in your application

Your application should check both the review outcome and the required capability flag. You’ve completed the shared-token approval path. To test rejection and recovery, create a separate scenario with a fresh test identity.

Option 2: Pods Hosted KYC

Choose this path if you want Pods to create the verification session without managing your own Sumsub integration. In production, your application opens the verification link returned by Pods. In the sandbox, the link is a placeholder; the following requests simulate review and approval.

1. Create a hosted session

Start a separate script:
Expected response:
created means the session exists, but review has not started. The response follows the production structure. For this sandbox test, continue with the API requests below instead of opening the placeholder link. If you include redirectUrl in the request, it must match a URL allowlisted for your customer.

2. Simulate the start of review

The profile moves from created—a session awaiting review—to provider_pending, meaning review is pending.

3. Simulate approval

approved means the attempt passed KYC review. The sandbox also sets the mock Brazil capability to brlaEnabled: true.

4. Confirm the result in your application

You’ve completed the hosted approval path. Use a fresh test identity for a separate rejection or retry scenario.

Option 3: External evidence KYC

Choose this path if your application already performs liveness and document capture with its own providers. The sandbox accepts the same requests as the production external evidence flow. In the sandbox, Pods validates the submission exactly as in production: the liveness threshold, the CPF in the extracted document data, the image format, and the document sides. The ramp provider is mocked, so no image is uploaded, the submit answers right away instead of taking about 20 seconds, and the provider never rejects during the submit. The review outcome comes only from the sandbox transitions below.

1. Create a session

Start a separate script:
Expected response:
created means the session exists and no evidence has been submitted yet. Repeating this request for the same CPF returns the same kycUserId with "existing": true.

2. Submit the evidence

Image content does not matter in the sandbox, but the format does: Pods reads it from the bytes, so each image must start like a JPEG or PNG. This placeholder is enough:
provider_pending means the evidence was accepted and is awaiting the review outcome. Repeating the submit while the profile is provider_pending returns the current state and changes nothing, as in production. RG and CNH need both sides; a PASSPORT must not send back. Getting this wrong returns 422 DOCUMENT_BACK_REQUIRED or 422 DOCUMENT_BACK_NOT_ALLOWED, as in production. The same placeholder works for every image: the front, the back and the liveness selfie. Images sent as url follow the same rules as production, including the host allowlist for your environment.

3. Simulate approval

The profile is already provider_pending after the submit, so there is no separate step to start the review. Sending the provider_pending transition changes nothing.

4. Confirm the result in your application

You’ve completed the external evidence approval path. Use a fresh test identity for a separate rejection or retry scenario.

Test rejection and retries

Start each scenario with a new applicant and bring the profile to provider_pending, meaning it is awaiting a review outcome:
  • Shared-token: submit the applicant.
  • Hosted: create the session, then simulate the start of review.
  • External evidence: create the session, then submit the evidence.
Choose one of the following outcomes for that attempt.

Simulate a final rejection

rejected means the attempt received a final rejection and is not eligible for the retry flow below. The response includes:
Verify that your application displays the rejection outcome without offering this retry flow. In the sandbox, every rejection uses the generic VERIFICATION_REJECTED or VERIFICATION_RETRY_REQUIRED code. The detailed external evidence codes, such as LIVENESS_FACE_MISMATCH, come only from a real provider review.

Simulate a retryable rejection

Use a separate pending attempt:
rejected_retryable means this attempt failed verification, but the applicant can retry through the appropriate integration flow. Relevant response fields:
Here, providerStatus: "COMPLETED" means the provider’s review finished, and providerResult: "REJECTED" means that review failed. The public status and reason.retryable indicate that another attempt is allowed.

Retry a shared-token submission

Keep the original applicant details and submit a new share token:
The profile keeps its kycUserId and returns to provider_pending, meaning the new attempt is awaiting review. Reusing the previous token leaves the profile in rejected_retryable, meaning the failed attempt still requires a retry. Changing the applicant ID, email, wallet, or tax identity returns 409 KYC_SUBMISSION_BINDING_MISMATCH.

Retry a hosted session

Reset the eligible hosted attempt:
Reset preserves kycUserId and returns the profile to created, meaning a session exists but review has not started. It also issues another placeholder verification link. Hosted reset is limited to three attempts per profile and is available only before Avenia import. A profile with an existing Avenia account link cannot use this route, even if its status is rejected_retryable—a rejection that otherwise permits another attempt.

Retry an external evidence submission

Submit the evidence again on the same kycUserId:
The profile keeps its kycUserId and returns to provider_pending with a new attempt. Do not create a new session: it returns the same one. Only rejected_retryable accepts a new submission. After rejected or approved, the submit returns the current state.

State transitions

Shared-token KYC

Hosted KYC

External evidence KYC

Troubleshooting and reference

Additional behavior:
  • Shared-token submissions begin in provider_pending—awaiting review. Repeating that sandbox transition leaves the existing attempt unchanged.
  • Hosted profiles move from created—session ready—to provider_pending—awaiting review—once per attempt. Repeating that transition is invalid.
  • Creating another hosted session for the same CPF may return the existing profile and link.
  • Hosted reset may return the same placeholder URL text. Track the attempt through the profile status.
  • Hosted sandbox transitions accept only mock hosted profiles. Real Sumsub applicants are not eligible.
  • An external evidence submit lands directly in provider_pending. Status reads and repeated submits never change a sandbox profile.
  • A CPF approved in the sandbox under another customer is not reused for your profile; your attempt still waits for your own transition.

Prepare for production

Before moving beyond the sandbox, verify that your application:
  • Handles successful reviews, final rejections, and retryable rejections.
  • Preserves applicant identity during retries.
  • Checks the required capability flag as well as the KYC status.
  • Generate or use a production Pods API key.
  • Keeps the Pods API key on the backend.
Continue with the production guide for your integration:
  • Sumsub reusable KYC: configure your Sumsub integration and submit real share tokens.
  • Pods Hosted KYC: configure hosted access and redirects, and integrate the actual verification page.
  • External evidence KYC: submit real captured evidence and handle the detailed rejection codes.
Production outcomes come from the verification process; sandbox transition endpoints are not available there. Coordinate production access and customer configuration with Pods before launch.