Skip to main content
POST
/
auth
/
refresh
Refresh an existing JWT access token before it expires.
curl --request POST \
  --url https://api.getenso.ai/auth/refresh \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "refreshToken": "eyJhbGciOi..."
}
'
{
  "status": "success",
  "message": "Success",
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5c..."
  }
}
No bearer token required — this endpoint issues the token.

Authorizations

Authorization
string
header
required

JWT bearer token obtained from POST /auth/system-login using your client credentials.

Body

application/json
refreshToken
string
Example:

"eyJhbGciOi..."

Response

Success

status
string
Example:

"success"

message
string
Example:

"Success"

data
object