Refreshes auth tokens given a refresh token.
POST
/api/auth/v1/refresh
const url = 'https://example.com/api/auth/v1/refresh';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"refresh_token":"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://example.com/api/auth/v1/refresh \ --header 'Content-Type: application/json' \ --data '{ "refresh_token": "example" }'NOTE: This is a json-only API, since cookies will be auto-refreshed.
Request Body required
Section titled “Request Body required ” Media type application/json
object
refresh_token
required
string
Example generated
{ "refresh_token": "example"}Responses
Section titled “ Responses ”Refreshed auth tokens.
Media type application/json
object
auth_token
required
string
csrf_token
required
string
Example generated
{ "auth_token": "example", "csrf_token": "example"}