ConfBuilder Affiliates API

The affiliates API from ConfBuilder — 8 operation(s) for affiliates.

GitHub OpenAPI

Operations 11

GET /affiliates List Affiliates #
POST /affiliates Create Affiliate #
GET /affiliates/by-code/{code} Get Affiliate By Code #
GET /affiliates/me Affiliate Me #
GET /affiliates/me/stats Affiliate Me Stats #
GET /affiliates/me/sales Affiliate Me Sales #
GET /affiliates/me/earnings Affiliate Me Earnings #
POST /affiliates/{code}/click Affiliate Click #
GET /affiliates/{affiliate_id} Get Affiliate #
PATCH /affiliates/{affiliate_id} Update Affiliate #
DELETE /affiliates/{affiliate_id} Delete Affiliate #

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/seamlessevents-io:seamlessevents-io-affiliates-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

seamlessevents-io-affiliates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: confbuilder-api Affiliates API
  description: General API for the seamless frontend.
  contact:
    name: confbuilder-api
    url: https://gitea.jms.rocks/confbuilder/confbuilder-api
    email: contact@jamestwose.com
  version: 0.0.1
tags:
- name: Affiliates
paths:
  /affiliates:
    get:
      tags:
      - Affiliates
      summary: List Affiliates
      operationId: list_affiliates_affiliates_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: active_only
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Active Only
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateListSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Affiliates
      summary: Create Affiliate
      description: 'Public: the confbuilder-website signup form creates the affiliate row.

        On success: welcome email with the code + share link (best-effort).'
      operationId: create_affiliate_affiliates_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AffiliateCreateSchema'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateContentSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /affiliates/by-code/{code}:
    get:
      tags:
      - Affiliates
      summary: Get Affiliate By Code
      operationId: get_affiliate_by_code_affiliates_by_code__code__get
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
          title: Code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateContentSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /affiliates/me:
    get:
      tags:
      - Affiliates
      summary: Affiliate Me
      description: 'The signed-in affiliate''s profile: code, link, commission rate.'
      operationId: affiliate_me_affiliates_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateMeSchema'
  /affiliates/me/stats:
    get:
      tags:
      - Affiliates
      summary: Affiliate Me Stats
      description: 'Dashboard cards: clicks, referred sales (paid event upgrades), gross,

        per-currency pending/paid commission, this-month commission, conversion.'
      operationId: affiliate_me_stats_affiliates_me_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateStatsSchema'
  /affiliates/me/sales:
    get:
      tags:
      - Affiliates
      summary: Affiliate Me Sales
      description: 'Referred event-upgrade payments: gross → your commission + earn status.'
      operationId: affiliate_me_sales_affiliates_me_sales_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateSalesSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /affiliates/me/earnings:
    get:
      tags:
      - Affiliates
      summary: Affiliate Me Earnings
      description: 'Ledger + pending/paid summary per currency. Payouts are manual in phase 1

        (no Polar Connect) — pending rows accrue until admin settlement.'
      operationId: affiliate_me_earnings_affiliates_me_earnings_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateEarningsSchema'
  /affiliates/{code}/click:
    post:
      tags:
      - Affiliates
      summary: Affiliate Click
      description: Fire-and-forget ping from the website (?ref=CODE, once per session).
      operationId: affiliate_click_affiliates__code__click_post
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
          title: Code
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /affiliates/{affiliate_id}:
    get:
      tags:
      - Affiliates
      summary: Get Affiliate
      operationId: get_affiliate_affiliates__affiliate_id__get
      parameters:
      - name: affiliate_id
        in: path
        required: true
        schema:
          type: string
          title: Affiliate Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateContentSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Affiliates
      summary: Update Affiliate
      operationId: update_affiliate_affiliates__affiliate_id__patch
      parameters:
      - name: affiliate_id
        in: path
        required: true
        schema:
          type: string
          title: Affiliate Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AffiliateUpdateSchema'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateContentSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Affiliates
      summary: Delete Affiliate
      operationId: delete_affiliate_affiliates__affiliate_id__delete
      parameters:
      - name: affiliate_id
        in: path
        required: true
        schema:
          type: string
          title: Affiliate Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    AffiliateUpdateSchema:
      properties:
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        email:
          anyOf:
          - type: string
            format: email
          - type: 'null'
          title: Email
        code:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
        commissionRate:
          anyOf:
          - type: number
          - type: 'null'
          title: Commissionrate
        isActive:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Isactive
        website:
          anyOf:
          - type: string
          - type: 'null'
          title: Website
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
        country:
          anyOf:
          - type: string
          - type: 'null'
          title: Country
      type: object
      title: AffiliateUpdateSchema
    AffiliateMeSchema:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        email:
          type: string
          title: Email
        code:
          type: string
          title: Code
        website:
          anyOf:
          - type: string
          - type: 'null'
          title: Website
        commissionRate:
          type: number
          title: Commissionrate
      type: object
      required:
      - id
      - name
      - email
      - code
      - commissionRate
      title: AffiliateMeSchema
    AffiliateContentSchema:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        email:
          type: string
          title: Email
        code:
          type: string
          title: Code
        commissionRate:
          type: number
          title: Commissionrate
        isActive:
          type: boolean
          title: Isactive
        website:
          anyOf:
          - type: string
          - type: 'null'
          title: Website
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
        clicksCount:
          type: integer
          title: Clickscount
          default: 0
        country:
          anyOf:
          - type: string
          - type: 'null'
          title: Country
        createdAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Createdat
        updatedAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updatedat
      type: object
      required:
      - id
      - name
      - email
      - code
      - commissionRate
      - isActive
      title: AffiliateContentSchema
    AffiliateSaleItemSchema:
      properties:
        id:
          type: string
          title: Id
        eventTitle:
          anyOf:
          - type: string
          - type: 'null'
          title: Eventtitle
        buyerName:
          anyOf:
          - type: string
          - type: 'null'
          title: Buyername
        grossCents:
          type: integer
          title: Grosscents
        commissionCents:
          anyOf:
          - type: integer
          - type: 'null'
          title: Commissioncents
        currency:
          type: string
          title: Currency
        status:
          type: string
          title: Status
        earningStatus:
          anyOf:
          - type: string
          - type: 'null'
          title: Earningstatus
        purchasedAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Purchasedat
      type: object
      required:
      - id
      - grossCents
      - currency
      - status
      title: AffiliateSaleItemSchema
    AffiliateStatsSchema:
      properties:
        clicks:
          type: integer
          title: Clicks
        sales:
          type: integer
          title: Sales
        grossRevenueCents:
          type: integer
          title: Grossrevenuecents
        currency:
          type: string
          title: Currency
        commission:
          items:
            $ref: '#/components/schemas/AffiliateMoneySchema'
          type: array
          title: Commission
        thisMonthCents:
          type: integer
          title: Thismonthcents
        conversionRate:
          anyOf:
          - type: number
          - type: 'null'
          title: Conversionrate
      type: object
      required:
      - clicks
      - sales
      - grossRevenueCents
      - currency
      - commission
      - thisMonthCents
      title: AffiliateStatsSchema
    AffiliateCreateSchema:
      properties:
        name:
          type: string
          title: Name
        email:
          type: string
          format: email
          title: Email
        code:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
        website:
          anyOf:
          - type: string
          - type: 'null'
          title: Website
        notes:
          anyOf:
          - type: string
          - type: 'null'
          title: Notes
      type: object
      required:
      - name
      - email
      title: AffiliateCreateSchema
      description: 'Public signup (confbuilder-website /affiliates). commission_rate/is_active

        are admin-only knobs — the public POST never sets them.'
    AffiliateEarningsSchema:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AffiliateEarningItemSchema'
          type: array
          title: Items
        summary:
          items:
            $ref: '#/components/schemas/EarningsSummarySchema'
          type: array
          title: Summary
      type: object
      required:
      - items
      - summary
      title: AffiliateEarningsSchema
    AffiliateSalesSchema:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AffiliateSaleItemSchema'
          type: array
          title: Items
        total:
          type: integer
          title: Total
      type: object
      required:
      - items
      - total
      title: AffiliateSalesSchema
    AffiliateListSchema:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AffiliateContentSchema'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
        page:
          type: integer
          title: Page
      type: object
      required:
      - items
      - total
      - limit
      - offset
      - page
      title: AffiliateListSchema
    AffiliateMoneySchema:
      properties:
        currency:
          type: string
          title: Currency
        pendingCents:
          type: integer
          title: Pendingcents
          default: 0
        paidCents:
          type: integer
          title: Paidcents
          default: 0
      type: object
      required:
      - currency
      title: AffiliateMoneySchema
    EarningsSummarySchema:
      properties:
        currency:
          type: string
          title: Currency
        pendingCents:
          type: integer
          title: Pendingcents
          default: 0
        paidCents:
          type: integer
          title: Paidcents
          default: 0
      type: object
      required:
      - currency
      title: EarningsSummarySchema
    AffiliateEarningItemSchema:
      properties:
        id:
          type: string
          title: Id
        amountCents:
          type: integer
          title: Amountcents
        currency:
          type: string
          title: Currency
        status:
          type: string
          title: Status
        paidAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Paidat
        transferId:
          anyOf:
          - type: string
          - type: 'null'
          title: Transferid
        createdAt:
          type: string
          format: date-time
          title: Createdat
      type: object
      required:
      - id
      - amountCents
      - currency
      - status
      - createdAt
      title: AffiliateEarningItemSchema
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError