Skip to Content
Partner APIEndpoints

Endpoints

Reference for every partner-* endpoint. All endpoints authenticate with your master partner key via the x-access-key header.

Required Headers

HeaderDescription
x-access-keyYour master partner api key (warm_…). Must belong to an account flagged is_partner=true and be the key designated as your partner master.
Content-Typeapplication/json (POST endpoints only)

Base URL

https://api.warmai.uk/functions/v1

Common error codes

CodeMeaning
400Validation error (missing required field, malformed value)
401x-access-key missing, unknown, or revoked
402Payment required. partner-create-child-key returns it when your prepaid pool is empty, and partner-adopt-existing-key does too when monthly_id_quota is above 0. Every endpoint except partner-pool-state also returns it when your own account has no identifications left (no remaining monthly quota and no top-up balance).
403Key is valid but is not your designated partner master key, the account is not a partner, or the resource doesn’t belong to the caller
404Referenced child / api_key / website doesn’t exist
405Wrong HTTP method (e.g. GET on a POST endpoint)
409Conflict (domain already registered, key already adopted, etc.)
410The endpoint has been retired. partner-transfer-topup returns it with error_code: "endpoint_retired".
429Rate limit. partner-rotate-child-key allows 10 rotations per child per 24h. Every endpoint except partner-pool-state is also subject to the API-wide request rate limit, which returns 429 with a Retry-After header.
500Internal — retry; if it persists, contact support

Every error response is { "success": false, "error": "<message>" }.


Create Child Key

POST /partner-create-child-key

Mint a brand-new managed customer. Creates a phantom user, an api_key under your account, a website with a fresh tracking_script_id, and a 30-day subscription period. Returns the plaintext api key and (if requested) webhook secret exactly once.

Request Body

FieldTypeRequiredDescription
namestringYesDisplay name for the customer (shown in partner-list-children results)
domainstringYesThe customer’s tracker domain, e.g. acme.com. Bare domain — no scheme, no path.
monthly_id_quotaintNoThe most IDs the child can use per period, drawn from your partner pool. Default 0, which means the child is paused: no identifications until you set a positive quota with partner-update-child.
webhook_urlstringNoHTTPS URL to receive visitor identification events. Must be reachable when you set it, or the call returns 400.
webhook_secretstringNoIf webhook_url is set: your own secret (min 8 chars). If omitted, we mint one and return it.
brand_namestringNoWhitelabel display name. Defaults to name.
company_onlybooleanNotrue turns off person-level identification for this customer: only companies are identified. You can change it later with partner-update-child. If your partner account is contracted as company-only, every child is company-only regardless of this field. Otherwise person-level switches on as soon as the customer can use IDs: straight away if you set a monthly_id_quota above 0, or when you raise it later.
send_repeat_visitsbooleanNoDefault true. false stops visitor_identified webhooks for repeat visits: a company or person already identified for this customer in the last 30 days (repeats are not charged). Only the first identification in each 30-day window is sent. You can change it later with partner-update-child. Returned as child.send_repeat_visits.
skip_bouncesbooleanNotrue skips identifying one-page visits under 10 seconds with no buying intent on this customer’s site (not charged); false never skips them. Omit it to follow your partner default (Skip quick bounces for my customers under your Partner Master Key on the app’s API keys page). See Skipping quick bounces. Returned as website.skip_bounces (null = following your default).

Example Request

curl -X POST https://api.warmai.uk/functions/v1/partner-create-child-key \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Corp", "domain": "acme.com", "monthly_id_quota": 1000, "webhook_url": "https://api.your-product.com/warmai-webhook" }'

Response (201 Created)

