Compliance API
The customer-scoped API for onboarding status, KYC SDK sessions, and wallet registration. Every route resolves the caller from the bearer token, never from a parameter.
The Compliance API provides a narrow self-service surface for the signed-in customer. A partner BFF forwards the customer's Assetera access token; the browser does not call the API with a bearer token.
Customer-facing surface
| Method | Path | Purpose | Needs completed KYC |
|---|---|---|---|
GET | /api/kyc/me/status | Read the caller's current onboarding status. | No |
GET | /api/kyc/me/profile | Read the caller's permitted profile projection. | No |
POST | /api/kyc/session | Start or resume a MetaKYC SDK session for the caller. | No |
GET | /api/wallet/challenge | Create a one-time wallet-ownership challenge. | Yes |
POST | /api/wallet | Register a wallet after the customer signs the challenge. | Yes |
GET | /api/wallet | List the caller's registered wallets and current status. | No |
GET | /api/wallet/:address?chain=... | Read one caller-owned wallet. | No |
These routes are subject-scoped. They do not accept an arbitrary user ID for reading another customer's
record. A route that needs completed KYC answers 403 with the code Wallet.KycRequired until the
caller is verified.
Read onboarding status server-side
The status response separates authentication from onboarding. A valid login does not by itself enable a regulated action. Use the current API response for UX, and rely on the destination API to enforce the action again server-side.
Start a MetaKYC session
POST /api/kyc/session resolves the user from the bearer token. In a direct MetaKYC SDK integration, use
the same Assetera Identity sub as externalRefId. See KYC integration.
Return only the short-lived SDK token and applicant reference needed by the browser component. Never return the customer's general Assetera access token or the partner's MetaKYC keys.
Wallet registration
A client can receive an instrument only in a registered and approved wallet. Registration takes three calls. Make all three from your server with the client's own Assetera access token. The browser never calls the Compliance API.
Adding a wallet needs completed KYC. Until GET /api/kyc/me/status returns "verified": true, the
challenge and the registration answer 403 Wallet.KycRequired. Send the client to identity verification
first, and offer "add wallet" only after it is complete. Reading the wallets does not need completed KYC,
so a client whose verification lapses still sees the wallets they already have.
| Step | Call | Result |
|---|---|---|
| 0. Check KYC | GET /api/kyc/me/status | verified must be true |
| 1. Get a challenge | GET /api/wallet/challenge?address=...&chain=... | A one-time message for the wallet to sign |
| 2. Register | POST /api/wallet | The registered wallet and its first status |
| 3. Read the status | GET /api/wallet | Every wallet of the client, with its status |
The step-by-step build, with code for both kinds of wallet, is in Register a client's wallet.
Public partner documentation intentionally does not describe screening vendors, rule logic, thresholds, review queues, or monitoring procedures. Integrate against the status contract and the error codes on this page.
Request a challenge
GET /api/wallet/challenge?address=0x52908400098527886E0F7030069857D2E4169EE7&chain=eip155:80002
Authorization: Bearer <client access token>| Parameter | Required | Value |
|---|---|---|
address | yes | The EVM address, 0x and 40 hex characters, in any letter case. |
chain | yes | The CAIP-2 id of the chain the instrument is delivered on, for example eip155:80002. |
Decide chain on your server from the instrument you sell. Do not take it from the network the browser
wallet shows. The registration records the wallet for this chain.
{
"message": "By signing this message, I hereby confirm that I am the sole owner and have full control over this wallet address.\n\nWallet: 0x52908400098527886e0f7030069857d2e4169ee7\nChain: eip155:80002\nNonce: 9f1c...\nIssued At: 2026-10-08T09:00:00.0000000Z\nExpires At: 2026-10-08T09:10:00.0000000Z",
"nonce": "9f1c...",
"expiresAt": "2026-10-08T09:10:00.0000000Z"
}| Rule | Detail |
|---|---|
| Sign the message unchanged | Pass message to the wallet as it is. Do not parse it or build it yourself. |
| Signature type | EIP-191 personal_sign. A contract wallet (EIP-1271) cannot register this way. |
| Bound to the request | The challenge is valid only for this client, this address and this chain. |
| Single use | A successful signature check uses it up. A new request for the same address and chain replaces the old one. |
| Time limit | It expires after 10 minutes, at expiresAt. |
Register the wallet
POST /api/wallet
Authorization: Bearer <client access token>
Content-Type: application/json{
"address": "0x52908400098527886E0F7030069857D2E4169EE7",
"chain": "eip155:80002",
"proof": {
"message": "<the message from the challenge, unchanged>",
"signature": "0x<65-byte signature as hex>"
},
"provider": "external",
"connectorId": "io.metamask"
}| Field | Required | Value |
|---|---|---|
address | yes | The address from the challenge. |
chain | yes | The chain from the challenge. |
proof.message | yes | The challenge message, unchanged. |
proof.signature | yes | The wallet's personal_sign signature over proof.message, as 0x hex. |
provider | no | "assetera" for the Assetera Wallet, "external" for any other wallet. |
connectorId | no | A machine id of the wallet software, for example a wagmi connector id or an EIP-6963 rdns (io.metamask). Letters, digits, ., - and _, at most 64 characters. Ignored when provider is "assetera". |
Assetera checks KYC again at registration, so a challenge issued before the client's verification lapsed
does not register a wallet. Then it checks that the signature comes from address, records the
wallet for the client and screens it in the same call. The answer often carries the final status already. If it says screening, read the
list until the status changes.
{
"address": "0x52908400098527886e0f7030069857d2e4169ee7",
"chain": "eip155:80002",
"status": "approved",
"screenedAt": "2026-10-08T09:00:04Z",
"addedAt": "2026-10-08T09:00:03Z",
"provider": "external",
"connectorId": "io.metamask",
"isActive": false
}One address belongs to one Assetera account, on every EVM chain. A client can register the same address on more than one chain.
List the wallets
GET /api/wallet returns the client's wallets as a JSON array, in the shape above. Read it to show the
wallets, and read it again while a status is new or screening.
| Field | Meaning |
|---|---|
address | The address, in lower case. |
chain | The CAIP-2 chain the wallet is registered for. |
status | See Wallet statuses. |
screenedAt | When the current status was set. null while there is no result. |
addedAt | When the wallet was registered. |
provider, connectorId | The values sent at registration. null when none were sent. |
isActive | true for the wallet the client trades with, at most one address per chain family. Set only in this list. |
GET /api/wallet/:address?chain=... returns one wallet of the client. It answers 404 for an address
that is not the client's.
Wallet statuses
status | Meaning | What your site shows |
|---|---|---|
new | Registered. Screening has not started. | In review. Read the list again. |
screening | Screening is in progress, or there is no result yet. | In review. Read the list again. |
approved | The wallet passed screening. | Ready. Offer it as a delivery wallet. |
rejected | Assetera does not accept this wallet. | This wallet cannot be used. The client can contact support. |
severe | Screening found a severe risk. | This wallet cannot be used. The client can contact support. |
Only approved can receive an instrument. Assetera checks the status again at purchase, so an
approved wallet can still change status later. Treat any status that is not in this table as not
approved. A new registration attempt does not change rejected or severe.
Wallet errors
An error answer has the body { "code": "...", "description": "..." }. Branch on code and the HTTP
status. The description is for your log. Do not show it to the client.
| HTTP | code | Cause | What to do |
|---|---|---|---|
400 | Validation.Address | The address is not 0x and 40 hex characters. | Fix the calling code. |
400 | Validation.Chain | The chain is not a CAIP-2 eip155 id. | Fix the calling code. |
400 | Validation.Proof | proof.message or proof.signature is missing. | Fix the calling code. |
400 | Validation.Provider, Validation.ConnectorId | provider or connectorId has a value that is not allowed. | Fix the calling code. |
400 | Wallet.ChallengeMissing | No valid challenge: it expired, it was used, or it was for another address or chain. | Request a new challenge and sign again. |
400 | Wallet.BadSignature | The message was changed, or the signature is not from address. | Ask the client to sign with the wallet shown. Request a new challenge. |
400 | Wallet.NoEmail | The client's account has no email address. | Ask the client to contact support. |
401 | none | The token is missing, expired or not valid, or the account is not known. | Refresh the token, or sign the client in again. |
403 | Wallet.KycRequired | The client's KYC is not complete. Only the challenge and the registration answer this. | Do not ask the client to sign. Send the client to identity verification, then start again from the challenge. |
403 | none | The token is not a client token. | Send the client's own token, never a machine token. |
409 | Wallet.Conflict | The client registered this address on this chain before. | Not an error for the client. Read the list and show that wallet. |
409 | WalletInUse.Conflict | Another Assetera account holds this address. | The client must use another wallet. A retry does not help. |
422 | varies | The wallet registry refused the registration. | Log the code. Ask the client to contact support. |
502 | varies | A dependency of the Compliance API is not available. | Try again later, with a new challenge. |
Security requirements
- Forward the current user's token, never a machine token, to customer-scoped routes.
- Do not accept
sub, email, or applicant ID from an untrusted browser as authorization input. - Keep customer profile responses minimal and avoid copying them into analytics or application logs.
- Treat unavailable compliance dependencies as fail-closed for regulated writes.
- For the onboarding routes, use the tenant-specific API contract supplied during onboarding for exact payloads.
Portfolio API
Read a customer's holdings across all approved wallets and chains with GET /me/holdings: the request, the fields, partial failure, and filtering to your offer.
Real-time updates (SSE)
Use a server-minted, channel-scoped ticket to receive Server-Sent Events without exposing an Assetera API token to the browser.