Skip to main content
The Partner API lets you provision end-users, run identity verification (KYC), and query account status — all from your own backend, using your own branded experience.
End User → Your App → Your Backend → Qash Partner API

                   X-Api-Key + X-Api-Secret

Base URL

EnvironmentURL
Productionhttps://api.qash.ai
Local (api-gateway)http://localhost:8080
All partner endpoints are under /api/v1/partner.

Authentication

Every request requires both headers:
X-Api-Key:    qash_key_live_xxxxx
X-Api-Secret: qash_secret_live_xxxxx
X-Api-Secret is shown only once at generation time. If lost, revoke the key and create a new pair from Qash Dashboard → Settings → API Keys.

Endpoints

MethodEndpointDescription
POST/usersRegister a new end-user
POST/kycStart identity verification for a user
GET/users/:userIdGet full details of a user
GET/usersList your users with filters and pagination
POST/auth/tokenExchange a userId for a Qash user JWT
POST/auth/loginDeprecated — Exchange a Privy token for a QASH JWT

Onboarding flow

User status lifecycle

StatusDescriptionCan operate?
pendingRegistered, KYC not yet completedNo
activeKYC approved, fully operationalYes
suspendedTemporarily suspendedNo
bannedPermanently blockedNo

Data isolation

Your API key scopes all queries — you can only see and manage users you created. A 404 on any user endpoint means either the user doesn’t exist or belongs to a different partner. There is no way to access another partner’s users.

Credential rotation

If your X-Api-Secret is compromised:
  1. Go to Qash Dashboard → Settings → API Keys
  2. Revoke the current key
  3. Generate a new key pair
  4. Update your backend with the new credentials

Common errors

HTTP statusErrorCause
400Validation messageMissing required field or invalid format
401Invalid partner credentialsWrong or missing X-Api-Key / X-Api-Secret
404User not foundUser doesn’t exist or belongs to another partner
409KYC already in progressKYC was already initiated for this user
503Authentication service unavailable