Community Badges
Create badge Reward
API Reference
Launcher
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 Experiences
Community Collections
Community Payments
Metadata
Community Badges
Create badge Reward
Create a reward for a badge. Badge rewards are used to provide additional incentives for members to earn badges.
POST
/
community
/
{id}
/
badge
/
{badgeId}
/
reward
curl --request POST \
--url https://api.other.page/v1/community/{id}/badge/{badgeId}/reward \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"name": "<string>",
"image": "<string>",
"provider": "Thank APE",
"type": "native",
"status": "open",
"vaultId": "<string>",
"contract": "<string>",
"chainId": "<string>",
"amount": [
"<string>"
],
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"maxSpend": 123
}'
{
"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"
}
To create Badge Rewards you first need to add a vault in your Portal community dashboard for each chain you want to send rewards on. View the Vault Documentation for more information.
Authorizations
Body
application/json
Response
201 - application/json
Badge reward created successfully
The response is of type object
.
curl --request POST \
--url https://api.other.page/v1/community/{id}/badge/{badgeId}/reward \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"name": "<string>",
"image": "<string>",
"provider": "Thank APE",
"type": "native",
"status": "open",
"vaultId": "<string>",
"contract": "<string>",
"chainId": "<string>",
"amount": [
"<string>"
],
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"maxSpend": 123
}'
{
"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"
}