Back to Warranty API

Refresh Token

POST /api/v1/auth/refresh

Use your refresh token to obtain a new access token without re-authenticating. Refresh tokens are valid for 30 days.

Request Body

Parameter Type Required Description
refresh_token string Yes The refresh token received from login

Example Request

curl -X POST https://api.marquatica.com/api/v1/auth/refresh \
  -H "Content-Type: application/json" \
  -d '{"refresh_token": "eyJhbGciOiJIUzI1NiIs..."}'

Success Response (200)

{
  "success": true,
  "status": 200,
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiIs...",
    "token_type": "Bearer",
    "expires_in": 3600
  }
}

Error Responses

{
  "success": false,
  "status": 400,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "refresh_token is required"
  }
}
{
  "success": false,
  "status": 401,
  "error": {
    "code": "TOKEN_EXPIRED",
    "message": "Refresh token has expired"
  }
}
Try It Out
cURL Preview
POST https://api.marquatica.com/api/v1/auth/refresh
Base URL
Body Parameters
* refresh_token required
Response
Send a request to see the response
On this page