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
testThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful operation
Invalid request
Token not found
Server error
GET /api/entities/{entityId}/users/{userId}/authentication-token HTTP/1.1
Host: https:/.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
testThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful operation
Invalid request
Server error
POST /api/entities/{entityId}/users/{userId}/authentication-token HTTP/1.1
Host: https:/.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
testThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful operation
Invalid request
Server error
DELETE /api/entities/{entityId}/users/{userId}/authentication-token HTTP/1.1
Host: https:/.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
testThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenThe new expiry date for the token.
Any new flags for the token.
Successful operation
Invalid request
Server error
PATCH /api/entities/{entityId}/users/{userId}/authentication-token HTTP/1.1
Host: https:/.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
testThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenThe current authentication token to refresh.
Successful operation
Invalid request
Server error
POST /api/entities/{entityId}/users/{userId}/authentication-token/refresh HTTP/1.1
Host: https:/.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