Skip to main content
POST
Refresh the session

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"

refreshToken
string
required

From Verify the OTP or the previous refresh.

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.