Skip to main content
POST
Create badge reward
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

X-Api-Key
string
header
required

Path Parameters

id
string
required

Community ID

badgeId
string
required

Badge ID

Body

application/json
name
string
required
image
string
required
provider
enum<string>
required
Available options:
Vault
type
enum<string>
required
Available options:
native,
erc20,
erc721,
erc1155,
points
status
enum<string>
required
Available options:
open,
pending,
sent
vaultId
string
required
contract
string
required
chainId
string
required
amount
string[]
required
description
string
required
endDate
string<date-time>
required
maxSpend
number
required

Response

201 - application/json

Badge reward created successfully

id
string
required
image
string
required
provider
enum<string>
required
Available options:
Vault
providerImage
string
required
name
string
required
type
enum<string>
required
Available options:
native,
erc20,
erc721,
erc1155,
points
status
enum<string>
required
Available options:
open,
pending,
sent
amount
number[]
required
description
string
required
endDate
string<date-time>
required
maxSpend
number
required
vaultId
string
contract
string
chainId
string
transactionHash
string
deletedAt
string<date-time>
sentAt
string<date-time>