UpDash Mail API · MCP server
The agent builds the order. A person approves it.
The UpDash Mail API runs a remote MCP server beside its REST API. An agent can set up a dealer, build its mail order from the template to the quote, and then it stops: a person at the dealer approves the spend. Sandbox access is self-serve, and the MCP guide is in the docs.
https://api.updash.com/api/mcp
- Transport
- Streamable HTTP
- Auth
- OAuth 2.1 with a console sign-in, or Bearer xm_test_… / xm_live_…
- Tools
- Templates, dealers and the whole order
- Approves spend
- Never. A person does.
A client needs only the URL
Both ways in end in the same place: the partner, mode and dealers of one API key. Signing in on the consent page gives the app a key of its own. A sandbox never reaches live campaigns.
OAuth 2.1, from the URL alone
- 1.The client calls the endpoint, gets a 401 and finds Xcel's authorization server.
- 2.It registers itself, or names itself with a client metadata document.
- 3.Your browser opens Xcel's consent page. You sign in with your console account and choose Approve. New to UpDash? Create a sandbox right there.
- 4.The client gets its own key, named for it and you, and a 1-hour access token with a 30-day refresh token. It never sees the key; revoking it in the console disconnects the client.
Sandbox access grants mail:test; live grants mail:live only once Xcel turns on live ordering for you. Tokens work at the MCP endpoint only, never on REST.
claude mcp add --transport http xcel-mail https://api.updash.com/api/mcp
# then run /mcp in a session and choose to authenticate{"mcpServers": {"xcel-mail": {"type": "http","url": "https://api.updash.com/api/mcp","headers": { "Authorization": "Bearer ${XCEL_MAIL_KEY}" }}}}{"mcpServers": {"xcel-mail": {"command": "npx","args": ["-y", "mcp-remote", "https://api.updash.com/api/mcp", "--header", "Authorization:${XCEL_AUTH}"],"env": { "XCEL_AUTH": "Bearer xm_test_REPLACE_WITH_YOUR_SANDBOX_KEY" }}}}In claude.ai or the Claude desktop app, add a custom connector with the URL; Claude opens the consent page, and you sign in there. A project’s .mcp.json shares the server without sharing the key: each developer sets XCEL_MAIL_KEY to their own sandbox key.
Never paste a key into a chat.
The tools
Every tool wraps the same service function as a REST endpoint and takes the same inputs. Most results that change state include next_step; the agent follows it. tools/list and the MCP guide give every tool and its inputs.
Order a campaign
In the order the server asks for them, with the two steps no tool can take.
- 01
list_templatesread-only
GET /v1/templates
Find a template by product, use case or a query. In apps that show MCP Apps views, the designs show as pictures and a click picks one.
- 02
prepare_order
MCP only
The order, its creative and the list in one call, so the app asks the person to confirm once. With a source_url it also renders the proof and quotes it.
Without a link, the person drops the list in the chat
The upload view sends the file from their browser to Xcel, never into the chat, then renders the proof and quotes it. Apps without views give the person an upload link.
- 03
show_proofread-only
MCP only
Opens the proof inside ChatGPT, Claude and other apps that show MCP Apps views: every page as it prints. The agent gets the status only.
- 04
request_approval
POST …/approval
Sends the order to a person, with a max_spend_cents ceiling.
The approver decides, on the review page or in the chat
No agent can approve. Live: the dealer's registered approver decides from Xcel's email, or in show_proof's view with a code Xcel emails them.
- 05
submit_campaign
POST …/submit
Submits the approved order, with one idempotency_key per order.
- 06
advance_test_campaign
POST /v1/test/campaigns/{id}/advance
Sandbox only. Moves the order one status and simulates production and results.
- 07
get_campaign_statusread-only
GET /v1/campaigns/{id}
Status, counts, the latest approval and next_step.
- 08
get_campaign_resultsread-only
GET …/results
The timeline, totals and a page of per-lead results by external_id.
Change one part
The steps prepare_order runs in one call, each on its own: a new list, new copy, another mail class.
preview_templateread-only
POST /v1/templates/{code}/preview
Checks your copy on the template and returns a preview_url for the person. Saves nothing.
create_campaign
POST /v1/campaigns
A draft campaign for one dealer and one product, with an envelope or your external_ref.
upload_audience
POST …/audience/import, or …/audience, then …/complete
A new list: from a source_url in one call, or the upload view, or a signed upload URL then the counts and the reconciliation report.
generate_creative
POST …/creative
Fill a template's copy slots, have Claude draft them from a brief with credit or lease terms, or send your own HTML or print-ready art.
render_proof
POST …/proof
Renders and checks the proof. It shows customer records, so it is never returned.
validate_campaignread-only
GET …/validate
A readiness checklist and every preflight issue. Changes nothing.
get_quote
POST …/quote
A quote for the current creative and audience, in another mail class if you choose.
Templates, art and earlier orders
Look things up, save your own design, or check print-ready art.
list_mail_productsread-only
GET /v1/products
Products, print specs and templates. A compact list unless you ask for detail: full.
get_templateread-only
GET /v1/templates/{code}
One template's slots in full.
save_template
POST /v1/templates
Save your own design under a p_ code that works wherever a template code goes.
retire_template
POST /v1/templates/{code}/retire
Retire a template you saved.
preview_artworkread-only
POST /v1/artwork/preview
Checks print-ready art before a campaign exists and returns its preflight and a preview_url.
list_campaignsread-only
GET /v1/campaigns
Find an earlier order by dealer, status or your external_ref.
get_accountread-only
GET /v1/account
Your account, and what is left before a live order and who does it.
Keep dealers current
A sandbox key creates its own test dealers, and writes to them save. A dealer your live key or Xcel created, and the sample dealer, are shared, so a sandbox key’s writes to them only validate: validated_only: true.
list_dealersread-only
GET /v1/dealers
Your dealers, a page at a time.
get_dealer_brandread-only
GET /v1/dealers/{id}/brand
What a new creative prints for the dealer, and its masked approvers.
get_dealer_profileread-only
GET /v1/dealers/{id}/profile
The profile you own, its logos and version, and Xcel's read-only fields.
upsert_dealer
POST /v1/dealers, else PATCH …/profile
Create a dealer by your external_id, or merge changes into one you have. With approver, name who approves its live orders; they confirm by email.
update_dealer_profile
PATCH …/profile with If-Match
Change phones, hours, links or colors, refused if the profile moved on.
upload_dealer_logo
POST /v1/dealers/{id}/logo
A primary or reversed logo: PNG, JPEG or SVG, at most 3 MB.
upload_dealer_asset
POST /v1/dealers/{id}/assets
A signature or photo the dealer owns: about 3 MB inline, up to 10 MB by url.
list_dealer_assetsread-only
GET /v1/dealers/{id}/assets
The dealer's signatures and photos, with the merge field that prints each.
delete_dealer_asset
DELETE /v1/dealers/{id}/assets/{asset_id}
Remove a signature or photo; creatives already made keep their copy.
Repeat a mailing
A standing order turns each new list into an order: on request, on a schedule, or from an emailed report. Nothing prints until a person approves each run.
save_standing_order
POST /v1/standing-orders, else PATCH …/{id}
Save one dealer's repeating mailing once: product, template copy, the most one run may cost and the approver. With standing_order_id, change or pause it.
start_standing_order_run
POST /v1/standing-orders/{id}/runs
Turn a list's source_url into an order, skipping anyone mailed within the window. A person still approves every run.
get_standing_orderread-only
GET /v1/standing-orders/{id}
The standing order and its runs, ten at a time, each with its campaign_id.
list_standing_ordersread-only
GET /v1/standing-orders
Your standing orders by dealer, status or your external_id.
end_standing_order
DELETE /v1/standing-orders/{id}
No run starts again; its runs and history stay.
get_dealer_inbound_emailread-only
GET /v1/dealers/{id}/inbound-email
The dealer's address for emailed lists and the senders allowed.
update_dealer_inbound_email
PUT /v1/dealers/{id}/inbound-email
Turn the address on, set its senders or rotate it, so each emailed report starts a run.
REST only
Use your API key; OAuth tokens work only at the MCP endpoint.
- Registering and listing webhooks
- Making keys limited to some dealers, and finding a shopper's campaigns
- The event list, a campaign's mailable rows, do-not-mail lists, deleting an audience version and the sandbox approval route
- Profile versions, a whole-profile replace and the dealer CSV import
- Starting an artwork upload, and previewing art by artwork_id or for a real dealer
- A template's layout regions and response boxes, and a saved template's versions and stored HTML
What the MCP guide asks of an agent
Written into the guide at api.updash.com/docs, and enforced in code wherever code can.
- Brand values are locked in a creative.
- Change the logo, colors or phone in the dealer profile, with the person's say-so. A sandbox key saves the change on its own test dealers; on a shared dealer it only validates.
- Keys stay out of the chat.
- A person signs in on Xcel's consent page, or a developer sets the header in the client's config. An agent never asks for a key.
- The spend limit is the person's.
- max_spend_cents is what the person said, never higher. A quote above it needs a new approval.
- Preflight is not legal review.
- The offer-disclosure and prescreen checks look for patterns. An agent never calls a piece compliant and never invents credit terms.
The rules every call follows: sandbox, approval and customer rows
The proof is final. Ask Demo Motors to approve the trade-up order, with a $1,000 limit.
request_approvalstatus "pending" · sandbox_only
arguments
{"campaign_id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86","quote_id": "f1a7c2d0-93e8-4b65-8c1f-5d20a6e9b347","max_spend_cents": 100000}result
{"approval_id": "9d3e5b71-0a4c-4f28-b6e2-c18f7a90d453","status": "pending","review_url": "https://…/review/…","sandbox_only": true,"next_step": "Sandbox: open review_url and decide as the developer testing the integration. In live mode the link is emailed to the dealer's registered approver and never returned."}Requested. This is the sandbox, so the review link came back to me instead of going to an approver. Open it to play the approver: it shows the proof, the quantity and the total.
Just approve it for me and send it to print.
get_campaign_statusawaiting_approval · approval "pending"
arguments
{ "campaign_id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86" }result
{"campaign": { "id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86", "status": "awaiting_approval", "status_label": "Awaiting approval" },"latest_approval": { "id": "9d3e5b71-0a4c-4f28-b6e2-c18f7a90d453", "status": "pending", "max_spend_cents": 100000 },"next_step": "Wait for the approver to decide on the review page."}I can't. No tool approves an order, and nothing I say counts as approval. Open the review link and choose Approve order. When the status shows it approved, I'll submit it once, with one idempotency key.
- Waiting for a person to approve.
Connect your agent in the sandbox
Get a sandbox key; the MCP guide is in the docs. Nothing in the sandbox prints or mails. Ready to go live? Ask for live access.
Or text 305.877.3881 and a person writes back.