Skip to main content
New to Corsair? See API access, authentication, and error handling.

Analytics

retrieve

analytics.retrieve Read aggregated click, lead and sale analytics, grouped by count, timeseries, country, device, link and more Risk: read
Input Output: object \| object[]

Bounties

approveSubmission

bounties.approveSubmission Approve a bounty submission: approve a bounty submission. Optionally specify a custom reward amount. (awards the bounty reward) Risk: destructive
Input Output

listSubmissions

bounties.listSubmissions List bounty submissions: list all submissions for a specific bounty in your partner program. Risk: read
Input Output: object[]

rejectSubmission

bounties.rejectSubmission Reject a bounty submission: reject a bounty submission with a specified reason and optional note. (notifies the partner) Risk: destructive
Input Output

Commissions

bulkUpdate

commissions.bulkUpdate Bulk update commissions: bulk update up to 100 commissions with the same status. (changes what partners are paid) Risk: destructive
Input Output: object[]

create

commissions.create Create commission: create one or more commissions (custom, lead or sale) for a partner. Custom commissions accept a negative amount to create a clawback. Commission creation… (creates a commission owed to a partner) Risk: destructive
Input: object
Output

list

commissions.list List all commissions: retrieve a paginated list of commissions for your partner program. Risk: read
Input Output: object[]

update

commissions.update Update a commission: update an existing commission amount. This is useful for handling refunds (partial or full) or fraudulent sales. (changes what a partner is paid) Risk: destructive
Input Output

Customers

delete

customers.delete Permanently delete a customer; past events keep their recorded data Risk: destructive · Irreversible
Input Output

get

customers.get Retrieve one customer by their Dub id, or their externalId prefixed with ext_ Risk: read
Input Output

list

customers.list List customers with filters and cursor paging; the next cursor is the last customer id Risk: read
Input Output

update

customers.update Update a customer email, name, avatar or country Risk: write
Input Output

Discount Codes

create

discountCodes.create Create a discount code: create a discount code for a partner. The partner’s group must already have a discount assigned to it, and the discount code must be associated with a link… (creates a live discount code) Risk: destructive
Input Output

delete

