Attribute every chart your agent orchestrates
One header, zero PII. Track how many billable chart calls your agent — or the ones it invokes — drives into TableCharts. Perfect for open-source agents, marketplaces, and A2A directories.
One header
Send X-Referral-Code: your-code with any /generate-chart or /generate-dashboard call.
Aggregate stats
Public JSON endpoint returns totals, 7d, 30d — no PII, ever.
Fair by default
One conversion per unique caller per code per UTC day. No dashboard-refresh farming.
Send referrals in one line
Any successful chart generation gets attributed. Failed calls, quota-exhausted 402s, and fraud-capped duplicates do not.
curl -X POST https://xsbzchiryhqatvrzgyxm.supabase.co/functions/v1/generate-chart \
-H "Authorization: Bearer tc_live_your_key" \
-H "X-Referral-Code: my-agent" \
-H "X-Referrer-Agent-Id: https://myagent.dev/.well-known/agent-card.json" \
-H "Content-Type: application/json" \
-d '{"data":[{"month":"Jan","revenue":1200}]}'The response includes X-Referral-Recorded: 1 when the conversion was counted.
Public stats endpoint
curl "https://xsbzchiryhqatvrzgyxm.supabase.co/functions/v1/referrals?code=my-agent"
# → {"ok":true,"code":"my-agent","stats":{"total":142,"last_7_days":28,"last_30_days":97,...}}A2A skill: record_referral
The TableCharts agent card advertises record_referral so other agents can attach attribution automatically. Any request to generate_dashboard or generate_chart can include referral_code and/or referrer_agent_id in the JSON body.