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.
POST <https://api.domainscraper.online/refresh/>
Validates the provided refresh token and issues new access and refresh tokens.
| Header | Required | Description |
|---|---|---|
Content-Type |
Yes | application/json |
| Field | Type | Required | Description |
|---|---|---|---|
refresh_token |
string | Yes | The valid refresh token issued previously. |
Example Request Body:
{
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
200 OKResponse Body:
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}