Reference
Partners
Partners and influencers, their codes and links, their private pages.
Every operation below is also in the OpenAPI document. One that names an MCP tool can be called through the MCP server; one that names none cannot.
List partners#
GET /v1/partners
Operation id listPartners. MCP tool list_partners. SDK tickets.partners.list.
Partners and influencers, newest first, with their kind, email, the ids of the codes and tracking links they own, and whether their page is on. The page link itself is never in a list.
Who may call it. Any one of: An API key with scope full, read. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has read (owner, admin, staff, viewer).
| Parameter | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many to return, 1 to 100 (default 20). |
starting_after | query | string | An id from the page before: the page after it. |
ending_before | query | string | An id from the page after: the page before it. A list read from the database offers it as the list comes and filtered by event alone, in the default order, and answers parameter_invalid to any other… |
Answers 200. A page of partners.
Fields
| Field | Type | Description |
|---|---|---|
object * | "list" | |
data * | array of Partner | This page, newest first. |
has_more * | boolean | True when there is another page: pass the last id as starting_after. |
url * | "/v1/partners" | The path this list came from (/v1/partners). |
* required
Add a partner or influencer#
POST /v1/partners
Operation id createPartner. MCP tool create_partner. SDK tickets.partners.create.
Adds a partner or influencer: a person or company that owns codes (partner on a code) and tracking links (partner on a link). A name is plain text, never an email address or a phone number. Then make their page with POST /v1/partners/{id}/page.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has partners.manage (owner, admin, staff).
Request body (CreatePartnerInput)
| Field | Type | Description |
|---|---|---|
name * | string | |
email | string (email) | An email address. |
kind | "partner" | "influencer" | |
metadata | object | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
* required
{
"name": "iHeart",
"kind": "partner"
}Answers 201. The partner.
Fields (Partner)
| Field | Type | Description |
|---|---|---|
object * | "partner" | |
id * | string | An id starting with ptr_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
name * | string | |
email * | string | null | |
kind * | "partner" | "influencer" | |
codes * | array of string | Codes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them. |
codes_total | integer | How many codes it owns, a batch's included. |
tracking_links * | array of string | Its tracking links: up to 500. |
tracking_links_total | integer | How many tracking links it owns. |
page * | object | |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
updated_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
metadata * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
* required
Retrieve a partner#
GET /v1/partners/{id}
Operation id getPartner. MCP tool get_partner. SDK tickets.partners.retrieve.
One partner with their kind, their codes and links and whether their private page is on and when its link ends. The link itself cannot be read again: only a hash of it is kept.
Who may call it. Any one of: An API key with scope full, read. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has read (owner, admin, staff, viewer).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with ptr_. |
Answers 200. The partner.
Fields (Partner)
| Field | Type | Description |
|---|---|---|
object * | "partner" | |
id * | string | An id starting with ptr_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
name * | string | |
email * | string | null | |
kind * | "partner" | "influencer" | |
codes * | array of string | Codes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them. |
codes_total | integer | How many codes it owns, a batch's included. |
tracking_links * | array of string | Its tracking links: up to 500. |
tracking_links_total | integer | How many tracking links it owns. |
page * | object | |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
updated_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
metadata * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
* required
Change a partner#
PATCH /v1/partners/{id}
Operation id updatePartner. MCP tool update_partner. SDK tickets.partners.update.
Changes a partner's name, email, kind or metadata. Send only the fields to change.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has partners.manage (owner, admin, staff).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with ptr_. |
Request body (UpdatePartnerInput)
| Field | Type | Description |
|---|---|---|
name | string | |
email | string | null | An email address. |
kind | "partner" | "influencer" | |
metadata | object | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
{
"email": null
}Answers 200. Updated.
Fields (Partner)
| Field | Type | Description |
|---|---|---|
object * | "partner" | |
id * | string | An id starting with ptr_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
name * | string | |
email * | string | null | |
kind * | "partner" | "influencer" | |
codes * | array of string | Codes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them. |
codes_total | integer | How many codes it owns, a batch's included. |
tracking_links * | array of string | Its tracking links: up to 500. |
tracking_links_total | integer | How many tracking links it owns. |
page * | object | |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
updated_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
metadata * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
* required
Make (or replace) the partner's private page link#
POST /v1/partners/{id}/page
Operation id createPartnerPage. MCP tool create_partner_page. SDK tickets.partners.createPage.
Makes the partner's private page link and replaces any earlier one in the same step (the old link stops working). The link is in page.url of this answer only and is good for a year; we keep a hash of it, so it cannot be shown again. The answer is never replayed for an Idempotency-Key: a retry makes another link and the first one dies. email_partner: true emails it to the partner (at most 3 times a day); page.emailed says whether it went, and if it did not, the link is still in the answer.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has partners.manage (owner, admin, staff).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with ptr_. |
Request body (CreatePartnerPageInput)
| Field | Type | Description |
|---|---|---|
email_partner | boolean | Email the link to the partner. |
{
"email_partner": true
}Answers 200. The partner with page.url (shown once).
Fields (Partner)
| Field | Type | Description |
|---|---|---|
object * | "partner" | |
id * | string | An id starting with ptr_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
name * | string | |
email * | string | null | |
kind * | "partner" | "influencer" | |
codes * | array of string | Codes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them. |
codes_total | integer | How many codes it owns, a batch's included. |
tracking_links * | array of string | Its tracking links: up to 500. |
tracking_links_total | integer | How many tracking links it owns. |
page * | object | |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
updated_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
metadata * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
* required
Turn the partner's page off#
POST /v1/partners/{id}/page/revoke
Operation id revokePartnerPage. MCP tool revoke_partner_page. SDK tickets.partners.revokePage.
Turns the partner's page off. The link answers partner_link_revoked, exactly as one that never existed does. Making a new link turns it on again. Turning off a page that is already off changes nothing.
Who may call it. Any one of: An API key with scope full. Any other scope answers insufficient_scope; A signed-in dashboard member whose role has partners.manage (owner, admin, staff).
| Parameter | In | Type | Description |
|---|---|---|---|
id * | path | string | An id starting with ptr_. |
Answers 200. Revoked: the link says it was turned off.
Fields (Partner)
| Field | Type | Description |
|---|---|---|
object * | "partner" | |
id * | string | An id starting with ptr_. |
mode * | Mode | test or live, decided by the key (rt_test_… or rt_live_…). Test and live data never mix. |
name * | string | |
email * | string | null | |
kind * | "partner" | "influencer" | |
codes * | array of string | Codes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them. |
codes_total | integer | How many codes it owns, a batch's included. |
tracking_links * | array of string | Its tracking links: up to 500. |
tracking_links_total | integer | How many tracking links it owns. |
page * | object | |
created_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
updated_at * | string (date-time) | An instant in ISO 8601 with its zone, e.g. 2027-07-17T20:00:00Z. Answers are always UTC. |
metadata * | Metadata | Your own key-value pairs (up to 50; keys up to 40 characters, values up to 500). We store and return them and never act on them. |
* required