v1
latestOpenAPI 3.0.02026-07-13433542.4 KBCommunity Badges
Generate badge attribution code
Generates a code that a member can use to earn a badge.
get/community/{id}/badge/{badgeId}/code
Path parameters
idstring required
Community ID
badgeIdstring required
ID of the badge to generate the code for.
Query parameters
seedstring
Optional seed to generate a one-time use code (this is required and must be a valid wallet address if the code will be consumed by the /attribution endpoint)
expiresInnumber
Number of seconds the code will be valid for. Leave empty if you want the code to be valid indefinitely.
generateQRboolean required
Generate a QR image for the code (defaults to true).
Response
QR code data URL