Refresh Access Token
POST
/auth/refresh
const url = 'https://api.exolink.cloud/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://api.exolink.cloud/auth/refresh \ --header 'Content-Type: application/json' \ --data '{ "refreshToken": "example" }'Get new access token using refresh token
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
refreshToken
required
Refresh token from previous authentication
string
Examplegenerated
{ "refreshToken": "example"}Responses
Section titled “Responses”Token refreshed successfully
Media typeapplication/json
object
Token
Authentication tokens
object
AccessToken
JWT access token for API requests
string
RefreshToken
Token for refreshing access tokens
string
IdToken
ID token containing user identity claims
string
UserInfo
object
userId
Unique identifier for the user (UUID)
string
username
User’s email address
string
email
User’s email address
string
givenName
User’s first name
string
familyName
User’s last name
string
mfa
Whether multi-factor authentication is enabled
boolean
perms
User permissions per tenant (tenant domain prefix -> role mapping)
object
key
additional properties
string
Settings
User settings including default tenant
object
default
object
tenant
Default tenant domain prefix
string
Examplegenerated
{ "Token": { "AccessToken": "example", "RefreshToken": "example", "IdToken": "example" }, "UserInfo": { "userId": "example", "username": "example", "email": "example", "givenName": "example", "familyName": "example", "mfa": true, "perms": { "additionalProperty": "example" } }, "Settings": { "default": { "tenant": "example" } }}