Create referral action
documentedCreates a new Referral Action to be used for processing new recurring rewards.
POST /api/referralactionReferralActionno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.referralrock.com/api/referralaction" \
-X POST \
-H "Authorization: Basic {{REFERRALROCK_API_KEY}}:{{REFERRALROCK_SECRET}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"amount": {{$amount}}, "referralQuery": "{{$referralQuery}}", "programQuery": "{{$programQuery}}", "name": "{{$name}}", "externalIdentifier": "{{$externalIdentifier}}"}'