Membership Card
This endpoint allows add running xp for a user.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-token10user-123Successful response
Client error
Server error
POST /api/entities/{entityId}/add-xp?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Client error
Server error
GET /api/entities/{entityId}/users/{userId}/xp?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-token["userid-123","userid-456"]Successful response
Client error
Unauthorized error
Client error
Server error
POST /api/entities/{entityId}/users/xp?userId=dummy-userid HTTP/1.1
Host: https:/.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-11-06T06:52:47.672Z"
}
]
}This endpoint retrieves membership cards for a user.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
GET /api/mynfts?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
GET /api/entities/{entityId}/mynfts?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
GET /api/hidden/entities/{entityId}/recalculate-mynft?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
GET /api/entities/{entityId}/themes?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-token10dummy-title100 $image-ipfsimage-ipfsimage-ipfsredredredipfsSuccessful response
Client error
Server error
POST /api/entities/{entityId}/themes?userId=dummy-userid HTTP/1.1
Host: https:/.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
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
GET /api/entities/{entityId}/themes/{themeId} HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-token10dummy-title100 $image-ipfsimage-ipfsimage-ipfsredredredipfsSuccessful response
Client error
Server error
POST /api/entities/{entityId}/themes/{themeId}/update?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Client error
Server error
POST /api/entities/{entityId}/themes/{themeId}/delete?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokentheme-101Successful response
Client error
Server error
POST /api/entities/{entityId}/themes/default?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Bad Request
Unauthorized error
Not Found
Server error
GET /api/entities/{entityId}/xp?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Bad Request
Unauthorized error
Not Found
Server error
POST /api/entities/xp?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe page number for pagination (default: 1).
1The number of items per page (default: 20).
20The API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Unauthorized error
Server error
GET /api/entities/{entityId}/users/{userId}/xp-history?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe page number for pagination (default: 1).
1The number of items per page (default: 20).
20The API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Unauthorized error
Server error
GET /api/entities/{entityId}/xp-leaderboard?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe percentage threshold for XP
The API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Bad Request
Unauthorized error
Server error
GET /api/entities/{entityId}/users/{userId}/xp-leaderboard-rank?userId=dummy-userid HTTP/1.1
Host: https:/.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-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenSuccessful response
Client error
Server error
GET /api/entities/{entityId}/tags?userId=dummy-userid HTTP/1.1
Host: https:/.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