Refresh
POST
/auth/refresh
const url = 'https://example.com/auth/refresh';const options = {method: 'POST'};
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/auth/refreshRotate the current session token. Old token is immediately invalidated.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
AuthTokenResponse
object
api_token
required
Api Token
string
Examplegenerated
{ "api_token": "example"}