Introduction

The /refresh/ endpoint is used to refresh the bearer token when the current access token has expired. This endpoint validates a refresh token and generates a new access token and a new refresh token.

API Call Details

1. Refresh Bearer Token

Endpoint

POST <https://api.domainscraper.online/refresh/>

Description

Validates the provided refresh token and issues new access and refresh tokens.

Headers

Header Required Description
Content-Type Yes application/json

Request Body

Field Type Required Description
refresh_token string Yes The valid refresh token issued previously.

Example Request Body:

{
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Response

Success Response

Response Body:

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}