User login
Users
User login (deprecated)
Exchange a Privy token for QASH access and refresh tokens.
POST
User login
Requires
X-Api-Key and X-Api-Secret headers. See Authentication for details.privyToken to Qash to receive a QASH accessToken and refreshToken.
- If the user was pre-registered with
POST /users, their Privy account is automatically linked on first login. - The
accessTokenexpires in ~1 hour. UserefreshToken(valid 30 days) to obtain a new one. - The
businessIdin the response is derived server-side from your API key — never send it from the client. isNewUser: trueindicates this is the user’s first login.
Authorizations
Partner API key. Generated from Qash Dashboard → Settings → API Keys.
Partner API secret. Shown once at creation — store it securely.
Body
application/json
Privy token from the user's authentication session.
JWT issued by Privy after the user authenticates in your app.
Minimum string length:
1Example:
"eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9..."
Response
User authenticated successfully.
Example:
true
Short-lived JWT (~1 hour) for authenticated user requests.
Long-lived JWT (30 days) to obtain new access tokens.
true if this is the user's first login.
Business profile ID of the partner, derived server-side from the API key.