Entity Authentication Token

Get Authentication Token

get
/entities/{entityId}/users/{userId}/authentication-token

Get the authentication token for a user in a specific entity.

Path parameters
entityIdstringRequired

The ID of the entity.

userIdstringRequired

The ID of the user.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful operation

application/json
get
/entities/{entityId}/users/{userId}/authentication-token
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 Authentication Token

post
/entities/{entityId}/users/{userId}/authentication-token

Create an authentication token for a user in a specific entity.

Path parameters
entityIdstringRequired

The ID of the entity.

userIdstringRequired

The ID of the user.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
201

Successful operation

application/json
post
/entities/{entityId}/users/{userId}/authentication-token
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 Authentication Token

delete
/entities/{entityId}/users/{userId}/authentication-token

Delete the authentication token for a user in a specific entity.

Path parameters
entityIdstringRequired

The ID of the entity.

userIdstringRequired

The ID of the user.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful operation

application/json
delete
/entities/{entityId}/users/{userId}/authentication-token
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 Authentication Token

patch
/entities/{entityId}/users/{userId}/authentication-token

Update the authentication token for a user in a specific entity.

Path parameters
entityIdstringRequired

The ID of the entity.

userIdstringRequired

The ID of the user.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
expirystring · date-timeOptional

The new expiry date for the token.

flagsstring[]Optional

Any new flags for the token.

Responses
200

Successful operation

application/json
patch
/entities/{entityId}/users/{userId}/authentication-token
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 Authentication Token

post
/entities/{entityId}/users/{userId}/authentication-token/refresh

Refresh the authentication token for a user in a specific entity.

Path parameters
entityIdstringRequired

The ID of the entity.

userIdstringRequired

The ID of the user.

Header parameters
apikeystringRequired

The API key for authentication

Example: test
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
authenticationTokenstringOptional

The current authentication token to refresh.

Responses
200

Successful operation

application/json
post
/entities/{entityId}/users/{userId}/authentication-token/refresh
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