Community Badges
Generate badge attribution code
Generates a code that a member can use to earn a badge.
get/community/{id}/badge/{badgeId}/code
Request
- Base URLhttps://api.openpage.fun/v1
- AuthAPI key in header X-Api-Key
- TypeScripthttps://skmtc.dev/openpage/apis/openpage-api-reference/docs/community/:id/badge/:badgeId/code/get.tsA function with typed inputs. Its response is checked against the schema.
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
Changes
No recorded changes to this operation across all 1 revision of this API.