Gem
This endpoint retrieves Gems associated with the given entity.
Path parameters
entityIdstringRequired
userIdstringRequired
Header parameters
apikeystringRequiredExample:
The API key for authentication
test
useridstringRequiredExample:
The Id of the user performing the request.
dummy-userid
tokenstringRequiredExample:
The token for user authentication.
dummy-token
Responses
200
Successful response
application/json
400
Client error
application/json
500
Server error
application/json
get
GET /api/entities/{entityId}/users/{userId}/gems HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"data": [
{
"_id": "text",
"userId": "text",
"entityId": "text",
"gemsContractId": {
"_id": "text",
"name": "text",
"desc": "text",
"logo": "text"
},
"value": 1
}
]
}
Last updated