Skip to main content
POST
Verify the OTP

Authorizations

Authorization
string
header
required

Access token from POST /api/v1/client/token.

Body

application/json
waId
string
required

The user's WhatsApp number as WhatsApp sends it: country code, no +.

Example:

"573001234567"

challengeId
string
required

From Request the OTP.

otpCode
string
required

Code the user typed.

Example:

"482915"

Response

200 - application/json

Successful response

accessToken
string
required

User token. Use it for every user call (PIN, deposit, accounts, withdrawal).

userId
string
required

Kravata user id.

refreshToken
string

Use it with Refresh the session.

expiresIn
integer

Validity of accessToken, in seconds.

Example:

300

refreshExpiresIn
integer

Validity of refreshToken, in seconds.