Attest a User
Verify identity and issue on-chain attestations
This guide walks you through the end-to-end attestation flow — initiating KYC verification, creating an on-chain attestation, and verifying it.
Prerequisites
- An organization with chains enabled (Onboard an Organization)
- A user with a linked wallet
- An API key with
attestations:readandattestations:writescopes
1. Install and authenticate
2. Initiate KYC verification
Start the identity verification flow by selecting a verification level. The four levels are:
basic, standard, enhanced, and institutional.
The API returns 200 with the provider URL or token. Redirect the user to complete the
verification flow with the KYC provider.
3. Check KYC status
Poll the KYC status endpoint until verification completes:
4. Create attestation (self-service path)
Once the user is verified, create an on-chain attestation. This is the self-service path where the authenticated user attests their own wallet.
The API returns 202 Accepted — the attestation is queued for on-chain settlement. The
kycLevel defaults to the user’s verified level. You can also pass optional fields:
5. Create attestation (org-initiated path)
Organizations can attest members on their behalf. This is useful for institutional onboarding where the org has completed KYC outside of Clossir.
The API returns 202 Accepted. Omitting walletAddresses attests all wallets linked to
the user. Omitting chainEid attests on all chains where the user has wallets.
The self-service path (step 4) requires the user to have completed KYC at the requested level. The org-initiated path lets you attest members whose identity was verified outside of Clossir — for example, through your existing institutional KYC process.
6. Verify an attestation
Verify the cryptographic integrity of an attestation by checking its hash:
7. Listen for events
Three attestation event channels notify you of lifecycle changes:
See Subscribe to Webhooks for how to receive these events, or browse the full payload schemas in the API Reference.
Reference
- API Reference — operations and webhook payload schemas
- Identity — API — REST operations for identity
Next steps
- Define a Compliance Policy — set transfer rules for your assets
- Async Operations — polling and webhook correlation patterns