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"
  }
}
/auth/authtoken Description:
The /auth/authtoken endpoint allows users to obtain a new access token, typically used for authentication purposes.
This endpoint also allows user to switch between multiple workspaces. Method:
GET
Query Parameters:
ParameterTypeDescriptionRequired
currentWorkspacestringThe identifier for the current workspaceNo
userIdstringThe ID of the user to get token forNo

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Query Parameters

ParameterTypeInRequiredDescription
currentWorkspacestringqueryāŒThe identifier for the current workspace

Responses

āœ… 200 - Success

āš ļø 401 - Unauthorized

āš ļø 404 - Not Found

āŒ 500 - Internal Server Error

Tags

Auth

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
⌘I