Developers · API and MCP
Build on Mango.
Mango is an AI office manager for service businesses — it answers calls, helps book work, follows up commercial proposals and invoices, and chases payment. Its published integration capabilities are available through REST, MCP, and webhooks; Console Aimee uses a separate session-bound owner surface for private account operations.
Three faces, one core
One core, deliberate projections.
Write a script against REST, let an AI agent use an approved MCP tool, or wire real-time webhooks into your stack. Each surface has its own allowlist and permissions; an external key never inherits Console Aimee's private owner controls.
REST API
For apps, scripts & back-officeA versioned, scope-filtered /v1 integration surface for published business records and actions. Consistent envelopes, typed errors, idempotency keys, and cursor pagination — the dependable stuff integrations are built on.
curl https://mangodesk.app/api/v1/work-contexts \
-H "Authorization: Bearer mrk_live_..."MCP server
For Claude, ChatGPT & your own agentsMango speaks the Model Context Protocol natively. Use the authenticated tenant endpoint for a real business connection; the public endpoint is only for product questions. Tenant tools are published and filtered to each key's or grant's scopes.
{
"mcpServers": {
"mango": {
"url": "https://mangodesk.app/mcp/v1",
"headers": { "Authorization": "Bearer $MANGO_ACCESS_TOKEN" }
}
}
}Webhooks
For real-time sync & no-codeGet a signed event the moment a call lands or a booking is made — so teams stop entering the same work context twice. HMAC-signed, retried, replayable. The backbone of the Zapier app.
POST https://your-app.com/hooks/mango
Mango-Signature: t=1720742400,v1=5f8b2c...
{ "type": "booking.created", "data": { ... } }Quickstart
From zero to your first call in four steps.
Create a key
In your console, open Settings → API keys, name a key, and pick its scopes. You'll see the secret once — store it safely.
Verify it
Confirm the key resolves to your business and scopes.
curl https://mangodesk.app/api/v1/me \
-H "Authorization: Bearer mrk_live_..."Make a request
List this week's work contexts — or create a contact. Every non-GET REST write requires an Idempotency-Key header; a write without one returns 400 with code idempotency_key_required. Reuse the same key only to retry the exact same request. Missing-key response: { "error": { "type": "idempotency_error", "code": "idempotency_key_required", "message": "Send an Idempotency-Key header with this request, and reuse the same key only when retrying the exact same action." } }
curl -X POST https://mangodesk.app/api/v1/contacts \
-H "Authorization: Bearer mrk_live_..." \
-H "Idempotency-Key: 8f3a-..." \
-d '{ "name": "Dana Reeve", "phone": "+61400000000" }'Connect your platform
For one business, give your platform the scoped key as a Bearer credential. For a multi-tenant platform, use OAuth 2.1 + PKCE so each owner signs in, reviews scopes and can revoke access. Then use the same Bearer credential with https://mangodesk.app/mcp/v1 or REST, and subscribe to verified webhooks for changes.
Authentication & scopes
Scoped keys. Least privilege by default.
Keys are Stripe-style secrets (mrk_live_… / mrk_test_…), hashed at rest, revocable, and attributed. A key can do only what its scopes allow — enforced on our side, never trusted from the request. Partner apps use OAuth 2.1 authorization code + S256 PKCE Live now so the business owner can review scopes and revoke access without sharing a key. Never put a Mango key in browser code, a mobile app binary, a chat transcript or a webhook URL. Test keys (mrk_test_…) are issued by an owner or admin session with env "test". A test key is a live key: its writes are real records, its reads see every row, and its messages, owner mail, booking cancels that move a deposit refund and webhook events run as a live key's do. It reaches every tool and route a live key with the same scopes reaches.
What still needs a human. A key or OAuth grant can do most of the business, but these steps stay with the owner: paying through Stripe-hosted checkout (payment happens on Stripe's page, never through the API); the accounting provider's consent screen; a one-time secret (API key, webhook signing secret, calendar feed link), emailed to the owner and never returned by a tool; approving an account closure from an emailed link; the emailed sign-in link for an owner's first sign-in to Console; owner re-verification when an owner's authority has been disabled; and SMTP credentials, which are entered in Console only. The AI-spend cap is headless: llm_budget_get and llm_budget_set.
Read
Choose only what the integration needs.
contacts:readwork_contexts:readschedule:readcalls:readcommercial_proposals:readinvoices:readkb:readfiles:readintegrations:read
Write
Create and update published records.
contacts:writework_contexts:writeschedule:writefollowups:writeinvoices:writeinvoices:issueinvoices:mark_paidfiles:writeimports:write
Send
Reach out on the business's behalf.
messages:sendcommercial_proposals:sendfiles:send
Destructive
Explicit and never bundled into a default grant.
bookings:cancelcontacts:deletework_contexts:deletefollowups:deleteinvoices:deletecommercial_proposals:delete
Area scopes
Each area has a read, a write and an act scope. Act is consequential and confirm-gated. A key carries only the areas it was granted.
invoicing:invoicing:readinvoicing:writeinvoicing:actcrew:crew:readcrew:writecrew:actcrm:crm:readcrm:writecrm:actjobs:jobs:readjobs:writejobs:actscheduling:scheduling:readscheduling:writescheduling:actaccounting:accounting:readaccounting:writeaccounting:actsettings:settings:readsettings:writesettings:actmessaging:messaging:readmessaging:writemessaging:actbrief:brief:readbrief:writebrief:actvault:vault:readvault:writevault:actpayments:payments:readpayments:writepayments:actbilling:billing:readbilling:writebilling:actknowledge:knowledge:readknowledge:writeknowledge:actaccount:account:readaccount:writeaccount:act
owner:full expands to every fine owner scope when a key is issued with it.
REST API
Live now
A scoped integration surface, not an exported console.
Rate limits are per key and per 15-minute window: 600 read requests and 120 write requests. Requests over the limit are refused with HTTP 429 and a Retry-After header.
Predictable published resources under https://mangodesk.app/api/v1. Consistent { data } envelopes (lists add has_more and next_cursor), typed errors as { error: { type, code, message } }, cursor pagination, and an OpenAPI 3.1 spec at https://mangodesk.app/api/v1/openapi.json. Owner actions, including plan changes, are listed only to keys and grants whose scopes allow them. A paid plan change completes in Stripe's billing portal. Limits: 600 reads and 120 writes per API key per 15 minutes. Responses to authenticated calls carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (epoch seconds); a call over the limit returns 429 rate_limited with Retry-After. Responses to authenticated calls carry an X-Request-Id header. A plan's booking allowance is counted per billing cycle; once it is used up the booking is refused and the refusal names the plan and the number, for example "You've reached Mango Pro's 25 bookings for this cycle."
| Resource | Methods | Scope |
|---|---|---|
account | verify the key · resolve business and scopes | any valid key |
contacts | list · get · create · update · notes · delete | contacts:* |
work-contexts | list · get · create · update · book appointment · notes · delete | work_contexts:* |
bookings | list · get · create · reschedule · cancel | schedule:* · bookings:cancel |
availability | get policy · list offered slots | schedule:read |
followups | list · get · create · complete · delete | contacts:read · followups:write · followups:delete |
commercial_proposals | list · get · send · delete | commercial_proposals:read · commercial_proposals:send · commercial_proposals:delete |
invoices | list · get · create · issue · mark paid · delete | invoices:read · invoices:write · invoices:issue · invoices:mark_paid · invoices:delete |
calls | list · get | calls:read |
messages | send (SMS / email) | messages:send |
files | list · get metadata · send · delete | files:read · files:send · files:write (delete) |
kb | search · list documents · get document | kb:read |
notes | list · get | contacts:read |
agent | get the capability manifest | any valid key |
context | get the agent session context | any valid key |
settings | get business settings | any valid key |
imports | create or update up to 200 records per call, deduplicated by externalRef | imports:write |
intake | get a caller's intake status by phone number (status only, never answers) | contacts:read |
integrations | list regional connection paths | integrations:read |
webhooks | manage · inspect · replay | owner or admin Console session; API keys with the settings scope, through the developer_webhook tools on /mcp/v1. Not on /api/v1. |
Routes
Every route below is documented in the OpenAPI 3.1 document at https://mangodesk.app/api/v1/openapi.json.
GET /api/v1/agent/manifestGET /api/v1/availabilityGET /api/v1/availability/slotsGET /api/v1/bookingsGET /api/v1/bookings/{id}GET /api/v1/callsGET /api/v1/calls/{id}GET /api/v1/commercial-proposalsGET /api/v1/commercial-proposals/{id}GET /api/v1/contactsGET /api/v1/contacts/{id}GET /api/v1/contextGET /api/v1/filesGET /api/v1/files/{id}GET /api/v1/followupsGET /api/v1/followups/{id}GET /api/v1/intake/statusGET /api/v1/integrationsGET /api/v1/integrations/servicem8GET /api/v1/invoicesGET /api/v1/invoices/{id}GET /api/v1/kb/documentsGET /api/v1/kb/documents/{id}GET /api/v1/kb/searchGET /api/v1/meGET /api/v1/notesGET /api/v1/notes/{id}GET /api/v1/openapi.jsonGET /api/v1/settingsGET /api/v1/work-contextsGET /api/v1/work-contexts/{id}PATCH /api/v1/contacts/{id}PATCH /api/v1/work-contexts/{id}POST /api/v1/bookingsPOST /api/v1/bookings/{id}/cancelPOST /api/v1/bookings/{id}/reschedulePOST /api/v1/commercial-proposals/{id}/deletePOST /api/v1/commercial-proposals/{id}/sendPOST /api/v1/contactsPOST /api/v1/contacts/{id}/deletePOST /api/v1/contacts/{id}/notesPOST /api/v1/files/{id}/deletePOST /api/v1/files/{id}/sendPOST /api/v1/followupsPOST /api/v1/followups/{id}/completePOST /api/v1/followups/{id}/deletePOST /api/v1/importsPOST /api/v1/invoicesPOST /api/v1/invoices/{id}/deletePOST /api/v1/invoices/{id}/issuePOST /api/v1/invoices/{id}/mark-paidPOST /api/v1/messagesPOST /api/v1/work-contextsPOST /api/v1/work-contexts/{id}/appointmentPOST /api/v1/work-contexts/{id}/deletePOST /api/v1/work-contexts/{id}/notes
Model Context Protocol
Agent access with clear capability boundaries.
On the public owner-signup MCP at https://mangodesk.app/mcp, mutating owner tools are limited to 12 calls per hour per IP by default; owner__continue and owner__get_status allow 60 calls per hour per IP for polling.
Connect Claude, ChatGPT, a field-service platform or your own agent to the endpoint that matches its task. Marketing MCP answers public product questions. A real service-business platform connection uses authenticated tenant MCP at https://mangodesk.app/mcp/v1 with a scoped API key or OAuth access token. Tools are filtered on the server by the bound tenant and scopes. Console Aimee uses a separate session-bound private registry for owner-approved operations.
Connecting a client
Mango speaks the ordinary MCP handshake, so any standard client connects with no custom code: send initialize, then notifications/initialized, then tools/list. Supported revisions are 2025-11-25, 2025-06-18 and 2025-03-26; ask for anything else and the server negotiates down to one it supports rather than failing — read result.protocolVersion and carry on. No bespoke headers are needed, and Mcp-Session-Id is accepted and ignored because Mango keeps no transport session.
curl -X POST https://mangodesk.app/mcp/v1 \
-H "Authorization: Bearer $MANGO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{
"protocolVersion":"2025-06-18",
"capabilities":{},
"clientInfo":{"name":"your-app","version":"1.0.0"}}}'There is also an opt-in stateless dialect, 2026-07-28 — no handshake, per-request params._meta, and Mcp-Method/Mcp-Name headers that must match the request. You only get it by explicitly declaring that version, so ignore it unless you want it.
Live now Public receptionist
Answer-engine and agent tools — pricing, how-it-works, capture an enquiry, book an onboarding call. No key required.
{
"mcpServers": {
"mango": { "url": "https://mangodesk.app/mcp" }
}
}Live now Authenticated tenant tools
Published tenant operations, scoped to a key or OAuth grant, at https://mangodesk.app/mcp/v1. Connect with Authorization: Bearer <credential>; call account__me first to verify the bound business and scopes, then list tools. Tools are filtered to the caller's scopes—an agent sees only the explicitly released capabilities. Billing plan and specialist-agent changes are owner-confirmed on this endpoint for keys with the billing scope; a paid change completes in Stripe's billing portal.
curl -X POST https://mangodesk.app/mcp/v1 \
-H "Authorization: Bearer $MANGO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'account__meaccount__contextagent__manifestsettings__getcontacts__listcontacts__getwork_contexts__listwork_contexts__getbookings__listbookings__getavailability__getavailability__slotscalls__listcalls__getcommercial_proposals__listcommercial_proposals__getinvoices__listinvoices__getfollowups__listfollowups__getfiles__listfiles__getnotes__listnotes__getkb__searchkb__documents__listkb__documents__getintegrations__catalogintegrations__servicem8__statusintake__statuscontacts__createcontacts__updatecontacts__notes__creatework_contexts__creatework_contexts__updatework_contexts__notes__creatework_contexts__book_appointmentbookings__createbookings__reschedulefollowups__createfollowups__completeinvoices__createinvoices__issueinvoices__mark_paidcommercial_proposals__sendfiles__sendmessages__sendimports__createbookings__cancelcontacts__deletework_contexts__deleteinvoices__deletecommercial_proposals__deletefollowups__deletefiles__deleteDeleting a record removes it from your view permanently — 404 afterward, gone from every list — but a delete that would strand open work or an unsettled document refuses with 409 and a blockers list naming exactly what's in the way, never a silent cascade. A paid invoice specifically refuses deletion (Australian tax retention). Two operations are deliberately not published: commercial-proposal create (no bare-entry path — quotes are cost-model-driven) and invoice update (no edit primitive exists anywhere in Mango, Console included); create → delete → recreate covers a correction. Bringing in another system's history at once, not just one record at a time? imports__create creates or updates up to 200 records per call, deduplicated by your own externalRef so re-submitting the same data updates instead of duplicating.
Webhooks
Live now
Stop teams entering every work context twice.
Owners and admins manage endpoint URLs in Console, and an API key with the settings scope can manage them through the developer_webhook tools on /mcp/v1. Mango pushes the verified events below, retries failures with backoff, and preserves a replayable delivery log. Verify the timestamped Mango-Signature HMAC-SHA256 header over timestamp.raw_body, reject stale timestamps, and de-duplicate on the stable event ID before processing a payload. Delivery is at least once; do not treat a retry as a new work context.
webhook.pingcontact.createdbooking.createdcall.completedConnected apps
Meet every platform where it already works.
ServiceM8 is the first provider adapter. An owner or admin authorizes it from Console and chooses read-only or read/write access. Mango imports ServiceM8 contacts, work contexts, and scheduled activities; read/write mode can export Mango-origin contacts, work contexts, and appointments. Provider credentials are encrypted, webhook notifications are de-duplicated, and disconnect revokes the local connection. ServiceM8 appears in Console integrations when its provider credentials are configured.
For any other platform, call GET /integrations?market=AU|NZ|GB|US or the authenticated integrations__catalog MCP tool. It distinguishes a live native connector from a bring-your-own REST/MCP/webhook path, planned work and partner programmes—so an integrator is never misled by a logo wall. simPRO, Fergus, BigChange and Jobber are planned adapter tracks; Tradify, Housecall Pro and ServiceTitan require provider partnership or approval. If the platform runs an agent, it can use authenticated MCP. Known-party Aimee-to-Aimee coordination is deliberately narrower: it exchanges only approved availability inside a relationship-specific mandate, not customer data, price, scope, contract or payment terms.
Access points
Everything an agent needs to discover us.
Machine-readable entry points — hit them directly, or let an AI agent find its own way in.
MCP endpoint (live)
https://mangodesk.app/mcp
Public receptionist tools — available now.
Live nowllms.txt
https://mangodesk.app/llms.txt
Agent-readable index of the platform.
Live nowDeveloper manifest
https://mangodesk.app/.well-known/mango-developer.json
Machine manifest: endpoints, auth, scopes, events.
Live nowREST base
https://mangodesk.app/api/v1
Versioned /v1 API.
Live nowAuthenticated MCP
https://mangodesk.app/mcp/v1
Published tenant tools, filtered by bearer scopes.
Live nowOpenAPI 3.1
https://mangodesk.app/api/v1/openapi.json
Machine-readable operation contract.
Developer access
Create a scoped key or register an OAuth client.
Owners can create API keys in Console. Partner apps can use the OAuth discovery metadata and authorization flow; contact us when you need a confidential client registration or integration review.