Ga naar inhoud

Recipes

Deze inhoud is nog niet vertaald.

Add format=csv to any list and point your tool at the URL with the key in a header. For example, this month’s kudos:

GET /activity?since=2026-10-01T00:00:00Z&format=csv&limit=1000

Tools that can’t send headers, such as a plain Google Sheets IMPORTDATA, can’t use the API directly. Use Power BI, Excel Power Query or a small script instead.

Use the HTTP request / Webhooks step, add the Authorization: Bearer sk_live_… header and call the endpoint.

Send your whole catalogue on a schedule. Rewards are matched on external_id, so nothing is duplicated. Up to 500 per request, and every row is validated before anything is written:

Terminal window
curl -X POST https://kmlrvcofvtzdlbomxrbp.supabase.co/functions/v1/external-api/rewards \
-H "Authorization: Bearer sk_live_…" \
-H "Content-Type: application/json" \
-d '{"rewards":[{"external_id":"coffee-voucher","name":"Coffee voucher","points_cost":50}]}'

To archive a reward, send it again with "is_archived": true.