{ "success": true, "child": { "api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "child_user_id": "8a4c1d3b-9e7f-4a2b-b0c1-2d3e4f5a6b7c", "key": "warm_aB3cD4eF5gH6iJ7kL8mN9oP0qR1sT2uV", "key_prefix": "warm_aB3c", "name": "Acme Corp", "status": "active" }, "website": { "id": "f1e2d3c4-b5a6-9788-7766-554433221100", "tracking_script_id": "12345678-90ab-cdef-1234-567890abcdef", "domain": "acme.com" }, "subscription": { "id": "98765432-10fe-dcba-9876-543210fedcba", "kind": "trial_child", "monthly_id_quota": 1000, "current_period_end": "2026-06-30T12:00:00.000Z", "status": "active", "id_price_pence_override": null }, "billing": { "status": "trial", "stripe_subscription_item_id": null, "stripe_subscription_id": null, "error": null, "advance_charge_pi_id": null }, "webhook": { "url": "https://api.your-product.com/warmai-webhook", "secret": "whsec_a1b2c3d4e5f607182930405160708091a2b3c4d5" } }

child.key and webhook.secret are returned once and are not stored in plaintext. Persist them immediately or you’ll lose them.

Error-specific notes

CodeTrigger
400name or domain missing; domain failed validation (not a bare host.tld); webhook_url not a valid http(s) URL or not reachable
402Your pool is on prepaid billing and its balance is empty. error_code is pool_empty (top up first) or pool_in_monthly_allowance (your balance is in your monthly plan allowance, which customers cannot draw from; contact support and we will move it).
409domain is already registered on an active website (each tracker domain can only be live on one account). On monthly-invoice billing, also returned when no card is saved, no per-ID rate is set, or an invoice is outstanding.

Update Child

POST /partner-update-child

Mutate any subset of a child’s configuration. Any field you omit is left untouched.

Request Body

FieldTypeRequiredDescription
child_api_key_iduuidYesThe child to update
namestringNoNew display name
monthly_id_quotaintNoNew per-period quota. An increase takes effect immediately; a decrease is queued and applies from the next period. ids_used_this_period is not reset: IDs already used stay used.
statusstringNoOne of "active", "suspended", "revoked". Suspended/revoked children stop accepting tracker traffic.
extend_period_daysintNoBumps current_period_end forward by this many days from MAX(current_period_end, now) — so adding 30 days to a customer who still has 45 days left correctly pushes them to 75 days, not back to 30.
webhook_urlstring|nullNoThe child’s visitor-identification webhook destination. Pass an https:// URL to set or update; pass null to clear it entirely (also clears the secret). Independent from the <script> tag — adding/removing the webhook never affects tracking.
company_onlybooleanNotrue turns off person-level identification for this customer; false turns it back on. Takes effect on the customer’s site within a few minutes. Turning it on is refused with 403 company_only_required if your partner account is contracted as company-only. Echoed in the response when sent.
send_repeat_visitsbooleanNofalse stops visitor_identified webhooks for repeat visits (already identified for this customer in the last 30 days, not charged); true sends them again, marked repeat: true. Applies to new events. If Send repeat visits is off under your Partner Master Key on the app’s API keys page, repeats are off for every customer whatever this is set to. Echoed in the response when sent.
skip_bouncesboolean|nullNotrue skips identifying one-page visits under 10 seconds with no buying intent on this customer’s site; false never skips them; null goes back to following your partner default. Applies to visits that end after the change. See Skipping quick bounces. Echoed in the response when sent.
webhook_secretstring|nullNoHMAC secret for signing visitor identification webhooks. Pass a string (min 8 chars) to use a partner-supplied secret; pass null to mint a fresh one server-side. If omitted while webhook_url is being set, the existing secret is preserved or a new one is minted if none existed. Returned in the response once when newly minted; never re-exposed if preserved.

Example Request

curl -X POST https://api.warmai.uk/functions/v1/partner-update-child \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "child_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "monthly_id_quota": 5000, "extend_period_days": 30 }'

Setting / clearing the child’s webhook

# Set or update — server mints a secret if none supplied curl -X POST https://api.warmai.uk/functions/v1/partner-update-child \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "child_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "webhook_url": "https://api.acme.com/warm-webhook" }' # Rotate just the secret (URL stays the same) curl -X POST https://api.warmai.uk/functions/v1/partner-update-child \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "child_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "webhook_url": "https://api.acme.com/warm-webhook", "webhook_secret": null }' # Clear entirely (both URL and secret become null) curl -X POST https://api.warmai.uk/functions/v1/partner-update-child \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "child_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "webhook_url": null }'

Response (200 OK)

{ "success": true, "child": { "id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "user_id": "8a4c1d3b-9e7f-4a2b-b0c1-2d3e4f5a6b7c", "name": "Acme Corp", "status": "active", "created_at": "2026-05-30T14:22:00.000Z", "webhook_url": "https://api.your-product.com/warmai-webhook", "parent_api_key_id": "<your-master-api-key-id>" }, "subscription": { "id": "98765432-10fe-dcba-9876-543210fedcba", "kind": "trial_child", "monthly_id_quota": 5000, "ids_used_this_period": 1247, "topup_balance": 0, "current_period_end": "2026-07-30T12:00:00.000Z", "status": "active" }, "webhook": { "url": "https://api.your-product.com/warmai-webhook", "secret": "whsec_a1b2c3d4..." } }

The webhook field is only present when a fresh secret was minted in this call (shown once). When the URL was updated but the existing secret was preserved, webhook is omitted from the response.

Updating the webhook does not affect tracking. The <script> tag is tied to the website’s tracking_script_id, not to the webhook. You can ship the tracking script tag before the customer has provided a webhook destination, then add the webhook later when you have it — visitor data continues to collect either way (queryable via list-visitors until the webhook is configured).

Error-specific notes

CodeTrigger
400child_api_key_id missing or not a UUID; status not in allowed set; webhook_url not a valid URL, not reachable, or not a string/null; webhook_secret shorter than 8 characters
403The child belongs to a different partner
404child_api_key_id doesn’t match any api_key

List Visitors

GET /list-visitors

Pull identified visitors for a tracker. Useful for backfilling missed events, paging history, or polling instead of (or alongside) webhook delivery. Each row is a flat record, which is a different shape from the visitor_identified webhook payload.

Authenticates with the api_key that owns the tracker — the child’s key for managed customers, your master key for trackers on your own account.

Query Parameters

ParamTypeRequiredDescription
tracker_sitestringNoFilter to one registered domain (e.g. acme.com). Omit to include every tracker the calling key has access to.
sincestring (ISO 8601)NoEarliest last_seen to include. Default: the last 30 days. Pass the latest last_seen you’ve processed for incremental sync.
sourcestringNoall (default), tracker, or api.
searchstringNoFree-text ILIKE over display name / domain / company / IP.
limitintNo1-500, default 100.
offsetintNoDefault 0.
pages_path_containsstringNoOnly visitors who viewed a matching page. Repeat the parameter or separate values with commas (?pages_path_contains=/pricing&pages_path_contains=/demo is the same as ?pages_path_contains=/pricing,/demo). Up to 20 values, each up to 200 characters. With this parameter, since can be at most 30 days ago, and requests are rate limited. See Filtering by page.
include_pagesbooleanNotrue (default) adds pages and pages_truncated to every row. Pass false to leave them out if you don’t need them.

Parameters are read from the query string only, even for POST. A request body is ignored; if it is a JSON object with keys, the response includes a warning saying so.

Any other parameter name is rejected with a 400 (see Error-specific notes). Parameter names are case-sensitive. The one exception is _, the cache-busting timestamp some HTTP libraries add, which is ignored.

Example Request

curl 'https://api.warmai.uk/functions/v1/list-visitors?tracker_site=acme.com&since=2026-06-01T00:00:00Z&limit=100' \ -H "x-access-key: warm_YOUR_API_KEY"

Only visitors who viewed a pricing or demo page in the last 48 hours (with pages_path_contains, since must be within the last 30 days):

SINCE=2026-11-11T09:00:00Z # 48 hours before now curl "https://api.warmai.uk/functions/v1/list-visitors?tracker_site=acme.com&since=$SINCE&pages_path_contains=/pricing,/demo" \ -H "x-access-key: warm_YOUR_API_KEY"

Response (200)

{ "success": true, "count": 1, "total": 1248, "limit": 100, "offset": 0, "source": "all", "visitors": [ { "ip": "203.0.113.42", "source": "tracker", "identification_type": "company", "display_name": "S&P Global", "person_linkedin_url": null, "person_linkedin_name": null, "person_linkedin_title": null, "person_linkedin_company": null, "domain": "spglobal.com", "company_name": "S&P Global", "company_linkedin_url": "https://linkedin.com/company/spglobal", "confidence": 0.97, "last_seen": "2026-06-04T16:25:36Z", "first_seen": "2026-06-02T09:14:12Z", "visit_count": 3, "pages_viewed": 7, "active_seconds": 184, "tracker_site": "acme.com", "country": "US", "industry": "Financial Services", "employees": 10001, "high_intent": true, "pages": ["/pricing", "/", "/case-studies/finance"], "pages_truncated": false } ] }

Rows also carry further fields used by the dashboard (for example raw_id, lookup_count, sites_visited, is_watched, is_pinned and crm_status). identification_type is company or individual; for individual rows the person_linkedin_* fields are populated.

total is the full deduped set matching your filters; use it to drive pagination via offset. count is the number of rows in this page.

Two top-level fields appear only when they apply:

  • pages_path_contains: the page filter that was applied, after splitting, trimming and removing duplicates.
  • warnings: an array of messages about the request. It is present when a value was adjusted rather than rejected (for example limit=5000 is served as 500, and a since that is not a valid timestamp is ignored), when a POST body was ignored, or when page paths could not be loaded for this response. Log it; a request that returns warnings still succeeded.

Pages viewed

Each row carries:

FieldTypeDescription
pages_viewedintTotal page views by this visitor in the window (unchanged).
pagesstring[]The distinct page paths the visitor viewed in the window, for example /pricing. Paths from the visitor’s most recent visits come first. At most 50 paths. A summary, not a complete history (see below).
pages_truncatedbooleantrue when the visitor viewed more distinct paths than were returned, or had more than 50 visits in the window (only the 50 most recent visits are read).

The window is the same one pages_viewed covers: visits that started on or after since (default: the last 30 days), on every tracker owned by the calling key’s account (all of the account’s keys and, for a partner master key, all of its children’s). tracker_site does not narrow pages: it only restricts which visitors are returned. Rows with source: "api" are IP lookups, not visits, so their pages is always empty.

pages is a capped summary of the visitor’s identified, non-bot visits as they have been summarised so far. A visit from the last few minutes may not be in it yet, and because of the caps it may not include the path that matched pages_path_contains. Use pages_path_contains to decide who matched, and pages for context.

If page paths can’t be loaded for a response, the visitors are still returned, without pages and pages_truncated, and warnings says so. Retry later if you need them.

Filtering by page

pages_path_contains keeps only visitors with at least one page view that matches any of the values you pass. A value matches when it appears anywhere in the page path, ignoring case:

  • /pricing matches /pricing, /pricing/enterprise and /en/Pricing.
  • pricing (without the slash) also matches /blog/pricing-tips.
  • % and _ currently act as wildcards (% is any run of characters, _ is any single character), so /pricing_page also matches /pricing-page. Don’t rely on this; it may change.

Only page views in visits that started inside the window count, so a visitor who viewed /pricing before since and came back afterwards to other pages does not match. Widen since to look further back. Rows with source: "api" never match, because an IP lookup has no page views.

The match runs on the page path only, not on the domain or query string. It looks at page views on every tracker owned by the calling key’s account (all of the account’s keys and, for a partner master key, all of its children’s), whatever tracker_site is set to; tracker_site only restricts which visitors are returned. If you are a partner and want matches for one customer only, call with that customer’s child key. total counts the visitors that match, so paginate with offset as usual.

Limits, because a page filter is the most expensive query this endpoint runs:

  • since can be at most 30 days ago (400 invalid_parameter otherwise). Without since the default window is the last 30 days. Poll with a recent since, for example the last 48 hours, and keep your own history.
  • Requests with pages_path_contains are rate limited per key: a burst of 6, then 1 request every 10 seconds. Over the limit you get 429 with a Retry-After header in seconds. A poll every few minutes, paging through a few pages each time, stays well inside it. Requests without a page filter are not affected.

Polling Pattern

Persist the most recent last_seen you’ve processed and pass it as since on the next call:

const since = lastSeenFromYourDb; // ISO 8601 const url = `${BASE}/list-visitors?tracker_site=${domain}&since=${encodeURIComponent(since)}&limit=500`; const { visitors } = await fetch(url, { headers: { "x-access-key": KEY } }).then(r => r.json()); // process, advance lastSeenFromYourDb to max(visitors.last_seen)

To act only on visitors who reached a page that matters to you (for example, tagging everyone who viewed pricing every 15 minutes), add pages_path_contains with a recent since and read pages to see what else they looked at:

const since = new Date(Date.now() - 48 * 3600 * 1000).toISOString(); // last 48 hours; at most 30 days const params = new URLSearchParams({ tracker_site: domain, since, limit: "500" }); params.append("pages_path_contains", "/pricing"); params.append("pages_path_contains", "/demo"); const res = await fetch(`${BASE}/list-visitors?${params}`, { headers: { "x-access-key": KEY } }); if (!res.ok) throw new Error(`list-visitors ${res.status}: ${(await res.json()).error}`); const { visitors, warnings } = await res.json(); if (warnings) console.warn("list-visitors:", warnings); for (const v of visitors) tagVisitor(v, v.pages); // e.g. ["/pricing", "/", "/demo"]

Check res.ok: a misspelt parameter is a 400, not an unfiltered list, and on a 429 wait for Retry-After seconds before the next call.

Error-specific notes

Codecode fieldTrigger
400unknown_parameterThe query string has a parameter this endpoint does not support. The response names it in parameters, for example {"success": false, "code": "unknown_parameter", "parameters": ["page_path"], "error": "Unknown query parameter: page_path. Supported: ..."}. Earlier versions of this endpoint silently ignored unknown parameters, which returned every visitor; check for this status if you upgrade an older integration.
400invalid_parameterpages_path_contains is empty, has more than 20 values, or has a value over 200 characters; since is more than 30 days ago while pages_path_contains is set; or include_pages is not true or false. parameters names the field.
401x-access-key missing, unknown, or inactive
429rate_limitedToo many requests with pages_path_contains for this key. Wait for the Retry-After header (seconds), then retry.
504query_timeoutThe query took too long and was cancelled. Retryable (retryable: true, Retry-After: 30). A later since or a smaller limit makes it cheaper.
500internal_errorDatabase error (rare; retry with backoff)

List Children

GET /partner-list-children

Enumerate the customers you’ve provisioned, with current quota / usage / billing status. Use the optional child_api_key_id query param to fetch one child instead of all of them.

Query Parameters

ParamTypeDescription
child_api_key_iduuidSingle-child lookup. Returns children: [] if no match, and 400 if the value is not a UUID.
include_inactivebooleanWhen true, also returns children with status IN ('suspended', 'revoked'). Default false.

Example Requests

# All active children curl https://api.warmai.uk/functions/v1/partner-list-children \ -H "x-access-key: warm_YOUR_PARTNER_KEY" # Single child curl "https://api.warmai.uk/functions/v1/partner-list-children?child_api_key_id=aeec6fcf-7138-4742-ac4e-0adc0221c737" \ -H "x-access-key: warm_YOUR_PARTNER_KEY" # Including suspended / revoked curl "https://api.warmai.uk/functions/v1/partner-list-children?include_inactive=true" \ -H "x-access-key: warm_YOUR_PARTNER_KEY"

Response (200 OK)

{ "success": true, "children": [ { "child_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "child_user_id": "8a4c1d3b-9e7f-4a2b-b0c1-2d3e4f5a6b7c", "name": "Acme Corp", "domain": "acme.com", "tracking_script_id": "12345678-90ab-cdef-1234-567890abcdef", "status": "active", "created_at": "2026-05-30T14:22:00.000Z", "monthly_id_quota": 5000, "ids_used_this_period": 1247, "topup_balance": 0, "current_period_end": "2026-07-30T12:00:00.000Z", "sub_status": "active", "has_webhook": true } ] }

Response Field Reference

FieldTypeDescription
child_api_key_iduuidUse this everywhere else as the child’s identifier
child_user_iduuidThe phantom user id (rarely needed externally)
namestringDisplay name, or "(unnamed)" if null
domainstring|nullTracker domain — null if no active website
tracking_script_iduuid|nullUsed in the install snippet — null if no active website
statusstringapi_key.status — active / suspended / revoked
created_attimestamptzWhen the child was provisioned
monthly_id_quotaintCurrent period quota
ids_used_this_periodintIDs consumed so far this period
topup_balanceintAlways 0. A customer draws from your pool, up to monthly_id_quota, and has no balance of its own.
current_period_endtimestamptzWhen the period rolls over
sub_statusstringsubscription.status — independent of api_key.status
has_webhookbooleantrue if this child has its own visitor-identification webhook configured. Distinct from your partner-level state-change webhook (see Webhooks) — the two channels are independent.

Note the two status fields: status (the api_key) and sub_status (the subscription). A child can be status: "active" but sub_status: "canceled" if the partner explicitly cancelled their subscription, or status: "suspended" with sub_status: "active" if you’ve paused the tracker but kept the billing live.


Pool State

GET /partner-pool-state

Read your pool balance, auto-reload configuration and recent top-ups in one call. This is the programmatic equivalent of the balance chip on the dashboard, and it is the right way to answer “how many IDs do we have left?” inside your own admin panel.

Read-only. Calling it never changes anything.

Query Parameters

None.

Example Request

curl https://api.warmai.uk/functions/v1/partner-pool-state \ -H "x-access-key: warm_YOUR_PARTNER_KEY"

Response (200 OK)

{ "success": true, "pool": { "monthly_id_quota": 1000000, "ids_used_this_period": 42350, "topup_balance": 15000, "available": 972650, "current_period_start": "2026-08-01T00:00:00.000Z", "current_period_end": "2026-08-31T23:59:59.000Z", "pool_billing_mode": "prepaid", "partner_per_id_pence": 6 }, "auto_reload": { "enabled": true, "threshold_ids": 50000, "topup_amount_ids": 100000, "stripe_payment_method_id": "pm_XXXXXXXXXXXX", "last_declined_at": null, "consecutive_declines": 0 }, "recent_topups": [ { "amount_ids": 100000, "created_at": "2026-08-15T14:23:00.000Z", "status": "succeeded" } ] }

Response Field Reference

FieldTypeDescription
pool.monthly_id_quotaintIDs included in your pool each period
pool.ids_used_this_periodintConsumed so far this period, across all your children
pool.topup_balanceintNon-expiring IDs, consumed after the period quota runs out
pool.availableintmax(0, monthly_id_quota - ids_used_this_period) + topup_balance. The number to alert on.
pool.current_period_starttimestamptz|nullStart of the current period
pool.current_period_endtimestamptz|nullWhen ids_used_this_period resets to 0
pool.pool_billing_modestringprepaid or invoice_monthly. See Billing model.
pool.partner_per_id_pencenumber|nullYour agreed rate per identification, in pence. null means no rate is set yet and top-ups will be rejected.
auto_reload.enabledbooleanWhether the pool refills itself automatically
auto_reload.threshold_idsint|nullRefill fires when available drops below this
auto_reload.topup_amount_idsint|nullHow many IDs each automatic refill buys
auto_reload.stripe_payment_method_idstring|nullThe saved card auto-reload charges. null means no card is saved, so auto-reload cannot fire.
auto_reload.last_declined_attimestamptz|nullWhen the saved card was last declined
auto_reload.consecutive_declinesintConsecutive declines. A non-zero value with enabled: true is why your pool is not refilling.
recent_topupsarrayLast 10 top-ups, newest first. Empty until your first top-up completes.

Errors

CodeMeaning
401x-access-key missing, unknown, or revoked
403The key is not your designated partner master key, the account is not a partner, or no pool subscription exists
405Wrong method — this endpoint is GET only

Polling guidance

Poll at whatever cadence your dashboard refreshes, and alert on available rather than on topup_balance alone. A pool with quota remaining and a zero top-up balance is perfectly healthy, so topup_balance on its own is a misleading alert signal.

If auto_reload.enabled is true but the balance keeps falling, check stripe_payment_method_id and consecutive_declines before contacting support. An expired card is by far the most common cause.


Adopt Existing Key

POST /partner-adopt-existing-key

Convert one of your existing direct trackers into a managed child customer. The api_key’s user_id moves to a new phantom user, parent_api_key_id is set to your master, and the child gets its own subscription row.

Use this when a tracker started life on your direct partner account (maybe a test / staging tracker, or one you provisioned manually before the API existed) and you now want to bill + manage it like any other customer.

Request Body

FieldTypeRequiredDescription
api_key_iduuidYesThe tracker to adopt. Must belong directly to you (no parent_api_key_id), be status: "active", and have at least one active website.
namestringYesDisplay name for the new child
monthly_id_quotaintYesThe most IDs this customer can use per period, drawn from your partner pool. Required, because the tracker is usually already live: 0 pauses its identifications until you raise the quota with partner-update-child.
webhook_urlstringNoOverwrites any existing webhook on the api_key
webhook_secretstringNoIf webhook_url is set: your own secret (min 8 chars), or we mint one
brand_namestringNoDefaults to name

Example Request

curl -X POST https://api.warmai.uk/functions/v1/partner-adopt-existing-key \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "api_key_id": "c1d2e3f4-5678-90ab-cdef-1234567890ab", "name": "Acme Corp", "monthly_id_quota": 1000 }'

Response (200 OK)

{ "success": true, "child": { "api_key_id": "c1d2e3f4-5678-90ab-cdef-1234567890ab", "child_user_id": "8a4c1d3b-9e7f-4a2b-b0c1-2d3e4f5a6b7c", "name": "Acme Corp", "status": "active" }, "website": { "id": "f1e2d3c4-b5a6-9788-7766-554433221100", "tracking_script_id": "12345678-90ab-cdef-1234-567890abcdef", "domain": "acme.com" }, "subscription": { "id": "98765432-10fe-dcba-9876-543210fedcba", "monthly_id_quota": 1000, "current_period_end": "2026-06-30T12:00:00.000Z", "status": "active" }, "webhook": null }

The api_key’s existing plaintext is not re-shown by this endpoint — adoption doesn’t rotate the key. If you’ve lost the plaintext, you’ll need to create a fresh child via partner-create-child-key instead.

Error-specific notes

CodeTrigger
400api_key_id missing or not a UUID; name missing; monthly_id_quota missing or not a whole number from 0 to 2147483647; webhook_url not a valid URL or not reachable
402monthly_id_quota is above 0 and your prepaid pool is empty. Same error_code values as Create Child Key: pool_empty or pool_in_monthly_allowance. Once adopted, the tracker draws only on your partner pool, not on your monthly plan allowance.
403api_key_id belongs to a different user
404api_key_id doesn’t exist
409The api_key already has a parent_api_key_id (already adopted); is not active; has no active website; or is the same key you’re authenticating with (you can’t adopt your own master). Also returned with error_code: "invoice_mode_adoption_unsupported" when your account is on monthly-invoice billing.

Rotate Child Key

POST /partner-rotate-child-key

Mint a fresh plaintext api key for one of your managed children and replace the stored hash. The api_key_id stays the same so all foreign references (websites, subscriptions, webhook history, audit logs) remain intact — only the secret rotates.

Use this when you’ve lost the plaintext returned at child creation (partner-create-child-key returns it exactly once and never again). Without this endpoint, the only recovery path is partner-release-child + partner-create-child-key, which loses tracker history.

In-flight requests using the OLD key will start failing with 401 the moment this endpoint commits. Plan a graceful cutover:

  1. Deploy the rotation handler to your integration code
  2. Have it ready to accept either the old OR the new key
  3. Call this endpoint
  4. Cut traffic over to the new key
  5. Stop accepting the old key

Skipping the dual-accept window means anything still holding the old key will be 401’d until it picks up the new value.

Request Body

FieldTypeRequiredDescription
child_api_key_iduuidYesThe child to rotate

Example Request

curl -X POST https://api.warmai.uk/functions/v1/partner-rotate-child-key \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "child_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737" }'

Response (200 OK)

{ "success": true, "child_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "key": "warm_qQX6HDqVDoSzbAHKP3e37WhhQMFg1qHS", "key_prefix": "warm_qQX6", "old_key_prefix": "warm_aB3c", "rotated_at": "2026-05-31T18:21:08.953Z" }

key is returned once. If you lose it again you’ll need to rotate again (rate-limited — see below).

Rate limit

Max 10 rotations per child per 24 hours. Past that, the endpoint returns 429 with:

{ "success": false, "error": "Rate limit: max 10 rotations per child per 24 hours", "recent_rotations_24h": 10 }

Tracked via the api_key_rotations audit table (one row per rotation, retained indefinitely for forensic tracing).

Error-specific notes

CodeTrigger
400child_api_key_id missing or not a UUID
403The child_api_key_id belongs to a different partner
404child_api_key_id doesn’t exist
429Rate limit (see above)

Transfer Topup

POST /partner-transfer-topup

This endpoint has been retired. It now answers every authenticated call with 410 Gone and error_code: "endpoint_retired", and changes nothing.

It used to move IDs from your pool onto one customer’s own topup_balance. Customers don’t spend a balance of their own: every identification a customer makes counts against its monthly_id_quota and is billed to your partner account (drawn from your pool on prepaid billing, invoiced on monthly invoice). Use these instead:

  • Give a customer more IDs: raise its monthly_id_quota with partner-update-child. An increase applies immediately.
  • Add IDs to your pool: top up your pool in the Warm dashboard, or turn on auto-reload. Check the balance with partner-pool-state.

Response (410 Gone)

{ "success": false, "error_code": "endpoint_retired", "error": "partner-transfer-topup has been retired. ...", "use_instead": ["partner-update-child"], "docs": "https://docs.warmai.uk/partner-api/endpoints#transfer-topup" }

Authentication is unchanged, so a missing or invalid key still returns 401, and a key that isn’t your partner master still returns 403.


Release Child

POST /partner-release-child

Reverse an adoption. The child’s api_key returns to your direct account (cleared parent_api_key_id), the phantom user + its subscription are deleted, and any topup_balance left on the customer’s row is folded back into your partner subscription. Customers no longer hold a balance of their own, so this is normally 0.

Use this when a customer churns out of your platform. After release the tracker keeps working — it’s just no longer billed / scoped as a managed customer; it’s a direct tracker on your account.

Request Body

FieldTypeRequiredDescription
child_api_key_iduuidYesThe child to release

Example Request

curl -X POST https://api.warmai.uk/functions/v1/partner-release-child \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "child_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737" }'

Response (200 OK)

{ "success": true, "released_api_key_id": "aeec6fcf-7138-4742-ac4e-0adc0221c737", "topup_returned": 0 }
FieldDescription
released_api_key_idEchoed for confirmation
topup_returnedIDs added back to your partner subscription’s topup_balance

Error-specific notes

CodeTrigger
400child_api_key_id missing or not a UUID
403The child belongs to a different partner
404child_api_key_id doesn’t match any api_key

If your partner account has no subscription row when you release a child (a misconfigured state — contact support if you see this), the topup_returned value is reported but the credit is lost. This is a defensive log-and-continue: we never want a release to fail because of a missing partner subscription, but the IDs go nowhere.


Dispute an Identification

POST /partner-dispute-create

Tell us an identification matched the wrong company. We review every dispute. If we agree, we credit back what that identification cost in the current billing period, to wherever it was charged. Disputing is free.

Use it when you have a concrete reason to think the match is wrong, for example the company is in another country from the visitor, or your customer knows who the visitor really was. One open dispute per identification.

Request Body

FieldTypeRequiredDescription
identification_iduuidYesThe data.identification_id from the visitor_identified webhook
claimed_correct_domainstringNoThe company you believe it really was, if you know
evidencestringNoWhy you think it is wrong. The more specific, the faster we can decide.

Identifications can be disputed for 30 days after they happen. If the identification was not charged (for example a repeat visit within 30 days), approving it credits nothing. Disputes are for tracked visits; for an Identification API lookup, contact support.

Example Request

curl -X POST https://api.warmai.uk/functions/v1/partner-dispute-create \ -H "x-access-key: warm_YOUR_PARTNER_KEY" \ -H "Content-Type: application/json" \ -d '{ "identification_id": "3f0c2a8e-5d1b-4c7e-9a62-8b1f4e7d2c90", "claimed_correct_domain": "realcompany.com", "evidence": "Visitor was in Sarajevo; the matched company only operates in the US." }'

Response (201 Created)

{ "success": true, "dispute": { "id": "b7d9e1f2-0a3c-4e5d-8f6a-1b2c3d4e5f60", "status": "open", "disputed_domain": "matched-company.com", "claimed_correct_domain": "realcompany.com", "created_at": "2026-11-25T16:40:12.000Z" } }

What happens next

When we decide, you get a dispute.resolved webhook (see Webhooks) with the decision, our reason, and credited_ids. You can also poll partner-dispute-list.

  • Approved: the IDs that identification cost in the current billing period are credited back to wherever they were charged, and credited_ids says how many. It is 0 if the identification was not charged, was already credited, was charged in an earlier billing period, or the account is no longer active.
  • Declined: nothing changes, and the reason explains why.

Error-specific notes

CodeTrigger
400identification_id missing, or lookup_disputes_not_supported (an ip_to_company_id was sent)
403The identification belongs to a different partner
404No identification with that id
409already_disputed (an open dispute exists), already_approved (a dispute for it was already approved), outside_dispute_window (over 30 days), nothing_to_dispute (no company was returned, so nothing was charged), or the identification was not a charged one

List Disputes

POST /partner-dispute-list

Your disputes, newest first.

Request Body

FieldTypeRequiredDescription
statusstringNoopen, approved or declined. Omit for all.
limitintNoDefault 50, max 200

Response (200 OK)

{ "success": true, "count": 1, "disputes": [ { "id": "b7d9e1f2-0a3c-4e5d-8f6a-1b2c3d4e5f60", "status": "approved", "disputed_domain": "matched-company.com", "claimed_correct_domain": "realcompany.com", "evidence": "Visitor was in Sarajevo; the matched company only operates in the US.", "decision_reason": "Agreed: the location does not fit this company.", "credited_ids": 1, "created_at": "2026-11-25T16:40:12.000Z", "decided_at": "2026-11-26T09:12:45.000Z", "identification_id": "3f0c2a8e-5d1b-4c7e-9a62-8b1f4e7d2c90", "ip_to_company_id": null } ] }
Last updated on