# RefRef API

**Canonical:** https://apis.io/apis/refref-ai/refref-ai-api/  
**Provider:** RefRef — https://apis.io/providers/refref-ai/  
**Base URL:** https://api.refref.ai  
**Documentation:** https://refref.ai/docs/api

RefRef API is one of 2 APIs that [RefRef](https://apis.io/providers/refref-ai/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 4 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 4 JSON Schemas.

RefRef API as documented publicly: 58 operations. Contract generated from the documentation by API Evangelist (2026-11-23); not the provider's own document.

## Operations (58)

| Method | Path | Summary |
|---|---|---|
| GET | `/health` | GET /health |
| GET | `/openapi` | Get Open Api Document |
| POST | `/v1/attribution/policies` | Publish Attribution Policy |
| POST | `/v1/benefit-rules` | Create Benefit Rule |
| POST | `/v1/benefit-rules/{ruleid}/terms` | POST /v1/benefit-rules/{ruleId}/terms |
| POST | `/v1/capture` | The handoff of a referral click. The landing script calls it. |
| GET | `/v1/connections` | List Connections |
| GET | `/v1/custom-units` | List Custom Units |
| POST | `/v1/custom-units` | Create Custom Unit |
| PATCH | `/v1/custom-units/{key}` | Update Custom Unit |
| POST | `/v1/enrollments` | Enrollment and codes |
| POST | `/v1/enrollments/{enrollmentid}/end` | Enrollment and codes |
| GET | `/v1/events` | List Events |
| GET | `/v1/events/string` | GET /v1/events/string |
| GET | `/v1/events/{eventid}/diagnosis` | Diagnose Event |
| POST | `/v1/evidence/paid-history` | Submit Paid History |
| POST | `/v1/identify` | Identification |
| GET | `/v1/participants` | GET /v1/participants |
| PUT | `/v1/participants` | Participants |
| POST | `/v1/participants/rekey` | Rekey Participant |
| GET | `/v1/partner-applications` | List Partner Applications |
| POST | `/v1/partner-applications/{partnerrequestid}/approve` | Approve Partner Application |
| POST | `/v1/partner-invitations` | Invite Partner |
| POST | `/v1/partner-invitations/{partnerrequestid}/revoke` | Revoke Partner Invitation |
| GET | `/v1/partners` | List Partners |
| GET | `/v1/partners/{participantid}` | Get Partner |
| GET | `/v1/partners/{participantid}/payouts` | List Partner Payouts |
| POST | `/v1/partners/{partnerid}/ban` | Ban Partner |
| GET | `/v1/programs` | Programs |
| POST | `/v1/programs` | Create Program |
| POST | `/v1/programs/string/end` | POST /v1/programs/string/end |
| GET | `/v1/programs/{programid}` | GET /v1/programs/{programId} |
| PATCH | `/v1/programs/{programid}` | PATCH /v1/programs/{programId} |
| GET | `/v1/projects` | GET /v1/projects |
| POST | `/v1/purchase-adjustments` | Intake Purchase Adjustment |
| GET | `/v1/purchases` | List Purchases |
| POST | `/v1/referral-codes` | Enrollment and codes |
| POST | `/v1/referral-links` | Create Referral Link |
| GET | `/v1/referrals` | List Referrals |
| POST | `/v1/referrals` | Record a referral that you know, for example from a sales call |
| GET | `/v1/referrers` | List Referrers |
| GET | `/v1/reward-rules` | GET /v1/reward-rules |
| GET | `/v1/rewards` | GET /v1/rewards |
| GET | `/v1/rewards/{rewardid}` | Get Reward |
| POST | `/v1/rewards/{rewardid}/delivery/retry` | Retry Reward Delivery |
| POST | `/v1/rewards/{rewardid}/fulfillment` | Fulfill Reward |
| POST | `/v1/rewards/{rewardid}/revocation` | Revoke Reward |
| POST | `/v1/rewards/{rewardid}/void` | Void Reward |
| POST | `/v1/subscriptions/facts` | Intake Subscription Fact |
| POST | `/v1/track/events` | Intake Event |
| GET | `/v1/webhook-deliveries` | List Webhook Deliveries |
| GET | `/v1/webhook-endpoints` | List Webhook Endpoints |
| POST | `/v1/webhook-endpoints` | Create Webhook Endpoint |
| DELETE | `/v1/webhook-endpoints/{endpointid}` | Delete Webhook Endpoint |
| GET | `/v1/webhook-events` | List Webhook Events |
| POST | `/v1/widget/init` | A short-lived Widget token that your backend signs. |
| GET | `/v1/widget/payout-details` | Get Widget Payout Details |
| PUT | `/v1/widget/payout-details` | Set Widget Payout Details |

## Machine-readable artifacts (5)

- **OpenAPI** — https://artifacts.apis.io/refref-ai/openapi/_ae-authored/refref-ai-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/refref-ai/json-schema/refref-ai-get-v1-events-string-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/refref-ai/json-schema/refref-ai-get-health-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/refref-ai/json-schema/refref-ai-post-v1-programs-string-end-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/refref-ai/json-schema/refref-ai-post-v1-programs-string-end-request-schema.json

## Other RefRef APIs (1)

- [RefRef API](https://apis.io/apis/refref-ai/refref-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/refref-ai` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/refref-ai/refref-ai-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/refref-ai/.
