Context API
Context API
5. Your Context API (recommended)
- Method:
POST(HTTPS only) - Headers:
- Authorization: Bearer <api_key> - Content-Type: application/json
Tip: use
context_urlto speed up onboarding and reduce extra app requests.
Request
Request from CryptoPass:
{
"provider_slug": "myexchange",
"user_id": "ext-user-12345"
}
Response
Response (200 OK):
{
"ok": true,
"provider_slug": "myexchange",
"user_id": "ext-user-12345",
"sumsub_applicant_id": "optional-abc123",
"email": "optional@example.com",
"wallet": {
"address": "0xabc... or bc1...",
"chain": "ETH|BTC|BNB|TRX|..."
}
}
The error format matches redeem (400/401/409/429/5xx with { "ok": false, "error": "..." }).