Community Badges
Create badge attribution
API Reference
Connect
Account
Communities
- GETGet communities
- GETGet a community
- GETGet community members
- POSTAdd community member
- POSTBulk add community members
- GETGet community member
- GETGet community member tokens
- GETGet community member badges
- GETGet community tags
- POSTCreate a community tag
- GETGet a community tag
- DELDelete a community tag
- GETGet members by tag
- POSTAdd a tag to community members
- DELRemove tag from a member
Community Badges
- GETGet badges
- POSTCreate Badge
- GETGet badge
- DELDelete badge
- PATCHUpdate badge
- GETGet badge rewards
- POSTCreate badge Reward
- GETGet badge reward
- DELDelete badge reward
- PATCHUpdate badge reward
- GETGet badge attributions
- POSTCreate badge attribution
- PATCHUpdate badge attribution
- GETGet a badge attribution by metadata property
- GETGet a badge attribution
- GETGet badge leaderboard
- GETGenerate badge attribution code
Community Collections
Community Payments
Metadata
Community Badges
Create badge attribution
POST
/
community
/
{id}
/
badge
/
{badgeId}
/
attribution
curl --request POST \
--url https://api.other.page/v1/community/{id}/badge/{badgeId}/attribution \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"wallet": "<string>",
"code": "<string>",
"autoClaim": true,
"metadata": {}
}'
{
"id": "<string>",
"earnedAt": "2023-11-07T05:31:56Z",
"claimedAt": "2023-11-07T05:31:56Z",
"transactionHash": "<string>",
"tokenId": "<string>",
"badge": {
"id": "<string>",
"name": "<string>",
"image": "<string>",
"rewards": [
{
"id": "<string>",
"image": "<string>",
"provider": "Thank APE",
"providerImage": "<string>",
"name": "<string>",
"type": "native",
"status": "open",
"vaultId": "<string>",
"contract": "<string>",
"chainId": "<string>",
"amount": [
123
],
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"maxSpend": 123,
"transactionHash": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"sentAt": "2023-11-07T05:31:56Z"
}
],
"requirements": [
[
"<any>"
]
]
},
"account": {
"id": "<string>",
"wallet": "<string>",
"linkedWallets": [
"<string>"
],
"twitter": {
"id": "<string>",
"name": "<string>",
"username": "<string>"
},
"discord": {
"id": "<string>",
"username": "<string>",
"global_name": "<string>",
"avatar": "<string>"
},
"email": "<string>",
"connectedAvatar": {
"id": "<string>",
"name": "<string>",
"title": "<string>",
"primary": true,
"bio": "<string>",
"token": {
"id": "<string>",
"collectionName": "<string>",
"name": "<string>",
"kind": "erc721",
"chainId": "1",
"contract": "<string>",
"tokenId": "<string>",
"image": "<string>",
"uri": "<string>",
"rarity": "<string>",
"rarityRank": 123,
"description": "<string>",
"externalUrl": "<string>",
"animationUrl": "<string>",
"traits": [
{
"key": "<string>",
"type": "<string>",
"value": "<string>",
"tokenCount": 123,
"rarity": 123,
"rarityPercent": 123
}
],
"quantity": 123,
"burnDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
},
"membership": {
"id": "<string>",
"role": "<string>",
"wallet": "<string>",
"addMethod": "<string>",
"confirmedAt": "2023-11-07T05:31:56Z"
}
}
Authorizations
Body
application/json
Wallet address (if not using a claim code)
Claim code (if not using a wallet address)
Automatically claim the badge for the member. On-chain badges will be airdropped to the wallet immediately.
Additional metadata to be included in the badge attribution
Response
200 - application/json
Available options:
Thank APE
, Vault
Available options:
native
, erc20
, erc721
, erc1155
, points
Available options:
open
, pending
, sent
Available options:
erc721
, erc1155
curl --request POST \
--url https://api.other.page/v1/community/{id}/badge/{badgeId}/attribution \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"wallet": "<string>",
"code": "<string>",
"autoClaim": true,
"metadata": {}
}'
{
"id": "<string>",
"earnedAt": "2023-11-07T05:31:56Z",
"claimedAt": "2023-11-07T05:31:56Z",
"transactionHash": "<string>",
"tokenId": "<string>",
"badge": {
"id": "<string>",
"name": "<string>",
"image": "<string>",
"rewards": [
{
"id": "<string>",
"image": "<string>",
"provider": "Thank APE",
"providerImage": "<string>",
"name": "<string>",
"type": "native",
"status": "open",
"vaultId": "<string>",
"contract": "<string>",
"chainId": "<string>",
"amount": [
123
],
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"maxSpend": 123,
"transactionHash": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"sentAt": "2023-11-07T05:31:56Z"
}
],
"requirements": [
[
"<any>"
]
]
},
"account": {
"id": "<string>",
"wallet": "<string>",
"linkedWallets": [
"<string>"
],
"twitter": {
"id": "<string>",
"name": "<string>",
"username": "<string>"
},
"discord": {
"id": "<string>",
"username": "<string>",
"global_name": "<string>",
"avatar": "<string>"
},
"email": "<string>",
"connectedAvatar": {
"id": "<string>",
"name": "<string>",
"title": "<string>",
"primary": true,
"bio": "<string>",
"token": {
"id": "<string>",
"collectionName": "<string>",
"name": "<string>",
"kind": "erc721",
"chainId": "1",
"contract": "<string>",
"tokenId": "<string>",
"image": "<string>",
"uri": "<string>",
"rarity": "<string>",
"rarityRank": 123,
"description": "<string>",
"externalUrl": "<string>",
"animationUrl": "<string>",
"traits": [
{
"key": "<string>",
"type": "<string>",
"value": "<string>",
"tokenCount": 123,
"rarity": 123,
"rarityPercent": 123
}
],
"quantity": 123,
"burnDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
},
"membership": {
"id": "<string>",
"role": "<string>",
"wallet": "<string>",
"addMethod": "<string>",
"confirmedAt": "2023-11-07T05:31:56Z"
}
}