Skip to main content
GET
/
api
/
v3
/
auth
/
refresh-token
Refresh access token.
curl --request GET \
  --url https://sandbox-api.kotanipay.com/api/v3/auth/refresh-token \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "ok",
  "data": {
    "user_id": "5f9b2c7b9c9d6b0017b4e6b1",
    "session_id": "5f9b2c7b9c9d6b0017b4e6b1",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
    "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
  }
}
Refresh an expired access token using a valid refresh token to maintain authenticated access to the API.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

success
boolean
Example:

true

message
string
Example:

"ok"

data
object