Refresh access token using a refresh token
POST
/api/v1/auth/refresh
const url = 'https://dashboard.justcrawl.io/api/v1/auth/refresh';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"refreshToken":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.justcrawl.io/api/v1/auth/refresh \ --header 'Content-Type: application/json' \ --data '{ "refreshToken": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
refreshToken
required
string
Example generated
{ "refreshToken": "example"}Responses
Section titled “ Responses ”New access and refresh tokens issued
Missing refresh token
Invalid or expired refresh token