Skip to main content
GET
/
auth
/
authtoken
Get new access token
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/auth/authtoken \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "message": "Access token generated for Royalty-demo",
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjRlNDI3MjllLWYxNGQtNDhlNy1iNGNiLWMxODliNmQxNThlNiIsIm5hbWUiOiJhZG1pbiB1c2VyIiwiYWN0aXZlV29ya3NwYWNlIjoiNzg2YWNkZjctZmEzZS00YWIyLTkxZDUtMTNmMGI2YThhZDk3IiwiaWF0IjoxNzA3MzAwODU1LCJleHAiOjE3MDczMjI0NTV9.GxYzQmRNHsZBEiEDYy4X6FYmjuBkKVZqnAse4CMdtkw"
  }
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/auth/authtoken', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Query Parameters

currentWorkspace
string

The identifier for the current workspace

Response

Success

status
string
message
string
data
object