Build with agents
Your agent can order a mailer. Here's how to connect it.
Claude, ChatGPT and other MCP clients can build a dealer's direct-mail order through the UpDash Mail API: the campaign, the copy, the proof and the quote. Then the agent stops, and a person at the dealership approves the spend. Getting started takes three steps and no code.
https://api.updash.com/api/mcp
- Sandbox keys
- xm_test_… never print or mail
- Live keys
- xm_live_… after onboarding
- Tools
- The same code as the REST API
- Approves spend
- Never. A person at the dealership does.
Three steps to connect an agent
You sign in with your console account on Xcel's consent page. There is no key to copy, and nothing secret enters the chat.
Step 1: Get a sandbox key
Fill in the form on this page, and within a minute we email you a link to the console. Or create the sandbox on the consent page when your agent first connects. The MCP guide is in the docs.
Sandbox keys start with
xm_test_
Nothing a sandbox key orders ever prints, mails or creates work for Xcel staff. Results come back simulated, marked simulated: true.
Get a sandbox keyStep 2: Connect your agent
Pick your client. Each one opens Xcel’s consent page, where you sign in with your console account and approve.
In claude.ai or the Claude desktop app, on a plan with custom connectors. On a Team or Enterprise plan, an owner may need to add it first.
- 1.Open Settings, then Connectors.
- 2.Choose Add custom connector, name it UpDash Mail and paste the MCP URL.
- 3.Claude opens Xcel’s consent page. Sign in with your console account, choose Sandbox, and choose Approve.
MCP URL https://api.updash.com/api/mcp
One command in your terminal. Claude Code opens Xcel’s consent page in your browser.
Claude Code, by OAuthShell claude mcp add --transport http xcel-mail \ https://api.updash.com/api/mcp # then run /mcp in a session and choose to authenticateCheck the connection with
claude mcp list, or run/mcpinside a session.On Business, Enterprise and Edu workspaces, on the web, where an admin allows custom MCP servers.
- 1.Open Plugins and choose Add custom MCP server.
- 2.Name it UpDash Mail, paste the MCP URL and choose OAuth sign-in.
- 3.ChatGPT opens Xcel’s consent page. Sign in with your console account, choose Sandbox, and choose Approve.
MCP URL https://api.updash.com/api/mcp
A client that supports MCP authorization (OAuth 2.1 with PKCE) needs only the URL:
MCP config, by OAuthJSON {"mcpServers": {"xcel-mail": {"url": "https://api.updash.com/api/mcp"}}}A client that can only send headers uses your key as a Bearer token. Keep it in the client’s config, never in a chat. Field names vary by client; some also want
"type": "http".MCP config, key as a headerJSON {"mcpServers": {"xcel-mail": {"url": "https://api.updash.com/api/mcp","headers": {"Authorization": "Bearer xm_test_YOUR_SANDBOX_KEY"}}}}Step 3: Ask for a piece
Paste this into the chat. Demo Motors is the sample store every sandbox starts with. The agent builds the order, then stops at the approval.
More starter promptsStarter prompt In the sandbox, make a birthday postcard for Demo Motors with a $50 service gift. Give me the upload page for my customer list, write the copy, show me the proof and get a quote. Then ask for approval with a limit of $50.
Agents can also read the flow and the rules from https://api.updash.com/llms.txt.
A full session, from the prompt to the approval
A run from a prompt like the one in step 3. The agent builds the order, then waits for a person.
In the sandbox, set up this month's birthday postcards for Demo Motors. The gift is $25 toward any service, through month-end. Write the note, and keep the order under $500.
list_templates1 template · postcard_6x9_birthday
arguments
{ "product_code": "postcard_6x9", "use_case": "birthday" }result
{"templates": [{"code": "postcard_6x9_birthday","product_code": "postcard_6x9","name": "Birthday postcard with a gift","use_cases": ["birthday", "customer_loyalty", "gift_offer"],"requires_prescreened_list": false,"preview_url": "https://api.updash.com/preview/…"}]}create_campaignstatus "draft" · mode "test"
arguments
{"dealer_id": "demo-motors","product_code": "postcard_6x9","name": "November birthdays"}result
{"campaign": { "id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86", "mode": "test", "status": "draft" },"next_step": "Upload the audience: upload_audience (POST /v1/campaigns/{id}/audience)."}upload_audienceupload_url · expires in 2 hours
arguments
{ "campaign_id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86" }result
{"audience_id": "c4e82a19-7f3b-4d06-b5a1-38d9e6f02c74","upload_url": "https://…/source.csv?token=…","upload_method": "PUT","upload_expires_in_seconds": 7200}Upload your customer list from your own machine with this command, then tell me. Please don't paste the file here.
curl -X PUT -H 'content-type: text/csv' \ --data-binary @november-birthdays.csv "<upload_url>"
Uploaded.
upload_audience412 mailable · 9 rejected
arguments
{"campaign_id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86","uploaded_audience_id": "c4e82a19-7f3b-4d06-b5a1-38d9e6f02c74"}result
{"audience": {"status": "ready","submitted_count": 421,"mailable_count": 412,"rejected_count": 9,"reconciliation": {"rejected_by_reason": { "duplicate": 6, "invalid_zip": 3 }}}}generate_creativeai_copy ready · 2 slots · preflight ok
arguments
{"campaign_id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86","template_code": "postcard_6x9_birthday","copy": { "gift_offer": "$25 toward any service" },"brief": {"goal": "Wish this month's customers a happy birthday and invite them in for their gift","offer": "$25 toward any service, good through the end of the month.","tone": "warm and personal"}}result
{"creative": {"version": 1,"preflight": {"ok": true,"issues": []}},"ai_copy": {"status": "ready","rounds": 1,"generated_slots": ["note", "expires"],"copy": { "expires": "12/31/2026" }},"profile_slots": ["cta_phone", "signer_name", "signer_title"]}render_proofstatus "proof_ready" · proof not returned
arguments
{ "campaign_id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86" }result
{"status": "proof_ready","renderer": { "format": "pdf", "pdf_available": true },"preview": "The proof shows customer records, so it is not returned through the API."}get_quote412 pieces · first_class
arguments
{ "campaign_id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86" }result
{"quote": {"id": "f1a7c2d0-93e8-4b65-8c1f-5d20a6e9b347","quantity": 412,"mail_class": "first_class","placeholder_pricing": false}}request_approvalstatus "pending" · sandbox_only
arguments
{"campaign_id": "6b1f0e93-2d47-4c8a-9a35-e0c7f4b21d86","quote_id": "f1a7c2d0-93e8-4b65-8c1f-5d20a6e9b347","max_spend_cents": 50000}result
{"approval_id": "9d3e5b71-0a4c-4f28-b6e2-c18f7a90d453","status": "pending","review_url": "https://…/review/…","sandbox_only": true}The order is ready and inside your $500 limit. The gift prints as you named it: $25 toward any service, good through month-end. Read the drafted note on the proof before you decide: the checks on it are pattern checks. The review link came back to me because this is the sandbox, so open it yourself. I can't approve. With a live key, Xcel emails the link to Demo Motors' registered approver and I never see it. The quote is a sandbox placeholder, not a price.
- Waiting for a person to approve.
Starter prompts
Copy one and replace the words in brackets with your own dealer and campaign IDs. Under each prompt are the tools the agent will call.
See what you can order
Using the UpDash Mail tools, list the mail products I can order. For each template, show its copy slots and their limits.
list_mail_products · list_templates
Draft a service reminder
Draft a 6x9 service-reminder postcard for Demo Motors, for customers we have not seen in 12 months. The offer is [your offer and end date]. Give me the upload page for my list, then write the copy and render a proof.
list_templates · create_campaign · upload_audience · generate_creative · render_proof
Quote it and ask the approver
Get a quote for campaign [campaign ID]. Then ask the dealer's approver to approve it, with a limit of [your limit].
get_quote · request_approval
Fix what the checks found
Run the checks on campaign [campaign ID]. List every preflight issue with its fix, then fix the ones in the copy.
validate_campaign · generate_creative
Check a dealer's profile
Show me the profile for Demo Motors: phones, hours and logo. If the service phone is not [phone], tell me what the change would be.
get_dealer_profile · update_dealer_profile
Pull results per lead
Pull the results for campaign [campaign ID]. List every lead by external_id with its responses and any matched sale or repair order, then total them.
get_campaign_results
Questions
- Do I need to write code to connect my agent?
- No. In Claude or ChatGPT, a custom connector with the MCP URL is enough, and you sign in with your console account on Xcel's consent page. Even your customer list stays in the chat window: a drop zone opens there and the file goes from your browser straight to Xcel, never into the chat. Where an app shows no drop zone, the agent gives you an upload page instead. A link to the CSV that Xcel fetches once, or your own system, works too.
- Can my agent spend money?
- No. The agent prepares the order and asks for approval, with a spending limit you set. A registered approver at the dealership decides, on the review page or right in the chat: show_proof opens the proof there, and the approver enters a code Xcel emails them. In live mode the review link and the code go to the approver by email, and the agent never sees either.
- Where does customer data go?
- To private storage, never the chat. The agent passes a link to the CSV that Xcel fetches once, or gets a signed upload URL that you or your system upload the file to. Tool results carry ids, counts and reason codes, and per-lead results come back by your external_id, never by name or address.
- Can the agent write the copy?
- Yes. Give it the goal and the real offer, with its figures and end date, and Claude drafts the template's copy slots under checks in code. The checks are pattern checks, not legal review, so read the draft on the proof before you approve.
- What does it cost to try?
- Trying it starts with a sandbox key. Nothing in the sandbox prints, mails or reaches Xcel's production staff. A sandbox quote shows what the same live order would cost. Live mail is priced per piece at your volume tier, with no monthly fee. The console and every quote show your prices.
- When can I use it live?
- After onboarding, when Xcel switches on live ordering for your company. You keep each dealer's profile and logos and name its approver, who confirms by emailed link; Xcel confirms any approver whose email is outside the dealer's own domain, and manages disclosures, the license number and the spend cap. Xcel's production team runs address processing and printing behind the API and checks every live order before it prints, and a person at the dealer approves each live order first.
Get a sandbox key
Tell us what your agent would do. We never ask for a key or customer data in a form.
- A sandbox key that starts xm_test_. Nothing it orders prints or mails.
- The MCP guide in the docs, with the safety rules agents follow.
- Live ordering after onboarding, with a person at the dealer approving every order.
Writing code instead? Read the quickstart
Ready to go live? Ask for live access