Membership Card
This endpoint allows add running xp for a user.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
10
user-123
POST /api/entities/{entityId}/add-xp HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 32
{
"xp": 10,
"forUserId": "user-123"
}
{
"success": true
}
This endpoint allows get running xp for a user.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/users/{userId}/xp HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": 1,
"tier": 1,
"xpThreshold": 1
}
This endpoint allows get Multiple DynamicNft for a user.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
["userid-123","userid-456"]
POST /api/entities/{entityId}/users/xp HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"userIds": [
"userid-123",
"userid-456"
]
}
{
"success": true,
"data": [
{
"userId": "text",
"entityId": "text",
"type": "text",
"membershipTier": 1,
"runningXP": 1,
"totalXP": 1,
"nftTokenId": "text",
"name": "text",
"title": "text",
"description": "text",
"image": "text",
"animation_url": "text",
"metadataIPFS": "text",
"attributes": [
{
"display_type": "text",
"trait_type": "text",
"value": "text",
"image": "text",
"item_type": "text"
}
],
"createdAt": "2025-07-07T05:55:55.154Z"
}
]
}
This endpoint retrieves membership cards for a user.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/mynfts HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"data": [
{
"userId": "user123",
"entityId": "entity123",
"type": "STATIC_MEDIA",
"membershipTier": 2,
"runningXP": 500,
"totalXP": 1000,
"nftTokenId": "token123",
"name": "NFT Name",
"title": "NFT Title",
"description": "NFT Description",
"image": "https://example.com/nft/image.jpg",
"animation_url": "https://example.com/nft/animation.mp4",
"metadataIPFS": "ipfs://metadata123",
"attributes": [
{
"display_type": "boost_percentage",
"trait_type": "skill",
"value": {
"score": 85
},
"image": "https://example.com/badge/image.png",
"item_type": "badge"
}
],
"createdAt": "2023-06-27T12:45:00Z"
}
]
}
This endpoint retrieves membership card details for an entity.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/mynfts HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"userId": "user123",
"entityId": "entity123",
"type": "STATIC_MEDIA",
"membershipTier": 2,
"runningXP": 500,
"totalXP": 1000,
"nftTokenId": "token123",
"name": "NFT Name",
"title": "NFT Title",
"description": "NFT Description",
"image": "https://example.com/nft/image.jpg",
"animation_url": "https://example.com/nft/animation.mp4",
"metadataIPFS": "ipfs://metadata123",
"attributes": [
{
"display_type": "boost_percentage",
"trait_type": "skill",
"value": {
"score": 85
},
"image": "https://example.com/badge/image.png",
"item_type": "badge"
}
],
"createdAt": "2023-06-27T12:45:00Z"
},
"entity_data": {
"id": "entity123",
"entityURLAlias": "my-entity",
"entityRecordIds": [
"record1",
"record2"
],
"contracts": [
"contract1",
"contract2"
],
"badgeContractAddress": "0x123abc",
"dyNFTContractAddress": "0x456def",
"themeContractAddress": "0x789ghi",
"name": "My Entity",
"openseaSlug": "my-entity-slug",
"description": "This is my entity description.",
"twitter": "myentity",
"discord": "myentity#1234",
"telegram": "myentity",
"instagram": "myentity",
"website": "https://myentity.com",
"medium": "myentity",
"imageUrl": "https://example.com/myentity.jpg",
"bannerUrl": "https://example.com/myentity-banner.jpg",
"isEnabled": false,
"isPrivate": false,
"chainSource": "OFF_CHAIN",
"defaultDyNftThemeId": "0",
"discordQuestWebhookURL": "https://example.com/discord-webhook",
"modifiedAt": "2023-06-27T12:45:00Z",
"createdAt": "2023-06-25T09:00:00Z",
"plan": "FREE",
"theme": {},
"parentEntityId": "e-0000001"
}
}
This endpoint recalculates a user's membership card.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/hidden/entities/{entityId}/recalculate-mynft HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true
}
This endpoint retrieves all the membership card themes for an entity.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/themes HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"data": [
{
"themeId": "theme123",
"entityId": "entity123",
"membershipTier": 2,
"tokenId": "token123",
"price": "0.1 ETH",
"title": "Theme Title",
"backgroundImage": "https://example.com/theme/background.jpg",
"squareLogoImage": "https://example.com/theme/logo-square.png",
"horizontalLogoImage": "https://example.com/theme/logo-horizontal.png",
"backgroundColor": "#FFFFFF",
"accentColor1": "#FF0000",
"accentColor2": "#00FF00",
"metadataIPFS": "ipfs://metadata123",
"attributes": [
{
"display_type": "boost_percentage",
"trait_type": "skill",
"value": {
"score": 85
}
}
],
"createdAt": "2023-06-27T12:45:00Z"
}
]
}
This endpoint allows to add a new theme for an entity.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
10
dummy-title
100 $
image-ipfs
image-ipfs
image-ipfs
red
red
red
ipfs
POST /api/entities/{entityId}/themes HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 256
{
"membershipTier": 10,
"title": "dummy-title",
"price": "100 $",
"backgroundImageIPFS": "image-ipfs",
"horizontalLogoImageIPFS": "image-ipfs",
"squareLogoImageIPFS": "image-ipfs",
"backgroundColor": "red",
"accentColor1": "red",
"accentColor2": "red",
"metadataIPFS": "ipfs"
}
{
"success": true,
"themeId": "theme-101"
}
This endpoint retrieves the membership card themes details for an entity.
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/themes/{themeId} HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"themeId": "theme123",
"entityId": "entity123",
"membershipTier": 2,
"tokenId": "token123",
"price": "0.1 ETH",
"title": "Theme Title",
"backgroundImage": "https://example.com/theme/background.jpg",
"squareLogoImage": "https://example.com/theme/logo-square.png",
"horizontalLogoImage": "https://example.com/theme/logo-horizontal.png",
"backgroundColor": "#FFFFFF",
"accentColor1": "#FF0000",
"accentColor2": "#00FF00",
"metadataIPFS": "ipfs://metadata123",
"attributes": [
{
"display_type": "boost_percentage",
"trait_type": "skill",
"value": {
"score": 85
}
}
],
"createdAt": "2023-06-27T12:45:00Z"
}
}
This endpoint allows to update a new theme for an entity.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
10
dummy-title
100 $
image-ipfs
image-ipfs
image-ipfs
red
red
red
ipfs
POST /api/entities/{entityId}/themes/{themeId}/update HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 256
{
"membershipTier": 10,
"title": "dummy-title",
"price": "100 $",
"backgroundImageIPFS": "image-ipfs",
"horizontalLogoImageIPFS": "image-ipfs",
"squareLogoImageIPFS": "image-ipfs",
"backgroundColor": "red",
"accentColor1": "red",
"accentColor2": "red",
"metadataIPFS": "ipfs"
}
{
"success": true
}
This endpoint allows to delete a theme for an entity.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/themes/{themeId}/delete HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{
"success": true
}
This endpoint allows to set a default theme for an entity.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
theme-101
POST /api/entities/{entityId}/themes/default HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"themeId": "theme-101"
}
{
"success": true
}
Retrieve the XP (experience points) for a specific entity.
ID of the entity to get XP for
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/xp HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": 500
}
Retrieve the XP (experience points) for multiple entities.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
POST /api/entities/xp HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"entityIds": [
"text"
]
}
{
"success": true,
"data": [
{
"entityId": "entity123",
"runningXP": 500
}
]
}
Retrieve the XP history for a specific user in a specific entity.
The ID of the entity.
The ID of the user.
The Id of the user performing the request.
dummy-userid
The page number for pagination (default: 1).
1
The number of items per page (default: 20).
20
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/users/{userId}/xp-history HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": [
{
"userId": "user123",
"entityId": "entity456",
"xp": 500,
"title": "XP Gain",
"createdAt": "2023-01-01T12:00:00Z"
}
],
"page": 1,
"totalCount": 50,
"totalPages": 3
}
Retrieve the XP leaderboard for a specific entity, showing users with the highest XP.
The ID of the entity.
The Id of the user performing the request.
dummy-userid
The page number for pagination (default: 1).
1
The number of items per page (default: 20).
20
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/xp-leaderboard HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": [
{
"userId": "user123",
"imageUrl": "https://example.com/user123.jpg",
"name": "John Doe",
"runningXP": 500
}
],
"page": 1,
"totalCount": 50,
"totalPages": 3
}
Retrieve the XP leaderboard rank for a specific user in a given entity. The response includes the user's position, threshold information, and whether the user is within the specified threshold.
The ID of the entity
The ID of the user
The Id of the user performing the request.
dummy-userid
The percentage threshold for XP
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/users/{userId}/xp-leaderboard-rank HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"position": 1,
"threshold": "5%",
"isUserInThreshold": true
}
}
This endpoint retrieves all the tags of an entity.
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/tags HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"tagId": "tag-121",
"tagName": "super-tag",
"description": "This is our tag",
"tagUsers": [
"user-11",
"user-33"
],
"isPrivate": false
}
}
Last updated