POST
/
launcher
/
{id}
/
upsert-attribution
Create or update a badge attribution
curl --request POST \
  --url https://api.op.xyz/v1/launcher/{id}/upsert-attribution \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "badgeId": "<string>",
  "metadata": {},
  "jwt": "<string>",
  "autoClaim": true
}'

Headers

x-api-key
string
required

Path Parameters

id
string
required

Query Parameters

conditionKey
string
required
condition
string
required

Body

application/json
badgeId
string
required

The badge ID

jwt
string
required

The launcher session JWT

metadata
object

Additional metadata to be included in the badge attribution

autoClaim
boolean

Automatically claim the badge for the member. On-chain badges will be airdropped to the wallet immediately.