docs.referralpanda.com

API keys

Keys are created in the dashboard, under API keys, by an owner or admin. Each key belongs to one project and one environment: a sandbox key never sees production data.

Three kinds

What a restricted key can be given

For each area you choose nothing, read, or read and write. Anything you leave out is refused.

AreaReadWrite adds
customersCustomers and their referral codesCreate or update a customer
referralsReferrals, timelines, the referrals exportVoid a referral
rewardsRewards, the rewards exportVoid a reward
programsPrograms, reward definitions, offer code poolsCreate and change them
screensScreens, placements, templatesEdit, publish and roll back
analyticsThe funnel, charts and setup statusNothing to write
webhooksWebhook endpoints and delivery logsCreate, change, delete, redeliver
eventsNothing to readReport a purchase

Moving money is separate

Approving a reward, granting one by hand and resending one need write access to rewards and the "Can move money" switch, which is off unless you turn it on. Voiding does not need it, because voiding only stops money.

Reporting a purchase is not moving money, but it can lead to it: a purchase can qualify a referral, and a program with no approval step then sends its rewards. Give events only to the system that really reports your purchases.

Good to know

{ "project_id": "…", "environment": "production", "key_type": "secret", "permissions": { "resources": { "referrals": "read", "rewards": "read" }, "money": false } }

For a full-access key permissions is null.