Skip to main content
POST
/
api
/
campaigns
/
{slug}
/
contributions
Submit contribution
curl --request POST \
  --url https://studio.x402layer.cc/api/campaigns/{slug}/contributions \
  --header 'Content-Type: application/json' \
  --data '
{
  "receipt_token": "<string>",
  "display_name": "<string>"
}
'
{
  "success": true,
  "contribution": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "fee_share_eligible": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.x402layer.cc/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

slug
string
required

Body

application/json
receipt_token
string
required

Signed x402 receipt token from the X-X402-Receipt-Token response header after payment

display_name
string

Public name shown in the supporters list

Maximum string length: 50

Response

Contribution recorded

success
boolean
contribution
object
campaign_status
enum<string>
Available options:
active,
funded
fee_share_eligible
boolean

Whether this contributor is within the first 100 unique wallets