Gem

Get Gems of an entity

get

This endpoint retrieves Gems associated with the given entity.

Path parameters
entityIdstringRequired
userIdstringRequired
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 response
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