Atomically consume an impersonation nonce and return a 15-min access token
POST
/api/v1/auth/impersonation-exchange
const url = 'https://dashboard.justcrawl.io/api/v1/auth/impersonation-exchange';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"nonce":"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/impersonation-exchange \ --header 'Content-Type: application/json' \ --data '{ "nonce": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
object
nonce
required
string
Example generated
{ "nonce": "example"}Responses
Section titled “ Responses ”Authenticated as the target user (15-min access token, no refresh token)
Missing nonce
Invalid, expired, or already-used nonce