API reference
Every REST endpoint in one table, with its auth and retry behavior. The full request and response schemas are in /openapi.json (OpenAPI 3.1).
Conventions
- Base URL:
https://api.updash.com($API). - Auth:
Authorization: Bearer xm_test_...(sandbox) orBearer xm_live_...(live) on every/v1request, or HTTP Basic with the key as the user name and an empty password (curl -u "$KEY:", as on Lob and Stripe; a password is ignored). The key decides the partner and the mode. - Bodies are JSON. Send
Content-Type: application/json. An empty body counts as{}. Some endpoints also take a file: the asset uploads (a dealer's and the asset library's) and the logo upload (the image itself), and the dealer import, the audience import and the do-not-mail list (text/csv). Artwork files (a PDF, or one PNG or JPEG per side) are PUT to a signed storage URL, and an audience file can go that way too. - Responses are JSON with
Cache-Control: no-storeand anX-Request-Idheader. A template preview can instead answer with a PDF or an HTML document. - Field names are snake_case. Money is integer cents (
total_cents). Times are ISO 8601 UTC. Ids are UUIDs. - Errors are
{"error":{"code","message","fix","field"}}. See Errors. Every/v1path answers JSON, a path no endpoint serves included: it is 404not_found, with no key needed (Unknown paths). A real path with a method it does not serve answers 405method_not_allowedwith anAllowheader, also with no key needed;OPTIONSanswers 204 with the same header. - A body field or query parameter an endpoint does not declare is refused with 400
invalid_requestnaming it infield; nothing is ignored. Thefixnames the field meant for common names from Lob and other mail APIs (send_datetorequested_mail_date,merge_variablestocopy) and lists the fields the request takes. Endpoints without parameters (GET /v1/campaigns/{id},GET /v1/dealers/{id},GET /v1/dealers/{id}/brand,GET /v1/webhooks,POST /v1/campaigns/{id}/proof,POST /v1/campaigns/{id}/creative/artwork,GETorPOST /v1/campaigns/{id}/validate,POST /v1/templates/{code}/retire,DELETE /v1/webhooks/{id},POST /v1/webhooks/{id}/rotate-secret) refuse any.GET /v1/templates/{code}takes?version=for your own saved templates; Xcel's templates answer only their current version (400template_version_unavailable). - Lists of campaigns page with a cursor (
starting_after= the previous page'snext_cursor, whilehas_moreistrue); the dealer list pages withafter=next_after. A cursor names a row of its list and has no expiry, so one saved earlier keeps working while the list holds that row. One from another list, or of a row the list no longer holds (a row key from before a new audience version), is refused with 400invalid_request: read from the first page. - A date query parameter (
since,until,created_after,created_before,updated_after) is an ISO 8601 date-time with a time zone (2026-11-05T14:00:00Z) or a date (2026-11-05, midnight UTC). A time with no zone is refused, and the 400 names the format. fixandnext_stepname MCP tools because REST and MCP share their code. Over REST each one carries its route:validate_campaign (POST /v1/campaigns/{id}/validate).Idempotency-Keyis required on submit and on making a key, and optional on campaign create, template save, the dealer import, the audience import, the approval request and clearing a do-not-mail list (Idempotency). A key startingscoped:is refused with 400invalid_request.{id}for a dealer is Xcel's dealer id or your external id.{id}for a campaign is the campaign UUID.- A key limited to some dealers answers 404 for any dealer outside its list, and for that dealer's campaigns, as another partner's do. Creating a dealer, the dealer import, saving or retiring a template, every webhook route and a change to a dealer's
links.websiteanswer 403dealer_scope_forbidden. Your saved templates answerunknown_templateto it: they need a key for every dealer (Keys for one dealer). - Dealers your live key or Xcel created are shared by your test and live keys, so a test key's write to one only validates: it answers
"validated_only": trueand the headerX-Xcel-Validated-Only: true, and saves nothing. See Test keys only validate. A dealer a test key creates is a test dealer: test mode only, and its writes save.
Endpoints
Products
- GET
/v1/productsList the offered products, their specs and templates. Query:detail=compactfor the short form MCP answers by default (no print specs; each template's code and name).
Makes
- GET
/v1/makesThe make logo library: each make'scolor,whiteandblackvariants (PNG, and SVG for the one-color forms that trace true), which prints on light and on dark, and why (Make logos). Query:dealer_idfor that dealer's makes. - GET
/v1/makes/{make}/logoOne make's logo file,image/pngorimage/svg+xml. Query:variant(color,white,black) ortone(light,dark), andformat(png,svg).
Templates
- GET
/v1/templatesList the templates of the offered products: Xcel's and your own saved templates (Find a template). Query:product_code,use_case,query,owner(xcelorpartner),prescreened(trueorfalse),source_audience(your audience's ID or name: its templates first, with your account's audience map),detail(compact, the default, orfullfor every slot and the compliance rules). Compact entries of your own saved templates carryversionandsaved_at. Prescreened offers come after every other template unlessqueryoruse_caseasks for credit. - POST
/v1/templatesSave your own template, or its next version (Your own templates).Idempotency-Keyoptional. - GET
/v1/templates/{code}One template, with its use cases, audience columns, prescreen flag, formats, layout regions and response boxes (inches) and sample copy; for your own saved templates alsohtmlandcreated_at. Query:version(your own saved templates). - GET
/v1/templates/{code}/versionsA template's versions, newest first, without HTML: every version of your own (retired ones too), the current one of Xcel's. Query:limit(1 to 100, default 20),before(the previous page'snext_before). - POST
/v1/templates/{code}/retireRetire every version of your own saved template; creatives already made from it are unchanged. No body. Xcel's templates are 403template_read_only. - POST
/v1/templates/{code}/previewRender a template without a campaign: the review proof PDF, the proof page as HTML, or JSON with the preflight and apreview_url(Preview a template). Saves nothing.
Dealers
- GET
/v1/dealersList or find your dealers, a page at a time, oldest first (Read dealers). Query:limit(1 to 200, default 50),after(the previous page'snext_after),query(name or external id contains, ignoring case),dealer_group(the whole value, ignoring case).totalcounts every match. - POST
/v1/dealersCreate a dealer with its profile version 1 (Dealers). A test key creates a test dealer (test mode only, 25 per partner). - POST
/v1/dealers/importUpsert dealers from a CSV byexternal_id; one result per row. A test key creates test dealers and only validates rows for shared dealers. - GET
/v1/dealers/{id}One dealer, with the approvers you named. - GET
/v1/dealers/{id}/approversThe registered approvers (masked) and the people you named, with their status (Approvers). - POST
/v1/dealers/{id}/approversName an approver:email, optionalname. Xcel emails them a confirm link. A test key only validates (200, nobody emailed). - GET
/v1/dealers/{id}/brandWhat a new creative prints: name, address, logo, colors and phone from the profile; Xcel's disclosures and masked approvers. - GET
/v1/dealers/{id}/profileThe current profile, or?version=N.ETagis the version. - PUT
/v1/dealers/{id}/profileReplace the profile.If-Matchoptional; a stale one is 412version_conflict. - PATCH
/v1/dealers/{id}/profileMerge-patch the profile (RFC 7396).If-Matchas for PUT. - GET
/v1/dealers/{id}/profile/versionsVersions newest first:changed_fields,actor,created_at. Query:limit(1 to 100),before. - POST
/v1/dealers/{id}/logoUpload theprimaryorreversedlogo: the file as the body, or JSON withcontent_base64orurl. - GET
/v1/dealers/{id}/assetsThe dealer's creative assets. Query:kind. - POST
/v1/dealers/{id}/assetsUpload a signature or photo: the file as the body withkind,label,nameandtitlein the query, or JSON withcontent_base64orurl. - POST
/v1/dealers/{id}/suppressionsAdd to the dealer's lasting do-not-mail list: the CSV as atext/csvbody, or JSON with asource_urlfetched once. Answers counts only:rows_read,added,already_on_list,ignored(When a person asks). - GET
/v1/dealers/{id}/suppressionsThe list'scountandlast_changed_at, never an entry. - DELETE
/v1/dealers/{id}/suppressionsClear the list in this key's mode. Needs anIdempotency-Keyor?confirm=true, else 400. - GET
/v1/dealers/{id}/inbound-emailThe dealer's inbound address for emailed lists in this key's mode:enabled,address(a secret),senders, the standing orders that take email and anypending_forwarding_confirmation(Emailed lists). - PUT
/v1/dealers/{id}/inbound-emailTurn the address on or off (enabled), setsenders, orrotate: truefor a new address. Send only the fields to change. - GET
/v1/dealers/{id}/assets/{asset_id}One asset. - PATCH
/v1/dealers/{id}/assets/{asset_id}Change itslabel,name,titleor a signature'sdepartment.If-Matchas for the profile. - DELETE
/v1/dealers/{id}/assets/{asset_id}Remove it: new creatives can no longer print it; creatives made with it keep what they printed. - GET
/v1/dealers/{id}/offersThe dealer's offers library, each with its status today (Offers). - POST
/v1/dealers/{id}/offersAdd an offer:name,department,offer, and optionaldetail,disclosure,starts_on,ends_on.If-Matchas for the profile. - GET
/v1/dealers/{id}/offers/{offer_id}One offer, by id or label. - PATCH
/v1/dealers/{id}/offers/{offer_id}Change its fields;nullclears an optional one. - DELETE
/v1/dealers/{id}/offers/{offer_id}Remove it: new creatives can no longer use it; creatives made with it keep what they printed.
Assets
- GET
/v1/assets - POST
/v1/assetsAdd a photo: the file as the body withname,labelanddescriptionin the query, or JSON withcontent_base64orurl. The same label replaces its file. - GET
/v1/assets/{asset_id}One library photo. - PATCH
/v1/assets/{asset_id}Change itsname,labelordescription. - DELETE
/v1/assets/{asset_id}Remove it: new creatives can no longer print it; creatives made with it keep what they printed.
Campaigns
- GET
/v1/campaignsList campaigns for this key's partner and mode, newest first, a page at a time (List campaigns). Query:dealer_id,status,external_ref,created_after,created_before,limit(1 to 100, default 25),starting_after(the previous page'snext_cursor). - POST
/v1/campaignsCreate a draft campaign. - GET
/v1/campaigns/{id}Status, counts, creative and approval state,next_step. Like every campaign object, the campaign carriesdealer_external_id,template_codeandtemplate_version. - POST
/v1/campaigns/{id}/audience/importSend the audience CSV and process it in one call: JSON with asource_urlXcel fetches once, or the CSV as atext/csvbody. Answers as the completion does (Import in one call). - POST
/v1/campaigns/{id}/audienceStart an audience upload; returns the signedupload_url. - POST
/v1/campaigns/{id}/audience/completeProcess the uploaded CSV, renaming columns bycolumn_map; returns counts, the reconciliation report andnext_step. - DELETE
/v1/campaigns/{id}/audience/{audience_id}Delete one version's files now, with its proof PDFs; setspurged_at, and counts stay. 409audience_in_productionwhile it is the file of a submitted order not yet completed or cancelled. The current audience of an order not yet submitted leaves adraftwith no audience (Remove a list early). - POST
/v1/campaigns/{id}/creativeFill a template with copy (or copy Claude writes from abrief), store your HTML, or store print-ready art: a PDF, or one PNG or JPEG per side (artwork, Print-ready artwork); returns preflight. - POST
/v1/campaigns/{id}/creative/artworkStart an artwork upload for this campaign: a signed PUT URL valid for 2 hours for one PDF, or one side's PNG or JPEG, and theartwork_idthatgenerate_creativetakes. The file is kept 7 days. No body. REST only. - POST
/v1/campaigns/{id}/proofRender and check the proof, and print the review and print-ready PDFs where PDF rendering is on; movesdrafttoproof_ready. - GET or POST
/v1/campaigns/{id}/validateReadiness checklist and every preflight issue, withdealer_spend_cap_centsanddealer_spend_remaining_cents; when the dealer has a cap and the order is not submitted, aspend_capcheck that holds upready_for_approvalonly (Spend caps). On a live order,live_gapsand theapprover,live_orderinganddisclosureschecks say what approval or submit still lacks (Going live). Read-only. - POST
/v1/campaigns/{id}/quoteQuote the current creative and audience. The answer addsdealer_spend_cap_centsanddealer_spend_remaining_cents(null without a cap), andnext_stepsays when the total is over what is left. - POST
/v1/campaigns/{id}/approvalRequest human approval. Checks the dealer's spend cap first; the approver's approve and submit check it again. - POST
/v1/campaigns/{id}/submitSubmit an approved campaign. - GET
/v1/campaigns/{id}/resultsTimeline, quantities, result totals and a page of per-lead results (Results and attribution). Query:leads_after(the previous page'sleads.next_after),leads_limit(1 to 500, default 100),external_id(one person's leads, exact),updated_after(leads whose results changed after this time). - GET
/v1/campaigns/{id}/leadsThe current audience's mailable rows, ids only:row_key,external_id,audience_version,result_statusandusps, the piece's USPS tracking (Who was mailed). Query:external_id(one shopper's rows, exact),after(the previous page'snext_after),limit(1 to 500, default 100).
Artwork
- POST
/v1/artworkStart an artwork upload before a campaign exists (bodyproduct_code): the same answer, and anartwork_idthat works for an artwork preview and for any of your campaigns in the key's mode, for 7 days (Send it by signed upload). REST only. - POST
/v1/artwork/previewCheck print-ready art against a product without a campaign: the review proof PDF, or JSON with every issue, apreview_urland theartwork_idthe art is kept as for 7 days (Preview artwork). Makes no campaign or creative.
Leads
- GET
/v1/leadsEvery campaign one shopper is on, in this key's mode and dealers, newest first:campaign_id,dealer_id,status,mailed,row_key(Who was mailed). Query:external_id(required, exact),dealer_id,limit(1 to 100, default 50),starting_after(the previous page'snext_cursor).
Standing-orders
- GET
/v1/standing-ordersList your standing orders, newest first. Query:dealer_id,status(active,paused,ended),external_id,limit(1 to 100, default 25),starting_after(the previous page'snext_cursor). - POST
/v1/standing-ordersSave a standing order: dealer, product, template creative,max_spend_cents, approver, skip window, optionalsource_urlandcadence, optionalinbound_subjectfor emailed lists (Create a standing order). Checks the creative's preflight for the dealer. - GET
/v1/standing-orders/{id}The standing order and its last ten runs. - PATCH
/v1/standing-orders/{id}Change what the next run does, or pause and resume it. - DELETE
/v1/standing-orders/{id}End it: no run starts again; its runs and history stay. - POST
/v1/standing-orders/{id}/runsStart a run: the list as atext/csvbody, or JSON{"source_url"}({}for the order's own). Builds the campaign through to the approval request and answers the run, its counts and the approval (Start a run). - GET
/v1/standing-orders/{id}/runsThe runs, newest first. Query:limit,starting_after.
Sandbox only
- POST
/v1/test/campaigns/{id}/approvalSandbox: approve or reject a pending approval from a script, with every check of the review page. Not an MCP tool. - POST
/v1/test/campaigns/{id}/advanceSandbox: move a submitted campaign to the next status, or toto. MCP:advance_test_campaign.
Events
- GET
/v1/eventsYour events in this key's mode, oldest first, in the webhook envelope (Reconcile a window you missed). Query:since,until(a date-time or date;untilis exclusive),dealer_id(Xcel id or your external id),type,limit(1 to 100, default 50),starting_after(the previous page'snext_cursor).
Webhooks
- GET
/v1/webhooksList this mode's webhook endpoints with each one's latest delivery and the active-endpoint limit (no secrets). - POST
/v1/webhooksRegister a webhook endpoint; returns its secret once. - DELETE
/v1/webhooks/{id}Deactivate an endpoint and cancel its pending deliveries. 404 for another partner's or mode's endpoint. - POST
/v1/webhooks/{id}/rotate-secretReplace the signing secret; returns the new one once. - GET
/v1/webhooks/event-typesEvery event type you can subscribe to, with what it says, and the test event. - POST
/v1/webhooks/{id}/testSend a signed test event now and report what the endpoint answered. Stores nothing. 429webhook_test_rate_limitedpast 20 per hour. - GET
/v1/webhooks/{id}/deliveriesOne endpoint's deliveries, newest first (limit,offset). Never the body. - POST
/v1/webhooks/{id}/deliveries/{delivery_id}/replayQueue a past delivery to send again, with its original event id.
Keys
- POST
/v1/keysMake a key limited to the dealers indealer_ids, in this key's mode (Keys for one dealer). The secret comes back once. - GET
/v1/keysThis mode's keys, with each limited key's dealers, never a secret. Query:limit(1 to 200, default 100),after(the previous page'snext_after). - DELETE
/v1/keys/{id}Revoke a limited key at once. A key for every dealer answers 403key_for_every_dealer.
Account
- GET
/v1/accountWho this key acts for, whether live ordering is on, what a live order still lacks, and your limits (Account).
Other
- AnyAny other
/v1path404not_foundin the standard error shape, with afixthat names where the job lives (Unknown paths).
Health
- GET
/v1/healthLiveness for an uptime monitor:statusandversion, no data. With?deep=1and Xcel's health token it also times a database query and a storage read, and answers 503 if either fails.
Request bodies
| Endpoint | Body |
|---|---|
POST /v1/templates |
code (required), product_code (required), name (required, 1 to 80), description (required, 1 to 2,000), html (required, at most 200,000), slots (required, at most 60, each with name, kind and max_length, and optional label, required, sample, default, dealer_fact and description), use_cases (optional, at most 12); header Idempotency-Key optional. See Your own templates. |
POST /v1/templates/{code}/preview |
All optional: template_version (your own saved templates), copy (object of strings; slots you leave out print their samples, or with dealer_id the dealer's own store details, and with dealer_id and any copy, optional slots you leave out print their default or nothing, listed in the answer's omitted_slots), dealer_id (one of your dealers; default the sample dealer Demo Motors), recipient (one audience row; default a fictional sample recipient), envelope (letter templates only: closed_face adds the envelope face as the last page; a fold card always shows its closed face), format (pdf, html or json). |
POST /v1/campaigns |
dealer_id (required), product_code (required, an offered product), name (required, 1 to 120), requested_mail_date (YYYY-MM-DD, at most 180 days out), envelope (a fold card takes only closed_face; the letter: closed_face, the default, or double_window; see A letter's envelope), external_ref (1 to 100), metadata (up to 20 string values; see Your reference on a campaign); header Idempotency-Key optional. The body is checked first, so a bad body is refused before the key is looked at. |
POST /v1/artwork |
product_code (required, an offered product). |
POST /v1/artwork/preview |
product_code (required), artwork (required, as for POST .../creative; an artwork_id from POST /v1/artwork), dealer_id (optional; default the sample dealer Demo Motors), format (pdf or json). |
POST .../audience/import |
JSON: source_url (required, https, at most 4,000 characters; never stored or logged), column_map and vehicle_source (optional, as on the completion). Or the CSV itself with Content-Type: text/csv (at most 4.5 MB), with column_map as URL-encoded JSON and vehicle_source in the query. Header Idempotency-Key optional. |
POST .../audience |
include_suppression_list (boolean), optional |
POST /v1/dealers/{id}/suppressions |
JSON: source_url (required, https, at most 4,000 characters; never stored or logged). Or the CSV as the body with Content-Type: text/csv: address1 and zip, with optional first_name, last_name and address2. |
POST .../audience/complete |
audience_id (required), column_map (optional: your header to our column, at most 100 entries; see Column mapping), vehicle_source (optional: owned, sold or serviced; see A CDP export as it comes) |
POST .../creative |
template_code, html or artwork (exactly one), template_version (optional, with template_code, your own saved templates), copy (object of strings), brief (optional, template only: goal and offer required, tone, audience, offer_terms; Claude writes the slots copy leaves out, see AI-written copy). artwork: one PDF as url (https, at most 2,000 characters) or artwork_id (from POST .../creative/artwork, POST /v1/artwork or an artwork preview), exactly one; or front and back, each {"url"} or {"artwork_id"} of a PNG or JPEG (a letter's front is page 1); not with copy or brief (Print-ready artwork). |
POST .../quote |
mail_class: first_class or marketing_mail, optional; absent, the product's default (first_class for the postcard, its only class; marketing_mail for the letter and the fold card) |
POST .../approval |
quote_id (required), max_spend_cents (required, at least the quote total: the figure the user gave), approver_email. Header Idempotency-Key optional. |
POST .../submit |
approval_id (required); header Idempotency-Key (required). The body is checked first, so a bad body is refused before the key is looked at. |
POST /v1/test/campaigns/{id}/approval |
approval_id (required), decision (required: approve or reject), note; on a prescreened offer, prescreen_confirm and prescreen_list_date |
POST /v1/test/campaigns/{id}/advance |
to: a later status among submitted, in_production, at_usps, in_postal_network, delivery_estimated, completed; optional |
POST /v1/webhooks |
url (required, a public host; https for live keys, https or http for sandbox keys), event_types (array; empty or omitted means all) |
POST /v1/dealers |
external_id (required, 1 to 100), profile (required: name and address, and any other profile field) |
PUT .../profile |
The whole profile, as GET .../profile returns it in profile. Header If-Match optional. |
PATCH .../profile |
Only the fields to change; null clears one. Header If-Match optional. |
POST .../logo |
The file with Content-Type image/png, image/jpeg or image/svg+xml and ?variant=primary or reversed; or JSON variant, and exactly one of content_base64 and url. At most 3 MB. Header If-Match optional. |
POST /v1/keys |
label (required, 1 to 120), dealer_ids (required, 1 to 100, by Xcel id or your external id). Header Idempotency-Key required. |
POST /v1/dealers/import |
A CSV with an external_id column (columns), at most 500 rows and 1 MB. Header Idempotency-Key optional. |
Response headers
| Header | When |
|---|---|
X-Request-Id |
Every /v1 response. Quote it when you report a problem. |
Idempotent-Replayed: true |
A campaign create, template save, submit, dealer import, audience import, approval request or key create answered from the stored result of an earlier identical request. |
ETag: "3" |
Dealer creation, and every profile read, write and logo upload: the profile version. Send it back as If-Match. A test key's validate-only write answers with the version that is still current; its creation answers with no ETag. |
X-Xcel-Validated-Only: true |
A dealer write with a test key: checked, nothing saved. |
X-Xcel-Preflight-Ok (true or false), X-Xcel-Preflight-Errors, X-Xcel-Preflight-Warnings, X-Xcel-Template-Version, and X-Xcel-Handwriting-Note when the piece has a data-hand note |
A template preview answered as a PDF or HTML. X-Xcel-Preflight-Ok is false when preflight found an error. The errors and warnings are comma-separated issue codes, each once, empty when there are none. format=json gives every issue with its fix. |
X-Xcel-Preview-Url |
A template preview answered as a PDF or HTML: the preview link a person can open for an hour. Absent when the copy is too long for a link. |
WWW-Authenticate: Bearer realm="xcel-mail-api" |
Every /v1 401. The MCP endpoint's 401 adds resource_metadata and scope for OAuth clients; see MCP server. |
Other routes
These are not part of the partner REST API, but they run on the same host:
| Route | Who uses it | Auth |
|---|---|---|
/api/mcp and /mcp, the same server (POST, GET, DELETE) |
MCP clients. See MCP server. | The partner API key or an OAuth access token as a bearer token |
GET /.well-known/oauth-protected-resource (also .../oauth-protected-resource/api/mcp, and .../oauth-protected-resource/mcp, which names /mcp as the resource), GET /.well-known/oauth-authorization-server |
MCP clients discovering OAuth (RFC 9728, RFC 8414). See MCP server. | None |
POST /oauth/register, GET and POST /oauth/authorize, POST /oauth/token, POST /oauth/revoke |
MCP clients and the person consenting. OAuth access tokens work only at /api/mcp and /mcp, never on /v1. |
Public clients with PKCE; the consent page takes a partner API key in a same-origin form |
GET /preview/{token} (?format=pdf for the PDF) |
A person opening a template preview link from preview_url. See Preview links. |
The signed token in the link; it lasts one hour |
GET /preview/artwork/{token} |
A person opening an artwork preview link from preview_url: the review proof PDF. See Preview artwork. |
The signed token in the link; it lasts one hour |
/review/{token}, GET /review/{token}/proof.pdf and POST /review/{token}/decision |
The human approver. proof.pdf serves the PDF review proof inline (the review page frames it; ?download=1 saves it). See Quotes and approvals. |
The token in the link; same-origin form posts only |
/console and /console/... |
Your own staff, in the partner console. Pages and form posts only; it has no JSON API. | A session cookie from an email address and password; same-origin form posts only |
GET /status |
Anyone: a page with the health check's answer now. It keeps no history. | None |
/openapi.json, /mcp-tools.json, /llms.txt, /llms-full.txt, /docs/*.md |
Anyone | None |
Account
GET /v1/account answers without a refused submit:
{
"partner": { "id": "...", "name": "Larkspur Data" },
"api_version": "...",
"mode": "live",
"dealer_ids": null,
"ordering_enabled": false,
"audience_map": null,
"live_readiness": {
"ready": false,
"ordering_enabled": false,
"live_dealers": 3,
"live_dealers_more": false,
"dealers_with_registered_approver": 0,
"approvers_waiting_on_xcel": 3,
"approvers_waiting_to_confirm": 0,
"live_webhook_endpoints": 1,
"gaps": [{ "code": "ordering_disabled", "blocks": "submit", "owner": "xcel", "detail": "...", "fix": "..." }],
"guide": "/docs/going-live.md"
},
"limits": { "renders_per_dealer_per_hour": 30, "renders_per_partner_per_hour": 300, "ai_copy_per_dealer_per_day": 200, "ai_copy_per_partner_per_day": 2000, "webhook_endpoints_per_mode": 5 },
"next_step": "..."
}dealer_ids is null for a key that reaches every dealer. For a key limited to some dealers it lists them, every count in live_readiness covers only those dealers, live_webhook_endpoints is 0, because such a key cannot use webhooks, and limits.renders_per_partner_per_hour and limits.ai_copy_per_partner_per_day are null, because the partner's ceilings count your other dealers (Keys for one dealer).
audience_map names the audience map Xcel loaded for your platform, or is null: with one, source_audience on GET /v1/templates leads with the templates for your audience (Find a template).
MCP has no tool for it: list_dealers answers ordering_enabled, and validate_campaign says what one order lacks.
List campaigns
GET /v1/campaigns (MCP: list_campaigns) returns this key's campaigns only (its partner and its mode), newest first by creation time, then id.
| Query | Meaning |
|---|---|
dealer_id |
One dealer's campaigns: the Xcel dealer id or your external dealer id. An unknown dealer, or one outside a limited key's list, is 404 not_found with field: "dealer_id". |
status |
One status (draft, proof_ready, awaiting_approval, ...). |
external_ref |
Campaigns created with this external_ref, exact match. |
created_after, created_before |
Creation time, exclusive. An ISO 8601 date-time with a time zone (2026-11-01T14:00:00Z, 2026-11-01T09:00:00-05:00) or a date (2026-11-01, meaning midnight UTC). |
limit |
1 to 100, default 25. |
starting_after |
The next_cursor of the previous page, unchanged. |
The response is { "campaigns": [...], "has_more": true, "next_cursor": "..." }. Each entry is the campaign object, so it names the dealer by both ids (dealer_id, dealer_external_id) and the template its current creative prints (template_code, template_version; null before the first creative and for your own HTML or print-ready art). To read the next page, send the same filters with starting_after set to next_cursor. On the last page has_more is false and next_cursor is null. The cursor is opaque: do not build or change it; anything else is 400 invalid_request with field: "starting_after". Without parameters the endpoint answers the newest 25.
Find the order you know as cmp_778:
curl -s -H "Authorization: Bearer $KEY" "$API/v1/campaigns?external_ref=cmp_778"Rate limits
REST and MCP calls are not rate-limited in Phase 1. Renders and AI copy are, per dealer with a ceiling for the partner, so one busy dealer cannot stop your other dealers:
| What counts | Per dealer | Per partner, across its dealers | Past it |
|---|---|---|---|
Renders: render_proof, template previews and artwork previews, every format |
30 per UTC hour | 300 per UTC hour | 429 proof_render_rate_limited |
AI copy: model calls for a creative brief (a repair counts as a call) |
200 per UTC day | 2,000 per UTC day | 429 ai_copy_rate_limited |
- Sandbox and live count together, so heavy sandbox testing uses the same hour's renders as live proofs.
- A render or a brief counts against its dealer and the partner: the campaign's dealer, or the dealer a preview names with
dealer_id. A preview withoutdealer_id(Demo Motors) counts against the partner only, or, for a key limited to some dealers, against the first of its dealers too. - Opening a preview link counts nothing. A link renders once per format, on its first opening, and every opening serves that render, so a chat app unfurling the link costs no render.
- A request refused before rendering (400, 404) counts nothing.
- The 429 names the limit (dealer or partner), its number and when it resets: the next UTC hour for renders, midnight UTC for AI copy. Its
fixsays what to do; past a dealer limit, your other dealers carry on. A key limited to some dealers shares the partner's ceiling, with no budget of its own. When it reaches that ceiling it gets the same code with no figures: only when to retry, inRetry-Afterandretry_after_seconds, and noX-RateLimit-*headers. - Xcel can raise one partner's numbers, which matters when one campaign goes to many stores at once. Ask your Xcel contact.
GET /v1/accountshows the numbers that apply to you.
Every 429 carries these headers, with one exception: a key limited to some dealers gets Retry-After alone when the partner's ceiling refuses it, so it learns nothing about the partner's other dealers. They come only on a 429: a call that succeeds has none of them.
| Header | Meaning |
|---|---|
Retry-After |
Whole seconds until the limit resets, at least 1. |
X-RateLimit-Limit |
The number of the limit that refused the call. |
X-RateLimit-Remaining |
0. |
X-RateLimit-Reset |
When the limit resets, in unix seconds. |
The error body also has retry_after_seconds, the same number as Retry-After, so an MCP client, which sees no headers, gets it too:
{
"error": {
"code": "proof_render_rate_limited",
"message": "This dealer used its limit of 30 renders this UTC hour (render_proof, template previews and artwork previews together, sandbox and live together). The dealer limit resets at 2026-11-02T16:00:00.000Z.",
"fix": "Retry after 2026-11-02T16:00:00.000Z. Render a proof once the creative and audience are final. The partner's other dealers can still render. To raise it for this partner, ask Xcel.",
"field": null,
"retry_after_seconds": 3600
}
}Other limits: webhook test events and replays and approver emails per dealer (Errors), the OAuth endpoints' client registration, consent attempts and metadata fetches (Security), and the partner console's sign-in requests and approval-link resends. A 429 from any of them carries the same headers; one from POST /oauth/register has retry_after_seconds in the OAuth error body, and the consent page has the headers only. Poll GET /v1/campaigns/{id} no more than about once a minute, or register a webhook.