For every provider, Pods creates or reuses the internal Avenia subaccount, tracks the KYC attempt, and exposes one normalized status back to you.
Pods does not store Sumsub share tokens, full CPF, raw document images, base64 payloads, or address data. For every provider, Pods stores only the salted CPF hash and last four digits. BigDataCorp profiles also retain safe provider references, while every flow retains status fields and Avenia ids needed for audit and retry.
Architecture overview
1
Pods provisions your access
Pods sends your server-to-server API key, API base URL, Avenia partner token, and Avenia recipient client id.
2
Choose your provider
Use Sumsub share tokens when you already operate Sumsub. Use BigDataCorp iframe when you want Pods to open the document/liveness capture session.
3
Run provider capture
Sumsub users complete WebSDK in your app. BigDataCorp users complete the iframe URL returned by Pods.
4
Submit to Pods
Sumsub integrations submit the fresh share token. BigDataCorp integrations submit the completed profile with address data for Avenia.
5
Poll Pods status
When the Pods status becomes
approved, the user is approved for the Pods money movement products enabled in your integration.Before you start
Pods sends you these integration values:Avenia has no direct relationship with your company in this flow. Pods manages the Avenia relationship internally and gives you the Avenia values needed for Sumsub reusable identity sharing.
1. Configure the Sumsub level
Create an individual Sumsub verification level named exactly:

Required Sumsub steps
Add the identity document and selfie steps first.




Brazilian users
For Brazilian users, Avenia requires:- CPF in the Sumsub
TINfield. - Country of Tax ID set to Brazil.
- Full name.
- Date of birth.
- One identity document:
ID_CARD,PASSPORT,DRIVERS, orRESIDENCE_PERMIT. - Sumsub review answer
GREEN.
2. Add Avenia as a reusable identity recipient
Before generating reusable KYC share tokens, add Avenia as a recipient in Sumsub.- Go to
Reusable identity->Partners. - Open the
Recipientstab. - Click
Add recipient. - Enter the
AVENIA_PARTNER_TOKENprovided by Pods. - Save the recipient setup.



AVENIA_FOR_CLIENT_ID from Pods when generating share tokens. This is Avenia’s Sumsub recipient/client id. It is separate from the partner token and from your Pods API key.
Reference: Sumsub partner management.
3. Create a Sumsub app token
Create the Sumsub app token after Reusable Identity is enabled and after Avenia is added as a recipient. This order matters because the token must include permission to share applicant data.- Open Sumsub Dashboard.
- Go to
Dev space->App tokens. - Create a new app token.
- Ensure
Reusable Identity->Share applicants datais selected. - Save the token and secret key securely. Sumsub only shows the secret once.



