Entity Authentication Token
Get the authentication token for a user in a specific entity.
The ID of the entity.
The ID of the user.
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/users/{userId}/authentication-token HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"authenticationToken": "text"
}
Create an authentication token for a user in a specific entity.
The ID of the entity.
The ID of the user.
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/users/{userId}/authentication-token HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true
}
Delete the authentication token for a user in a specific entity.
The ID of the entity.
The ID of the user.
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
DELETE /api/entities/{entityId}/users/{userId}/authentication-token HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true
}
Update the authentication token for a user in a specific entity.
The ID of the entity.
The ID of the user.
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
The new expiry date for the token.
Any new flags for the token.
PATCH /api/entities/{entityId}/users/{userId}/authentication-token HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"expiry": "2023-12-31T23:59:59Z",
"flags": [
"new_flag_1",
"new_flag_2"
]
}
{
"success": true
}
Refresh the authentication token for a user in a specific entity.
The ID of the entity.
The ID of the user.
The API key for authentication
test
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
The current authentication token to refresh.
POST /api/entities/{entityId}/users/{userId}/authentication-token/refresh HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"authenticationToken": "current_token_value"
}
{
"success": true
}
Last updated