RefRef API

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

GitHub OpenAPI

Operations 58

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 #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/refref-ai:refref-ai-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

refref-ai-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: RefRef API
  version: '2026-11-23'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-23: 58 operation(s) read from 9 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; RefRef has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 8
    documentation: 50
    pages-with-code: 9
    pages-read: 9
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-23'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://refref.ai/docs/api
  - https://refref.ai/docs/api/get-event
  - https://refref.ai/docs/api/get-health
  - https://refref.ai/docs/api/get-reward
  - https://refref.ai/docs/api/ban-partner
  - https://refref.ai/docs/api/end-program
  - https://refref.ai/docs/api/get-partner
  - https://refref.ai/docs/api/get-program
  - https://refref.ai/docs/api/list-events
servers:
- url: https://api.refref.ai
paths:
  /health:
    get:
      operationId: get_health
      tags:
      - Health
      summary: GET /health
      x-source: https://refref.ai/docs/api/get-health
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetHealthResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl JavaScript Go Python Java C# Rust Copy Text curl -X GET "https://example.com/health" 200 503 Copy Text { "ok": true, "service":
          "string", "checks": {} } Get Event GET Read one Event with its facts. Needs the referrals:read key permission. Get Open Api Document
          GET Next Page'
  /openapi:
    get:
      operationId: get_openapi
      tags:
      - Openapi
      summary: Get Open Api Document
      description: GET /openapi
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/attribution/policies:
    post:
      operationId: post_v1_attribution_policies
      tags:
      - Attribution
      summary: Publish Attribution Policy
      description: Publish Attribution Policy
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/benefit-rules:
    post:
      operationId: post_v1_benefit_rules
      tags:
      - Benefit Rules
      summary: Create Benefit Rule
      description: Create Benefit Rule
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/benefit-rules/{ruleid}/terms:
    post:
      operationId: post_v1_benefit_rules_ruleid_terms
      tags:
      - Benefit Rules
      summary: POST /v1/benefit-rules/{ruleId}/terms
      description: POST /v1/benefit-rules/{ruleId}/terms
      x-source: https://refref.ai/docs/api
      parameters:
      - name: ruleid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/capture:
    post:
      operationId: post_v1_capture
      tags:
      - Capture
      summary: The handoff of a referral click. The landing script calls it.
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/connections:
    get:
      operationId: get_v1_connections
      tags:
      - Connections
      summary: List Connections
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/custom-units:
    get:
      operationId: get_v1_custom_units
      tags:
      - Custom Units
      summary: List Custom Units
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_v1_custom_units
      tags:
      - Custom Units
      summary: Create Custom Unit
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/custom-units/{key}:
    patch:
      operationId: patch_v1_custom_units_key
      tags:
      - Custom Units
      summary: Update Custom Unit
      x-source: https://refref.ai/docs/api
      parameters:
      - name: key
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/enrollments:
    post:
      operationId: post_v1_enrollments
      tags:
      - Enrollments
      summary: Enrollment and codes
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/enrollments/{enrollmentid}/end:
    post:
      operationId: post_v1_enrollments_enrollmentid_end
      tags:
      - Enrollments
      summary: Enrollment and codes
      x-source: https://refref.ai/docs/api
      parameters:
      - name: enrollmentid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/events:
    get:
      operationId: get_v1_events
      tags:
      - Events
      summary: List Events
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/events/string:
    get:
      operationId: get_v1_events_string
      tags:
      - Events
      summary: GET /v1/events/string
      x-source: https://refref.ai/docs/api/get-event
      parameters:
      - name: projectId
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1EventsStringResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl JavaScript Go Python Java C# Rust Copy Text curl -X GET "https://example.com/v1/events/string?projectId=string" 200 400
          401 403 404 409 Copy Text { "success": true, "data": { "id": "string", "createdAt": "string", "updatedAt": "string", "projectId": "string",
          "participantId": "string", "type": "string", "actorParticipantId": "string", "sourceEventId": "string", "occurredAt": "string", "receiv'
  /v1/events/{eventid}/diagnosis:
    get:
      operationId: get_v1_events_eventid_diagnosis
      tags:
      - Events
      summary: Diagnose Event
      x-source: https://refref.ai/docs/api
      parameters:
      - name: eventid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/evidence/paid-history:
    post:
      operationId: post_v1_evidence_paid_history
      tags:
      - Evidence
      summary: Submit Paid History
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/identify:
    post:
      operationId: post_v1_identify
      tags:
      - Identify
      summary: Identification
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/participants:
    get:
      operationId: get_v1_participants
      tags:
      - Participants
      summary: GET /v1/participants
      description: GET /v1/participants
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    put:
      operationId: put_v1_participants
      tags:
      - Participants
      summary: Participants
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/participants/rekey:
    post:
      operationId: post_v1_participants_rekey
      tags:
      - Participants
      summary: Rekey Participant
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/partner-applications:
    get:
      operationId: get_v1_partner_applications
      tags:
      - Partner Applications
      summary: List Partner Applications
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/partner-applications/{partnerrequestid}/approve:
    post:
      operationId: post_v1_partner_applications_partnerrequestid_approve
      tags:
      - Partner Applications
      summary: Approve Partner Application
      x-source: https://refref.ai/docs/api
      parameters:
      - name: partnerrequestid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/partner-invitations:
    post:
      operationId: post_v1_partner_invitations
      tags:
      - Partner Invitations
      summary: Invite Partner
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/partner-invitations/{partnerrequestid}/revoke:
    post:
      operationId: post_v1_partner_invitations_partnerrequestid_revoke
      tags:
      - Partner Invitations
      summary: Revoke Partner Invitation
      x-source: https://refref.ai/docs/api
      parameters:
      - name: partnerrequestid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/partners:
    get:
      operationId: get_v1_partners
      tags:
      - Partners
      summary: List Partners
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/partners/{participantid}:
    get:
      operationId: get_v1_partners_participantid
      tags:
      - Partners
      summary: Get Partner
      x-source: https://refref.ai/docs/api
      parameters:
      - name: participantid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/partners/{participantid}/payouts:
    get:
      operationId: get_v1_partners_participantid_payouts
      tags:
      - Partners
      summary: List Partner Payouts
      x-source: https://refref.ai/docs/api
      parameters:
      - name: participantid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/partners/{partnerid}/ban:
    post:
      operationId: post_v1_partners_partnerid_ban
      tags:
      - Partners
      summary: Ban Partner
      x-source: https://refref.ai/docs/api
      parameters:
      - name: partnerid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/programs:
    get:
      operationId: get_v1_programs
      tags:
      - Programs
      summary: Programs
      description: GET /v1/programs
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_v1_programs
      tags:
      - Programs
      summary: Create Program
      description: Create Program
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/programs/string/end:
    post:
      operationId: post_v1_programs_string_end
      tags:
      - Programs
      summary: POST /v1/programs/string/end
      x-source: https://refref.ai/docs/api/end-program
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1ProgramsStringEndRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1ProgramsStringEndResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl JavaScript Go Python Java C# Rust Copy Text curl -X POST "https://example.com/v1/programs/string/end" \ -H "Content-Type:
          application/json" \ -d ''{ "projectId": "string" }'' 200 400 401 403 404 409 Copy Text { "success": true, "data": {} } End Enrollment
          POST Previous Page Enroll Participant POST Next Page projectId * string Copy Link Length 1 <= length <= 128'
  /v1/programs/{programid}:
    get:
      operationId: get_v1_programs_programid
      tags:
      - Programs
      summary: GET /v1/programs/{programId}
      description: GET /v1/programs/{programId}
      x-source: https://refref.ai/docs/api
      parameters:
      - name: programid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    patch:
      operationId: patch_v1_programs_programid
      tags:
      - Programs
      summary: PATCH /v1/programs/{programId}
      description: PATCH /v1/programs/{programId}
      x-source: https://refref.ai/docs/api
      parameters:
      - name: programid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/projects:
    get:
      operationId: get_v1_projects
      tags:
      - Projects
      summary: GET /v1/projects
      description: GET /v1/projects
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/purchase-adjustments:
    post:
      operationId: post_v1_purchase_adjustments
      tags:
      - Purchase Adjustments
      summary: Intake Purchase Adjustment
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/purchases:
    get:
      operationId: get_v1_purchases
      tags:
      - Purchases
      summary: List Purchases
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/referral-codes:
    post:
      operationId: post_v1_referral_codes
      tags:
      - Referral Codes
      summary: Enrollment and codes
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/referral-links:
    post:
      operationId: post_v1_referral_links
      tags:
      - Referral Links
      summary: Create Referral Link
      description: Create Referral Link
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/referrals:
    get:
      operationId: get_v1_referrals
      tags:
      - Referrals
      summary: List Referrals
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_v1_referrals
      tags:
      - Referrals
      summary: Record a referral that you know, for example from a sales call
      description: Record a referral that you know
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/referrers:
    get:
      operationId: get_v1_referrers
      tags:
      - Referrers
      summary: List Referrers
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/reward-rules:
    get:
      operationId: get_v1_reward_rules
      tags:
      - Reward Rules
      summary: GET /v1/reward-rules
      description: GET /v1/reward-rules
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/rewards:
    get:
      operationId: get_v1_rewards
      tags:
      - Rewards
      summary: GET /v1/rewards
      x-source: https://refref.ai/docs/api
      parameters:
      - name: projectId
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://api.refref.ai/v1/rewards?projectId=prj_…  -H \"X-Api-Key: $REFREF_API_KEY \" \n Owners and admins create API keys\
          \ in the Console. A key belongs to the Workspace, not to the person who created it, so it keeps working after that person leaves. \n\
          \ Keep the key on your server. Never put it in browser code, mobile apps, prompts, or logs. \n Two routes do not take an API key, because\
          \ the browser"
  /v1/rewards/{rewardid}:
    get:
      operationId: get_v1_rewards_rewardid
      tags:
      - Rewards
      summary: Get Reward
      x-source: https://refref.ai/docs/api
      parameters:
      - name: rewardid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/rewards/{rewardid}/delivery/retry:
    post:
      operationId: post_v1_rewards_rewardid_delivery_retry
      tags:
      - Rewards
      summary: Retry Reward Delivery
      x-source: https://refref.ai/docs/api
      parameters:
      - name: rewardid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/rewards/{rewardid}/fulfillment:
    post:
      operationId: post_v1_rewards_rewardid_fulfillment
      tags:
      - Rewards
      summary: Fulfill Reward
      x-source: https://refref.ai/docs/api
      parameters:
      - name: rewardid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/rewards/{rewardid}/revocation:
    post:
      operationId: post_v1_rewards_rewardid_revocation
      tags:
      - Rewards
      summary: Revoke Reward
      x-source: https://refref.ai/docs/api
      parameters:
      - name: rewardid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/rewards/{rewardid}/void:
    post:
      operationId: post_v1_rewards_rewardid_void
      tags:
      - Rewards
      summary: Void Reward
      x-source: https://refref.ai/docs/api
      parameters:
      - name: rewardid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/subscriptions/facts:
    post:
      operationId: post_v1_subscriptions_facts
      tags:
      - Subscriptions
      summary: Intake Subscription Fact
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/track/events:
    post:
      operationId: post_v1_track_events
      tags:
      - Track
      summary: Intake Event
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/webhook-deliveries:
    get:
      operationId: get_v1_webhook_deliveries
      tags:
      - Webhook Deliveries
      summary: List Webhook Deliveries
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/webhook-endpoints:
    get:
      operationId: get_v1_webhook_endpoints
      tags:
      - Webhook Endpoints
      summary: List Webhook Endpoints
      description: GET /v1/webhook-endpoints
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_v1_webhook_endpoints
      tags:
      - Webhook Endpoints
      summary: Create Webhook Endpoint
      description: POST /v1/webhook-endpoints
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/webhook-endpoints/{endpointid}:
    delete:
      operationId: delete_v1_webhook_endpoints_endpointid
      tags:
      - Webhook Endpoints
      summary: Delete Webhook Endpoint
      description: DELETE /v1/webhook-endpoints/{endpointId}
      x-source: https://refref.ai/docs/api
      parameters:
      - name: endpointid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/webhook-events:
    get:
      operationId: get_v1_webhook_events
      tags:
      - Webhook Events
      summary: List Webhook Events
      description: GET /v1/webhook-events
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/widget/init:
    post:
      operationId: post_v1_widget_init
      tags:
      - Widget
      summary: A short-lived Widget token that your backend signs.
      x-source: https://refref.ai/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/widget/payout-details:
    get:
      operationId: get_v1_widget_payout_details
      tags:
      - Widget
      summary: Get Widget Payout Details
      description: GET /v1/widget/payout-details
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    put:
      operationId: put_v1_widget_payout_details
      tags:
      - Widget
      summary: Set Widget Payout Details
      description: PUT /v1/widget/payout-details
      x-source: https://refref.ai/docs/api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    GetHealthResponse:
      type: object
      properties:
        ok:
          type: boolean
        service:
          type: string
        checks:
          type: object
    GetV1EventsStringResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            id:
              type: string
            createdAt:
              type: string
            updatedAt:
              type: string
            projectId:
              type: string
            participantId:
              type: string
            type:
              type: string
            actorParticipantId:
              type: string
            sourceEventId:
              type: string
            occurredAt:
              type: string
            receivedAt:
              type: string
            normalizedFacts:
              type: object
              properties:
                property1:
                  type:
                  - string
                  - 'null'
                property2:
                  type:
                  - string
                  - 'null'
            factsHash:
              type: string
            processingState:
              type: string
            processingReason:
              type: string
            attemptCount:
              type: integer
            nextAttemptAt:
              type: string
    PostV1ProgramsStringEndRequest:
      type: object
      properties:
        projectId:
          type: string
    PostV1ProgramsStringEndResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-Api-Key
security:
- apiKey: []
tags:
- name: Attribution
- name: Benefit Rules
- name: Capture
- name: Connections
- name: Custom Units
- name: Enrollments
- name: Events
- name: Evidence
- name: Health
- name: Identify
- name: Openapi
- name: Participants
- name: Partner Applications
- name: Partner Invitations
- name: Partners
- name: Programs
- name: Projects
- name: Purchase Adjustments
- name: Purchases
- name: Referral Codes
- name: Referral Links
- name: Referrals
- name: Referrers
- name: Reward Rules
- name: Rewards
- name: Subscriptions
- name: Track
- name: Webhook Deliveries
- name: Webhook Endpoints
- name: Webhook Events
- name: Widget