A valid app token still requires active Sumsub credits/license. If Sumsub returns
license-key-exhausted or Not enough credit, ask Sumsub to enable credits for the target environment.4. Run WebSDK and confirm approval
Use your backend to create a Sumsub WebSDK access token for the applicant and mount WebSDK in your application. Use the samepods-kyc-level level name configured above.
Your backend must only continue to Pods after Sumsub reaches:
Reference:
5. Generate the Sumsub share token
After Sumsub returnscompleted + GREEN, your backend calls Sumsub to generate a fresh share token for that applicant and the Avenia recipient.
AVENIA_FOR_CLIENT_ID provided by Pods. Generate a fresh shareToken for each approved applicant import. Sumsub share tokens are short-lived and invalidated after usage.
Response:
6. Submit the share token to Pods
Send the fresh token from your backend to Pods. Pods does not store the share token. Pods validates the submitted CPF and imports the token for your customer-scoped Sumsub applicant. Pods stores only the salted hash and the last four digits, never the raw CPF. A CPF supplied in the request cannot prove that a new applicant owns an existing approved identity. Repeated submissions for the same applicant share one profile and one active import across API instances. If Avenia reports that the token was already imported into that subaccount, Pods checks that same subaccount for an existingCOMPLETED + APPROVED attempt before adopting it.
Pods generates the public
kycUserId and returns it in the response. Store this id in your backend and use it for future status checks.
Successful response:
rejected_retryable, send a fresh token with the same customer, sumsubApplicantId, CPF or tax ID, and linked wallet. Pods keeps the original kycUserId and Avenia subaccount, records the previous attempt id, and returns provider_pending for the new attempt. Concurrent retries share one active import. An existing attempt in created, provider_pending, rejected, or blocked is not reimported.
When the stored profile is already approved, a retry with the same sumsubApplicantId, customer, CPF or tax ID, and an already linked wallet returns the original kycUserId with status: approved. It creates no profile, imports no token, and does not change the approved profile’s contact or wallet fields. This also applies to legacy approvals copied from another profile or lacking import metadata. The share token remains required in the request but is not validated or consumed on this approved retry.
Pods trusts these identifiers from your authenticated integration; it does not query the provider to prove token ownership on an approved retry. Your backend must authenticate the end user and authorize their use of that KYC profile. The Pods API key authenticates your integration.
A conflicting CPF returns 409 SUMSUB_CPF_MISMATCH, and a conflicting tax ID returns 409 SUMSUB_TAX_ID_MISMATCH. An existing profile cannot gain a different wallet through this endpoint; it returns 409 SUMSUB_WALLET_MISMATCH. If the identity is already approved for your customer under another applicant, the request returns 409 KYC_VERIFIED_BINDING_REQUIRED without creating a profile. Retry the original applicant. An approved profile without a stored identity hash also returns this error because its identity cannot be matched. Matching a CPF does not authorize reuse across customers.
A provider_pending response means Avenia accepted an import for processing. Approval is final only when that applicant’s own Avenia attempt is approved. A duplicate-tax-ID rejection remains a rejection; status polling does not substitute another applicant’s approved KYC ID.
7. BigDataCorp provider flow
Use this flow when Pods will create the BigDataCorp iframe session and later submit the completed verification to Avenia.7.1 Create the iframe session
Your backend starts the BigDataCorp capture by sending CPF, email, and wallet address to Pods.restartExistingSession to true every time your app opens or retries the BigDataCorp WebView. Pods then creates a fresh iframe session in the same kycUserId, preventing a React Native WebView from rendering a cached URL from a previous attempt. Pods does not restart captures that already reached the Avenia submission stage or an approved state.
When restartExistingSession is omitted or false, Pods returns the same iframeUrl and iframeSessionId for an active BigDataCorp capture for up to seven minutes. After that window, or when BigDataCorp reports that the capture cannot continue, Pods creates a new session while keeping the same kycUserId.
Check requiresWebView before mounting a mobile WebView or iframe. When it is true, use iframeSessionId as the remount key. When it changes, discard the cached WebView instance before showing the new URL.
Successful response:
kycUserId in your backend. Your app should open iframeUrl for document and liveness capture.
Before opening an iframe, Pods checks approved BigDataCorp profiles for the same CPF hash. When exactly one known local profile is found, Pods immediately creates or updates your customer-scoped KYC profile with the existing Avenia IDs. If that cached profile does not have a valid birth date yet, Pods makes one account-info request to its known Avenia subaccount and caches only the normalized date. If no local profile is known, Pods performs a bounded Avenia subaccount scan while the CPF is still present in this request. When exactly one Avenia individual account has the same tax ID, a confirmed identity, and an approved completed KYC attempt, Pods creates or updates your customer-scoped KYC profile and returns status: "approved", a Pods-hosted completion iframeUrl, iframeSessionId: null, and requiresWebView: false. BRLA is enabled for this customer profile. This preserves compatibility with existing mobile WebViews: render the returned URL as usual, then poll the canonical status endpoint with the returned kycUserId. New integrations can use requiresWebView to avoid starting a BigDataCorp capture when it is false.
Pods hashes the CPF and stores only the hash and last four digits. The full CPF is not persisted. The Avenia scan runs only while the session request has the CPF in memory and is cached on an unfinished profile for seven minutes, so repeated requests do not repeatedly enumerate subaccounts. Each customer still receives its own KYC profile.
7.2 Poll the same status endpoint
While the user completes the iframe, poll:created or provider_pending status. When BigDataCorp has returned the captured images and identity data, providerResult becomes WAITING_ADDRESS_TO_SUBMIT_TO_AVENIA, and documentStatus, livenessStatus, and ageAtVerification are updated.
Provider-side values returned on the status endpoint:
Reset an unfinished BigDataCorp profile
Use Reset BigDataCorp KYC when an unfinished capture or retryable failure needs to be archived. Both email and wallet address must match one BigDataCorp profile belonging to your API key’s customer.kycUserId unavailable to status, submit, and currency-unlock requests. It does not contact BigDataCorp or Avenia, delete their data, or open another session. Call the normal sessions endpoint separately when you want to onboard again using the same CPF, email, and wallet. Its existing approved-Avenia-identity reuse behavior still applies.
Each request targets the currently matching active profile. Repeating the request after archival returns 404 unless a replacement profile has been created. Email is trimmed and lowercased, EVM wallet addresses are checksummed, and Solana wallet addresses preserve case.
Only created profiles without submission evidence and rejected_retryable profiles can be reset. Currency-enabled profiles, approved profiles, final rejections, blocked profiles, and submissions being processed cannot be reset. Known queued or running KYC tasks also prevent reset.
7.3 Submit completed BigDataCorp KYC to Avenia
After BigDataCorp capture is ready and the user is at least 18, submit the address data required by Avenia:
Pods fetches the required BigDataCorp images on demand, forwards them to Avenia, and moves the status to
provider_pending when Avenia accepts the submit. Before it creates a subaccount or uploads documents, Pods performs the same exact-CPF Avenia identity resolution used by the session endpoint. If one approved identity already exists, Pods links the current customer profile and returns the unchanged success response shape with status: "approved"; BRLA is enabled for the profile. Pods does not persist the address or raw images. A durable Pods background task keeps refreshing the Avenia attempt and writes the final KYC state even when your application stops polling. Continue polling the canonical status endpoint to update your user interface. If your UI retries while the Avenia submission is already running, Pods returns the current provider_pending state without sending duplicate documents or KYC requests.
If this endpoint returns 409 BIGDATACORP_CAPTURE_INCOMPLETE, the BigDataCorp capture is not ready to be sent to Avenia yet. Check error.details.providerResult: PENDING_CAPTURE means document or liveness images are still missing, PENDING_PROVIDER_REVIEW means the provider has not returned a final usable result yet, and PENDING_IDENTITY_DATA means required identity fields are missing. Keep polling the status endpoint until it returns WAITING_ADDRESS_TO_SUBMIT_TO_AVENIA.
Successful response:
409 AVENIA_IDENTITY_RECONCILIATION_REQUIRED and Pods persists the retryable diagnostic on the KYC profile. Poll the status endpoint to inspect the normalized result:
8. Poll KYC status
Avenia validation is asynchronous. Pods schedules a durable background monitor after a BigDataCorp submit is accepted, so the stored KYC status keeps progressing even when your client is offline. Poll Pods until the status reaches a terminal state to update your own UI. This is the canonical status endpoint for both Sumsub and BigDataCorp profiles. If you subscribe to it, Pods also pushes each status change to your webhook as aKYC_UPDATE event. Its data is the same object this endpoint returns, so you can stop polling once the profile is provider_pending.
walletAddress is the primary wallet (the one stored at session create). walletAddresses lists every wallet allowed to quote and ticket against this kycUserId. Link extras without creating a second KYC profile:
DELETE /api/v1/kyc/{kycUserId}/wallets/{walletAddress}. The last wallet cannot be removed. A wallet can belong to only one kycUserId per customer.
9. Use onramp and offramp quotes
Money movement routes are available only after KYC status isapproved.
The active integration uses Swap v2 quote routes. Send all requests from your backend with x-api-key; never expose PODS_API_KEY to a browser or mobile client.
Pix onramp: BRL to USDC on Base
Use this when a verified user pays Pix in BRL and receives USDC on Base. When you includedestinationAddress, the quote response includes Pix payment instructions directly.
Successful response:
paymentInstructions.pix.copyPaste to the user as the Pix copy-paste code. Use quote.feeBreakdown to display Pix, Pods/customer, and bridge or slippage charges. Top-level id is the Action id; poll status with quote.quoteId.
Pix offramp: USDC (Base or Monad) to BRL Pix
Use this when a verified user pays USDC on Base or Monad and receives BRL through Pix. The user must have anapproved KYC profile for the same originAddress. Pass originAddress and pixKey on the quote — the response includes transactionData ready to sign. The examples below use Base; for Monad, set originChain=monad and the Monad USDC address (chainId 143).
Successful response:
transactionData, in order, from originAddress on the selected origin chain (base → chainId 8453, monad → chainId 143; each transaction carries its own chainId). The first transaction transfers USDC to the returned depositAddress; the next transaction records the transfer for tracking. After Pods detects and collects the USDC payment, Pods creates the Avenia Pix payout to pixKey. Track with GET /v2/swap/status/{quote.quoteId}.
Pix to yield: BRL to a yield-bearing asset
Some routes deposit Pix BRL directly into a yield strategy instead of a plain token. The shape of the flow is identical to the plain Pix onramp above — only thetokenOut changes, from the plain token address to the strategy’s yield-bearing asset address (for example a vault share token such as <yield_asset> on <yield_chain>).
Successful response:
quote.tokenOut.decimals reflects the yield-bearing asset’s own decimals (for example 18 for a vault share token), not the underlying token’s decimals. quote.tokenOut.amount/expectedAmountOut is a raw share amount of <yield_asset>, not an underlying-token amount. Store it: it lets you reconstruct the exact deposited share amount later for a full yield-to-Pix withdraw.
There is no on-chain transaction for the user to sign on this side. After the Pix payment settles, Pods collects the BRL, converts it into the strategy’s underlying token, deposits into the strategy, and sends the resulting <yield_asset> shares to destinationAddress.
Yield to Pix: a yield-bearing asset back to BRL
Use this when a verified user wants to redeem a yield position and receive BRL through Pix. The input token is the yield-bearing asset itself (for example<yield_asset> on <yield_chain>), not the underlying token, and amountIn must be a raw share amount of <yield_asset> — not an underlying-token amount and not a principal/currentPosition value from the wallet endpoint (see Check yield position and profit below). For a full withdraw, use the wallet’s on-chain share balance, or the share amount stored from the deposit quote above.
Successful response includes
quote plus transactionData / chainId / id (same shape as the USDC offramp). Execute every transaction in transactionData, in order, from originAddress. The first transaction redeems <yield_asset> into the strategy’s underlying token and sends it directly to depositAddress; the next transaction records the transfer for tracking. Pods validates the redeem on-chain before creating the Avenia Pix payout to pixKey.
Check yield position and profit
For routes that hold a yield position, useGET /v2/wallets/{wallet} to read the strategy position instead of a plain token balance. Find the entry where strategy.id matches the strategy backing <yield_asset> on <yield_chain>.
spotPosition.currentPosition, principal, profit, and cumulativeProfit are all reported in the strategy’s underlying token terms (for example USDC), even though the wallet’s on-chain balance is held as <yield_asset> shares. Do not use any of these values as the amountIn share amount for a yield-to-Pix quote — they are reporting values, not share amounts. To withdraw the full position to Pix, use the wallet’s on-chain <yield_asset> share balance or the share amount stored from the original deposit quote.
If the user instead wants to exit the yield position into the underlying token on-chain (no Pix involved), use that strategy’s own withdraw bytecode endpoint, which takes an underlying-token amount rather than a share amount — see the yield strategy guides for details.
Use offramp to make a Pix payment to a third party
Use this when a verified user wants to convert USDC (Base or Monad) into a Pix payment sent to someone else, instead of paying themselves back. This is the same offramp flow as above, with two differences: setthirdParty=true on the quote, and pass the recipient’s Pix key in pixKey (normal offramp assumes pixKey belongs to the same person as originAddress; third-party offramp does not).
The response includes
transactionData like a normal offramp. Execute and track status the same way; only the recipient of the resulting Pix payout differs.
Track swap status
Track both quote flows with the Swap v2 status endpoint.
A settled Pix quote also returns
fiatSettlement (endToEndId, and refundEndToEndId when the Pix was refunded). See Pix receipt.
Reference: