Skip to Content
Assetera Docs
API reference

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

MethodPathPurposeNeeds completed KYC
GET/api/kyc/me/statusRead the caller's current onboarding status.No
GET/api/kyc/me/profileRead the caller's permitted profile projection.No
POST/api/kyc/sessionStart or resume a MetaKYC SDK session for the caller.No
GET/api/wallet/challengeCreate a one-time wallet-ownership challenge.Yes
POST/api/walletRegister a wallet after the customer signs the challenge.Yes
GET/api/walletList 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.

StepCallResult
0. Check KYCGET /api/kyc/me/statusverified must be true
1. Get a challengeGET /api/wallet/challenge?address=...&chain=...A one-time message for the wallet to sign
2. RegisterPOST /api/walletThe registered wallet and its first status
3. Read the statusGET /api/walletEvery 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>
ParameterRequiredValue
addressyesThe EVM address, 0x and 40 hex characters, in any letter case.
chainyesThe 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.

200 OK
{
  "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"
}
RuleDetail
Sign the message unchangedPass message to the wallet as it is. Do not parse it or build it yourself.
Signature typeEIP-191 personal_sign. A contract wallet (EIP-1271) cannot register this way.
Bound to the requestThe challenge is valid only for this client, this address and this chain.
Single useA successful signature check uses it up. A new request for the same address and chain replaces the old one.
Time limitIt expires after 10 minutes, at expiresAt.

Register the wallet

POST /api/wallet
Authorization: Bearer <client access token>
Content-Type: application/json
Request body
{
  "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"
}
FieldRequiredValue
addressyesThe address from the challenge.
chainyesThe chain from the challenge.
proof.messageyesThe challenge message, unchanged.
proof.signatureyesThe wallet's personal_sign signature over proof.message, as 0x hex.
providerno"assetera" for the Assetera Wallet, "external" for any other wallet.
connectorIdnoA 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.

201 Created
{
  "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.

FieldMeaning
addressThe address, in lower case.
chainThe CAIP-2 chain the wallet is registered for.
statusSee Wallet statuses.
screenedAtWhen the current status was set. null while there is no result.
addedAtWhen the wallet was registered.
provider, connectorIdThe values sent at registration. null when none were sent.
isActivetrue 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

statusMeaningWhat your site shows
newRegistered. Screening has not started.In review. Read the list again.
screeningScreening is in progress, or there is no result yet.In review. Read the list again.
approvedThe wallet passed screening.Ready. Offer it as a delivery wallet.
rejectedAssetera does not accept this wallet.This wallet cannot be used. The client can contact support.
severeScreening 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.

HTTPcodeCauseWhat to do
400Validation.AddressThe address is not 0x and 40 hex characters.Fix the calling code.
400Validation.ChainThe chain is not a CAIP-2 eip155 id.Fix the calling code.
400Validation.Proofproof.message or proof.signature is missing.Fix the calling code.
400Validation.Provider, Validation.ConnectorIdprovider or connectorId has a value that is not allowed.Fix the calling code.
400Wallet.ChallengeMissingNo valid challenge: it expired, it was used, or it was for another address or chain.Request a new challenge and sign again.
400Wallet.BadSignatureThe message was changed, or the signature is not from address.Ask the client to sign with the wallet shown. Request a new challenge.
400Wallet.NoEmailThe client's account has no email address.Ask the client to contact support.
401noneThe token is missing, expired or not valid, or the account is not known.Refresh the token, or sign the client in again.
403Wallet.KycRequiredThe 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.
403noneThe token is not a client token.Send the client's own token, never a machine token.
409Wallet.ConflictThe client registered this address on this chain before.Not an error for the client. Read the list and show that wallet.
409WalletInUse.ConflictAnother Assetera account holds this address.The client must use another wallet. A retry does not help.
422variesThe wallet registry refused the registration.Log the code. Ask the client to contact support.
502variesA 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.

On this page