discountCodes.delete Delete a discount code: delete a discount code for a partner by its unique ID or alphanumeric code. This will also disable the code in your connected discount provider (Stripe,… (deletes the code; customers can no longer use it) Risk: destructive · Irreversible
Input Output

list

discountCodes.list List discount codes: retrieve a paginated list of discount codes in a program or filtered by partner, discount, or code. Risk: read
Input Output: object[]

Domains

checkStatus

domains.checkStatus Check the availability of one or more domains: check if a domain name is available for purchase. You can check multiple domains at once. Risk: read
Input Output: object[]

create

domains.create Add a domain to the workspace; it still needs DNS verification in the dashboard Risk: write
Input Output

delete

domains.delete Permanently delete a domain; its links stop resolving and analytics are not restored on recreate Risk: destructive · Irreversible
Input Output

list

domains.list List the workspace domains with search and page paging Risk: read
Input Output

register

domains.register Register a domain: register a domain for the authenticated workspace. Only available for Enterprise Plans. (claims a .link domain for the workspace) Risk: destructive · Irreversible
Input Output

update

domains.update Update a domain or rename it with newSlug; redirects and branding are editable here Risk: write
Input Output

Embed Tokens

createReferrals

embedTokens.createReferrals Create a referrals embed token: create a referrals embed token for the given partner/tenant. The endpoint first attempts to locate an existing enrollment using the provided tenantId. If no… Risk: write
Input
Output

Events

list

events.list List raw click, lead and sale events with filters, newest first Risk: read
Input Output

Folders

create

folders.create Create a folder to group links, with an access level Risk: write
Input Output

delete

folders.delete Permanently delete a folder; its links keep existing Risk: destructive · Irreversible
Input Output

list

folders.list List folders with search and page paging Risk: read
Input Output

update

folders.update Rename a folder, change its description or access level Risk: write
Input Output

bulkCreate

links.bulkCreate Create up to 100 links in one call; the answer carries one row per link, including per-link errors Risk: write
Input
Output: object[]

bulkDelete

links.bulkDelete Permanently delete up to 100 links in one call; their analytics are not recoverable Risk: destructive · Irreversible
Input Output

bulkUpdate

links.bulkUpdate Apply one set of field changes to up to 100 links named by id or externalId Risk: write
Input
Output: object[]

count

links.count Count links matching the filters, optionally grouped by domain, tag, folder or user Risk: read
Input Output: number \| object[]

create

links.create Create a short link; a duplicate domain and slug answers 409 conflict Risk: write
Input
Output

delete

links.delete Permanently delete a short link; recreating it does not restore its analytics Risk: destructive · Irreversible
Input Output

get

links.get Retrieve one link by id, externalId, or a domain and slug pair Risk: read
Input Output

list

links.list List short links with filters and cursor paging; the next cursor is the last link id Risk: read
Input Output

update

links.update Update a short link by id (or externalId prefixed with ext_) Risk: write
Input
Output

upsert

links.upsert Create a link, or return and update the existing link with the same destination url; a different key renames that link’s slug, so use links.update to change one specific link Risk: write
Input
Output

Messages

create

messages.create Send a message to a partner: send a direct message from your partner program to a partner. Until the partner replies, you can only send one message to a partner who isn’t enrolled in your… (sends a message to the partner) Risk: destructive
Input Output

list

messages.list List all messages: retrieve a paginated list of direct messages between your partner program and its partners, newest first. Risk: read
Input Output: object[]

Partners

analytics

partners.analytics Retrieve analytics for a partner: retrieve analytics for a partner within a program. The response type vary based on the groupBy query parameter. Risk: read
Input Output: object \| object[]

attributeReferringPartner

partners.attributeReferringPartner Attribute a referring partner: attribute a partner to the partner who referred them. Both partners must be approved in your program, and a partner can only be attributed once. When… (can create commissions for past events) Risk: destructive
Input Output

ban

partners.ban Ban a partner: ban a partner from your program. This will disable all links and mark all commissions as canceled. (bans the partner from the program) Risk: destructive
Input Output

create

partners.create Create or update a partner: creates a partner and enrolls them in the program. If that email is already enrolled, the enrollment is returned unchanged, except a different tenantId… Risk: write
Input
Output

partners.createLink Create a link for a partner: create a link for a partner that is enrolled in your program. Risk: write
Input
Output

deactivate

partners.deactivate Deactivate a partner: this will deactivate the partner from your program and disable all their active links. Their commissions and payouts will remain intact. You can reactivate… (removes the partner and disables their links) Risk: destructive
Input Output

list

partners.list List all partners: list all partners for a partner program. Risk: read
Input Output: object[]

partners.listLinks Retrieve a partner’s links: retrieve a partner’s links by their partner ID or tenant ID. Risk: read
Input Output: object[]

listNetwork

partners.listNetwork List all partners in the network: list the partners in the Dub partner network for your program. The partner network must be enabled for the program. Risk: read
Input Output: object[]

updateGroup

partners.updateGroup Update the group of partners: move up to 100 partners enrolled in your program into a group. They get the group’s rewards and discount. Partners already in the group are skipped, unless… Risk: write
Input Output

updateTags

partners.updateTags Update the tags of partners: add and remove partner tags on up to 100 partners enrolled in your program. Tags that a partner already has are not added again, and tags a partner does not… Risk: write
Input Output
partners.upsertLink Upsert a link for a partner: upsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes).… Risk: write
Input
Output

Payouts

list

payouts.list List all payouts: retrieve a paginated list of payouts for your partner program. Risk: read
Input Output: object[]

Program Applications

approve

programApplications.approve Approve a partner application: approve a pending partner application to your program. The partner will be enrolled in the specified group and notified of the approval. (enrolls the partner and emails them) Risk: destructive
Input Output

list

programApplications.list List all program applications: retrieve a paginated list of applications for your partner program. Filter by status to list pending, approved, or rejected applications. Risk: read
Input Output: object[]

reject

programApplications.reject Reject a partner application: reject a pending partner application to your program. The partner will be notified via email that their application was not approved. (emails the partner) Risk: destructive
Input Output

Qr

get

qr.get Generate an SVG QR code for a URL; the document comes back as the svg string Risk: read
Input Output

Tags

create

tags.create Create a tag with an optional color Risk: write
Input Output

delete

tags.delete Permanently delete a tag and remove it from every link Risk: destructive · Irreversible
Input Output

list

tags.list List tags with search, sorting and page paging Risk: read
Input Output

update

tags.update Rename a tag or change its color Risk: write
Input Output

Track

lead

track.lead Record a lead conversion attributed to a click; there is no delete, so a tracked lead cannot be undone Risk: destructive · Irreversible
Input Output

open

track.open Track a deep link open event: this endpoint is used to track when a user opens your app via a Dub-powered deep link (for both iOS and Android). Risk: write
Input Output

sale

track.sale Record a sale conversion in cents attributed to a customer; invoiceId deduplicates, but a tracked sale cannot be undone Risk: destructive · Irreversible
Input Output