Get your program

Get your program

Returns the program the API key belongs to — the canonical "who am I keyed against" read. There is no program id in the URL: program-scoped API keys carry their program.

Response — 200 OK

{
  "id": "prog_abc123",
  "name": "Acme Inc",
  "icon": "https://example.com/acme.png",
  "status": "online",
  "isSuspended": false,
  "isPermanentlyTerminated": false,
  "createdAt": "2026-10-01T00:00:00.000Z",
  "updatedAt": "2026-10-31T00:00:00.000Z",
  "category": "saas",
  "companyDescription": "Acme builds developer tools.",
  "contact": {
    "method": "email",
    "email": "[email protected]",
    "formUrl": null
  },
  "programTermsUrl": null,
  "homeURL": "https://acme.com",
  "brandColor": "#10B981",
  "requireApplication": true,
  "serveEuUkCustomers": true,
  "listInMarketplace": true,
  "hostedAffiliatePortal": true,
  "affiliatePageDomain": "acme.rezfiliate.com",
  "trackingMethod": {
    "type": "referral_link_discount_code",
    "discount": 1000,
    "discountType": "percentage",
    "discountAppliesEveryMonth": true,
    "discountDuration": 3
  },
  "commissionStructure": {
    "type": "percentage",
    "amount": 2000,
    "isSubscription": false,
    "durationMonths": 0,
    "enabled": true
  },
  "platform": {
    "name": "shopify",
    "status": "connected",
    "domain": "acme.myshopify.com",
    "currency": "usd",
    "isSandbox": false,
    "lastEvent": "2026-10-31T12:00:00.000Z"
  }
}

Field notes

FieldNotes
statusincomplete, online, paused (disturbed), or a terminated state. Public affiliate actions (apply, discount codes, visits) require online.
contactmethod is email or form_link; the matching field holds the value and the other is typically null.
trackingMethodnull when never configured. discount is basis points (1000 = 10%), null when the program has no code discount configured. discountDuration is the number of monthly renewals covered when discountAppliesEveryMonth is true (null = forever); always null when it is false (codes apply to the first payment only).
commissionStructurenull when never configured. amount is basis points for percentage, or the currency's smallest unit for set_amount. durationMonths limits subscription commissions to their first N months (0 = unlimited). enabled: false means rewards flow exclusively through the custom webhook — no commissions are recorded.
platformnull when no store is connected. isSandbox: true means the integration runs against a sandbox/test store; lastEvent is the most recent webhook the platform delivered.
affiliatePageDomainThe affiliate portal's hostname, null before a domain is claimed.

Errors — all { "error": "<message>" }:

Statuserror values
404Program not found. (the key's program no longer exists)