Dub

Dub Partners API

The Partners API from Dub — 6 operation(s) for partners.

GitHub OpenAPI
Business capability
Channel Sales Management BC-410.60

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /partners Enroll a partner in the program · Create or update a partner #
Ask an LLM
“How do I add a new affiliate partner to my program?”
“What happens if I enroll a partner whose email is already in the program?”
Tell an agent
Enroll {email} as a partner named {name}.
Add partner {email} with username {username} and country {country}.
GET /partners List partners in a partner program · List all partners #
Ask an LLM
“Which partners are enrolled in my affiliate program?”
“Can I filter partners by country or status?”
Tell an agent
List all partners in the program.
List partners in country {country}.
GET /partners/analytics Get a partner's analytics · Retrieve analytics for a partner #
Ask an LLM
“How many clicks and conversions has a partner generated?”
“Can I group a partner's analytics by day or by event type?”
Tell an agent
Get analytics for partner {partnerId} over {interval}.
Show partner {partnerId}'s analytics grouped by {groupBy} from {start} to {end}.
POST /partners/ban Ban a partner from the program · Ban a partner #
Ask an LLM
“How do I ban a partner and cancel all their commissions?”
“What happens to a partner's links when they are banned?”
Tell an agent destructive · confirm first
Ban partner {partnerId} because {reason}.
Banned partner {tenantId} for {reason}.
POST /partners/deactivate Deactivate a partner · Deactivate a partner #
Ask an LLM
“How do I temporarily disable a partner without banning them?”
“Will a deactivated partner's commissions still be paid out?”
Tell an agent destructive · confirm first
Deactivate partner {partnerId}.
Deactivate partner with tenant ID {tenantId}.

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/dub:dub-partners-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

dub-partners-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dub Partners API
  description: Dub is the modern link attribution platform for short links, conversion tracking, and affiliate programs.
  version: 0.0.1
  contact:
    name: Dub Support
    email: support@dub.co
    url: https://dub.co/support
  license:
    name: AGPL-3.0 license
    url: https://github.com/dubinc/dub/blob/main/LICENSE.md
servers:
- url: https://api.dub.co
  description: Production API
tags:


# --- truncated at 32 KB (102 KB total) ---
# Full source: https://artifacts.apis.io/dub/openapi/dub-partners-api-openapi.yml