When creating badges you can make use of Community Files to upload images and and use the OpenPage image cdn as the source URL.
For IPFS images an easy and cost effective solution is to use a service like Pinata to upload and pin the IPFS image.
New Badges created via the API are marked as
approved
by default. To begin creating badge attributions you will need to update the status to live
using the Update Badge endpoint. Once Badges are set to live
they will be visible publicly on OpenPage and across the OpenPage ecosystem.Approved badges can be previewed at:
https://op.xyz/badges/{badgeId}
Authorizations
Path Parameters
Community ID
Body
application/json
The image URL of the badge. Can be an IPFS url or OpenPage File.
Available options:
achievement
, attendance
Array of tags. Members with matching tags are eligible to claim the badge.
Available options:
draft
, under_review
, approved
, rejected
, live
Example:
"live"
The chain ID of the badge.
Example:
"11155111"