Skip to main content
Use this endpoint to exchange a refresh token for a new access token. Call it when the current access token has expired rather than prompting the user to log in again. The refresh token is returned alongside the access token when you call the Login endpoint.

Endpoint

POST https://baasapi.payrepmfb.com/api/v1/auth/web/refresh

Request body

refresh
string
required
The refresh token obtained from the Login response.

Example request

curl --request POST \
  --url https://baasapi.payrepmfb.com/api/v1/auth/web/refresh \
  --header 'Content-Type: application/json' \
  --data '{
    "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  }'

Response

A successful request returns a new access token.
{
  "status": true,
  "response_code": "00",
  "message": "Success",
  "data": {
    "access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  }
}

Response fields

data.access
string
A new short-lived JWT access token. Use this to replace the expired token on all subsequent Dashboard API requests.