Skip to content

Reference

Partners

Partners and influencers, their codes and links, their private pages.

View as Markdown

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).

ParameterInTypeDescription
limitqueryintegerHow many to return, 1 to 100 (default 20).
starting_afterquerystringAn id from the page before: the page after it.
ending_beforequerystringAn 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

FieldTypeDescription
object *"list"
data *array of PartnerThis page, newest first.
has_more *booleanTrue 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)

FieldTypeDescription
name *string
emailstring (email)An email address.
kind"partner" | "influencer"
metadataobjectYour 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

JSON
{
  "name": "iHeart",
  "kind": "partner"
}

Answers 201. The partner.

Fields (Partner)

FieldTypeDescription
object *"partner"
id *stringAn id starting with ptr_.
mode *Modetest 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 stringCodes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them.
codes_totalintegerHow many codes it owns, a batch's included.
tracking_links *array of stringIts tracking links: up to 500.
tracking_links_totalintegerHow 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 *MetadataYour 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).

ParameterInTypeDescription
id *pathstringAn id starting with ptr_.

Answers 200. The partner.

Fields (Partner)

FieldTypeDescription
object *"partner"
id *stringAn id starting with ptr_.
mode *Modetest 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 stringCodes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them.
codes_totalintegerHow many codes it owns, a batch's included.
tracking_links *array of stringIts tracking links: up to 500.
tracking_links_totalintegerHow 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 *MetadataYour 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).

ParameterInTypeDescription
id *pathstringAn id starting with ptr_.

Request body (UpdatePartnerInput)

FieldTypeDescription
namestring
emailstring | nullAn email address.
kind"partner" | "influencer"
metadataobjectYour 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.
JSON
{
  "email": null
}

Answers 200. Updated.

Fields (Partner)

FieldTypeDescription
object *"partner"
id *stringAn id starting with ptr_.
mode *Modetest 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 stringCodes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them.
codes_totalintegerHow many codes it owns, a batch's included.
tracking_links *array of stringIts tracking links: up to 500.
tracking_links_totalintegerHow 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 *MetadataYour 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).

ParameterInTypeDescription
id *pathstringAn id starting with ptr_.

Request body (CreatePartnerPageInput)

FieldTypeDescription
email_partnerbooleanEmail the link to the partner.
JSON
{
  "email_partner": true
}

Answers 200. The partner with page.url (shown once).

Fields (Partner)

FieldTypeDescription
object *"partner"
id *stringAn id starting with ptr_.
mode *Modetest 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 stringCodes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them.
codes_totalintegerHow many codes it owns, a batch's included.
tracking_links *array of stringIts tracking links: up to 500.
tracking_links_totalintegerHow 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 *MetadataYour 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).

ParameterInTypeDescription
id *pathstringAn id starting with ptr_.

Answers 200. Revoked: the link says it was turned off.

Fields (Partner)

FieldTypeDescription
object *"partner"
id *stringAn id starting with ptr_.
mode *Modetest 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 stringCodes it owns (code.partner): up to 500. codes_total is how many there are; GET /v1/codes?partner= pages through them.
codes_totalintegerHow many codes it owns, a batch's included.
tracking_links *array of stringIts tracking links: up to 500.
tracking_links_totalintegerHow 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 *MetadataYour 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