{"name":"Mango Desk","description":"AI office manager for service businesses. Public REST and authenticated MCP expose explicit scope-filtered integrations; Console Aimee uses a separate session-bound private MCP registry for owner operations.","documentation":"https://mangodesk.app/developers","llms_txt":"https://mangodesk.app/llms.txt","status":"live","contact":"developers@mangodesk.app","mcp":{"protocol":{"supported_versions":["2026-07-28","2025-11-25","2025-06-18","2025-03-26"],"default_for_standard_clients":"2025-11-25","handshake":"Send a normal JSON-RPC `initialize` with your protocolVersion, capabilities and clientInfo. The server negotiates a supported revision and replies with capabilities and serverInfo. Mcp-Session-Id is accepted and ignored; no bespoke headers are needed.","stateless_dialect":{"version":"2026-07-28","note":"Opt-in only. Declare this version in MCP-Protocol-Version (and params._meta) to use the stateless dialect: no handshake, per-request _meta, and Mcp-Method / Mcp-Name headers that must match the request."}},"marketing":{"url":"https://mangodesk.app/mcp","transport":"streamable-http","auth":"none","status":"live"},"public_receptionist":{"url":"https://mangodesk.app/mcp/t/{embedKey}","transport":"streamable-http","auth":"embed_key_path","status":"live"},"authenticated":{"url":"https://mangodesk.app/mcp/v1","transport":"streamable-http","auth":["api_key","oauth2.1_pkce"],"status":"live","exposure":"published_scope_filtered_tools_only","tool_manifest":"https://mangodesk.app/mcp/v1/tool-manifest.json","tool_manifest_kind":"menu","human_in_the_loop_carve_outs":[{"area":"billing_checkout","reason":"Card entry happens on Stripe's hosted page.","agent_gets":"billing_checkout_start (Stripe checkout URL)","tools":["billing_checkout_start"],"poll_status_with":["billing_summary_get","billing_account_summary"]},{"area":"billing_portal","reason":"A paid plan change or specialist-agent activation is a prorated charge. The owner confirms it through the agent, then completes it in Stripe's billing portal.","agent_gets":"billing_plan_switch and billing_specialist_agent_set_enabled (owner-confirmed; on confirm they return the portal link), billing_portal_prepare (portal URL)","tools":["billing_plan_switch","billing_specialist_agent_set_enabled","billing_portal_prepare"],"poll_status_with":["billing_summary_get"]},{"area":"secret_reveal","reason":"A one-time secret (API key, webhook signing secret, calendar feed link) is emailed to the owner and revealed once in the browser. The agent gets a delivery receipt, never the secret.","agent_gets":"developer_api_key_create, developer_webhook_create and calendar_create_feed_token return a delivery status and no secret","tools":["developer_api_key_create","developer_webhook_create","calendar_create_feed_token"],"poll_status_with":[]},{"area":"account_close_approval","reason":"Closing the business needs the owner's approval through an emailed link, valid 30 minutes. The agent's confirm only sends that link; the account stays open until the owner clicks it.","agent_gets":"account_close (stages, then reports awaiting_owner_approval)","tools":["account_close"],"poll_status_with":["account_close_preview"]},{"area":"accounting_connection","reason":"The provider's own consent screen must be completed by the owner.","agent_gets":"accounting_connection_prepare (authorisation URL)","tools":["accounting_connection_prepare"],"poll_status_with":["accounting_connection_inspect"]},{"area":"smtp_secret_entry","reason":"SMTP credentials are entered in the Console only. No headless tool accepts or returns them.","agent_gets":"nothing; use the Console","tools":[],"poll_status_with":[]}]},"console_internal":{"transport":"json-rpc","auth":"authenticated_member_session","status":"live","exposure":"private_console_registry for the owner session; API keys and OAuth grants see the published registry tools their scopes allow","owner_billing_tools":["billing_plan_options","billing_plan_switch","billing_specialist_agent_set_enabled"]}},"rest":{"base":"https://mangodesk.app/api/v1","openapi":"https://mangodesk.app/api/v1/openapi.json","status":"live","rate_limits":{"summary":"600 reads and 120 writes per API key per 15 minutes","reads_per_key_per_15_minutes":600,"writes_per_key_per_15_minutes":120,"response_headers":["X-RateLimit-Limit","X-RateLimit-Remaining","X-RateLimit-Reset","X-Request-Id"],"over_limit":{"status":429,"code":"rate_limited","headers":["Retry-After","X-RateLimit-Limit","X-RateLimit-Remaining","X-RateLimit-Reset"]},"request_id_header":"X-Request-Id","booking_refusal_example":"You've reached Mango Pro's 25 bookings for this cycle."}},"webhooks":{"manage":"https://mangodesk.app/console/webhook-endpoints","management_auth":"The Console at /console/webhook-endpoints (owner or admin session, cookie only, a bearer key is refused). An API key with the settings scope manages endpoints through the developer_webhook* tools on /mcp/v1 (key_tools). /api/v1 has no webhook routes.","key_tools":["developer_webhooks_list","developer_webhook_create","developer_webhook_update","developer_webhook_test","developer_webhook_revoke","developer_webhook_deliveries_list","developer_webhook_delivery_replay","developer_webhook_rotate_secret"],"signature":"hmac-sha256","header":"Mango-Signature","status":"live"},"auth":{"methods":["api_key","oauth2.1_pkce"],"api_key_format":"mrk_live_… / mrk_test_…","api_key_status":"live","test_keys":{"format":"mrk_test_…","issued_by":"An owner or admin session: POST /console/api-keys with env \"live\" or \"test\". The Console Developer panel offers the same choice.","sandbox":"None. A mrk_test_ key's writes are real records, its reads see every row, and it reaches every tool and route a live key with the same scopes reaches."},"oauth_status":"live","oauth_metadata":"https://mangodesk.app/.well-known/oauth-protected-resource"},"scopes":["contacts:read","contacts:write","work_contexts:read","work_contexts:write","followups:write","calls:read","invoices:read","commercial_proposals:read","schedule:read","integrations:read","schedule:write","bookings:cancel","files:read","messages:send","invoices:write","invoices:issue","invoices:mark_paid","invoices:delete","commercial_proposals:send","commercial_proposals:delete","contacts:delete","work_contexts:delete","followups:delete","files:write","files:send","kb:read","imports:write"],"capability_boundaries":{"public_marketing_mcp":"Public product information and explicit commitment tools only.","public_receptionist_mcp":"Customer-facing assistant for one embed-key tenant; no private Console data.","authenticated_rest_and_mcp":"Only published tools, filtered to the key's or grant's scopes. Every tool listed to a key is callable with that scope. Console pages and the browser-only steps in human_in_the_loop_carve_outs are not.","console_internal_mcp":"Authenticated member-session projection of the internal registry. Owner-confirmed billing plan and specialist-agent changes are also listed on /mcp/v1 to keys and grants with the billing scope; a paid change completes in Stripe's billing portal."},"capabilities":[{"id":"account.get","title":"Connection test","scope":null,"rest":{"method":"GET","path":"/me"},"mcp":{"name":"account.me","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":null,"note":"Connection-test identity for the calling key."},"release":"live"},{"id":"contacts.list","title":"List contacts","scope":"contacts:read","rest":{"method":"GET","path":"/contacts"},"mcp":{"name":"contacts.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":"Contact"},"release":"live"},{"id":"contacts.get","title":"Get contact","scope":"contacts:read","rest":{"method":"GET","path":"/contacts/{id}"},"mcp":{"name":"contacts.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"Contact"},"release":"live"},{"id":"intake.status","title":"Client intake status","scope":"contacts:read","rest":{"method":"GET","path":"/intake/status"},"mcp":{"name":"intake.status","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":null,"note":"The caller's own intake status only: no answer and no health detail."},"release":"live"},{"id":"contacts.create","title":"Create or enrich contact","scope":"contacts:write","rest":{"method":"POST","path":"/contacts"},"mcp":{"name":"contacts.create","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"contacts.update","title":"Update contact","scope":"contacts:write","rest":{"method":"PATCH","path":"/contacts/{id}"},"mcp":{"name":"contacts.update","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"work_contexts.list","title":"List work contexts","scope":"work_contexts:read","rest":{"method":"GET","path":"/work-contexts"},"mcp":{"name":"work_contexts.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":"WorkContext"},"release":"live"},{"id":"work_contexts.get","title":"Get work context","scope":"work_contexts:read","rest":{"method":"GET","path":"/work-contexts/{id}"},"mcp":{"name":"work_contexts.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"WorkContext"},"release":"live"},{"id":"work_contexts.create","title":"Create work context","scope":"work_contexts:write","rest":{"method":"POST","path":"/work-contexts"},"mcp":{"name":"work_contexts.create","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"work_contexts.update","title":"Update work context","scope":"work_contexts:write","rest":{"method":"PATCH","path":"/work-contexts/{id}"},"mcp":{"name":"work_contexts.update","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"work_contexts.book_appointment","title":"Book work-context appointment","scope":"work_contexts:write","rest":{"method":"POST","path":"/work-contexts/{id}/appointment"},"mcp":{"name":"work_contexts.book_appointment","readOnly":false,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"followups.list","title":"List follow-ups","scope":"contacts:read","rest":{"method":"GET","path":"/followups"},"mcp":{"name":"followups.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":"Followup"},"release":"live"},{"id":"followups.get","title":"Get follow-up","scope":"contacts:read","rest":{"method":"GET","path":"/followups/{id}"},"mcp":{"name":"followups.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"Followup"},"release":"live"},{"id":"followups.create","title":"Create follow-up","scope":"followups:write","rest":{"method":"POST","path":"/followups"},"mcp":{"name":"followups.create","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"followups.complete","title":"Complete follow-up","scope":"followups:write","rest":{"method":"POST","path":"/followups/{id}/complete"},"mcp":{"name":"followups.complete","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"calls.list","title":"List calls","scope":"calls:read","rest":{"method":"GET","path":"/calls"},"mcp":{"name":"calls.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":"Call"},"release":"live"},{"id":"calls.get","title":"Get call","scope":"calls:read","rest":{"method":"GET","path":"/calls/{id}"},"mcp":{"name":"calls.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"Call"},"release":"live"},{"id":"invoices.list","title":"List invoices","scope":"invoices:read","rest":{"method":"GET","path":"/invoices"},"mcp":{"name":"invoices.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":"Invoice"},"release":"live"},{"id":"invoices.get","title":"Get invoice","scope":"invoices:read","rest":{"method":"GET","path":"/invoices/{id}"},"mcp":{"name":"invoices.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"Invoice"},"release":"live"},{"id":"commercial_proposals.list","title":"List commercial proposals","scope":"commercial_proposals:read","rest":{"method":"GET","path":"/commercial-proposals"},"mcp":{"name":"commercial_proposals.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":"CommercialProposal"},"release":"live"},{"id":"commercial_proposals.get","title":"Get commercial proposal","scope":"commercial_proposals:read","rest":{"method":"GET","path":"/commercial-proposals/{id}"},"mcp":{"name":"commercial_proposals.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"CommercialProposal"},"release":"live"},{"id":"bookings.list","title":"List bookings","scope":"schedule:read","rest":{"method":"GET","path":"/bookings"},"mcp":{"name":"bookings.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":"PublicBooking"},"release":"live"},{"id":"bookings.get","title":"Get booking","scope":"schedule:read","rest":{"method":"GET","path":"/bookings/{id}"},"mcp":{"name":"bookings.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"PublicBooking"},"release":"live"},{"id":"availability.get","title":"Get availability policy","scope":"schedule:read","rest":{"method":"GET","path":"/availability"},"mcp":{"name":"availability.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"Availability"},"release":"live"},{"id":"availability.slots","title":"List bookable slots","scope":"schedule:read","rest":{"method":"GET","path":"/availability/slots"},"mcp":{"name":"availability.slots","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"array","resource":"BookableSlot"},"release":"live"},{"id":"integrations.catalog","title":"List integration paths","scope":"integrations:read","rest":{"method":"GET","path":"/integrations"},"mcp":{"name":"integrations.catalog","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"array","resource":"IntegrationProvider"},"release":"live"},{"id":"integrations.servicem8.status","title":"Inspect ServiceM8 connection","scope":"integrations:read","rest":{"method":"GET","path":"/integrations/servicem8"},"mcp":{"name":"integrations.servicem8.status","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"array","resource":"Integration"},"release":"live"},{"id":"bookings.create","title":"Create booking","scope":"schedule:write","rest":{"method":"POST","path":"/bookings"},"mcp":{"name":"bookings.create","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":null,"note":"Booking result: ok, the created booking (Booking), and a message."},"release":"live"},{"id":"bookings.reschedule","title":"Reschedule booking","scope":"schedule:write","rest":{"method":"POST","path":"/bookings/{id}/reschedule"},"mcp":{"name":"bookings.reschedule","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":null,"note":"Booking result: ok, the rescheduled booking (Booking), and a message."},"release":"live"},{"id":"bookings.cancel","title":"Cancel booking","scope":"bookings:cancel","rest":{"method":"POST","path":"/bookings/{id}/cancel"},"mcp":{"name":"bookings.cancel","readOnly":false,"destructive":true,"idempotent":false},"output":{"envelope":"object","resource":null,"note":"Booking result: ok, the cancelled booking (Booking), and a message."},"release":"live"},{"id":"files.list","title":"List files","scope":"files:read","rest":{"method":"GET","path":"/files"},"mcp":{"name":"files.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":"File"},"release":"live"},{"id":"files.get","title":"Get file metadata","scope":"files:read","rest":{"method":"GET","path":"/files/{id}"},"mcp":{"name":"files.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"File"},"release":"live"},{"id":"messages.send","title":"Send message","scope":"messages:send","rest":{"method":"POST","path":"/messages"},"mcp":{"name":"messages.send","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"Message"},"release":"live"},{"id":"contacts.notes.create","title":"Add contact note","scope":"contacts:write","rest":{"method":"POST","path":"/contacts/{id}/notes"},"mcp":{"name":"contacts.notes.create","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"work_contexts.notes.create","title":"Add work-context note","scope":"work_contexts:write","rest":{"method":"POST","path":"/work-contexts/{id}/notes"},"mcp":{"name":"work_contexts.notes.create","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"invoices.create","title":"Create invoice draft","scope":"invoices:write","rest":{"method":"POST","path":"/invoices"},"mcp":{"name":"invoices.create","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"Invoice"},"release":"live"},{"id":"invoices.issue","title":"Issue invoice","scope":"invoices:issue","rest":{"method":"POST","path":"/invoices/{id}/issue"},"mcp":{"name":"invoices.issue","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"Invoice"},"release":"live"},{"id":"invoices.mark_paid","title":"Record invoice payment","scope":"invoices:mark_paid","rest":{"method":"POST","path":"/invoices/{id}/mark-paid"},"mcp":{"name":"invoices.mark_paid","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"Invoice"},"release":"live"},{"id":"invoices.delete","title":"Delete (void) invoice","scope":"invoices:delete","rest":{"method":"POST","path":"/invoices/{id}/delete"},"mcp":{"name":"invoices.delete","readOnly":false,"destructive":true,"idempotent":true},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"commercial_proposals.send","title":"Send commercial proposal","scope":"commercial_proposals:send","rest":{"method":"POST","path":"/commercial-proposals/{id}/send"},"mcp":{"name":"commercial_proposals.send","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"CommercialProposal"},"release":"live"},{"id":"commercial_proposals.delete","title":"Delete (archive) commercial proposal","scope":"commercial_proposals:delete","rest":{"method":"POST","path":"/commercial-proposals/{id}/delete"},"mcp":{"name":"commercial_proposals.delete","readOnly":false,"destructive":true,"idempotent":true},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"contacts.delete","title":"Delete contact","scope":"contacts:delete","rest":{"method":"POST","path":"/contacts/{id}/delete"},"mcp":{"name":"contacts.delete","readOnly":false,"destructive":true,"idempotent":true},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"work_contexts.delete","title":"Delete work context","scope":"work_contexts:delete","rest":{"method":"POST","path":"/work-contexts/{id}/delete"},"mcp":{"name":"work_contexts.delete","readOnly":false,"destructive":true,"idempotent":true},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"followups.delete","title":"Delete follow-up","scope":"followups:delete","rest":{"method":"POST","path":"/followups/{id}/delete"},"mcp":{"name":"followups.delete","readOnly":false,"destructive":true,"idempotent":true},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"files.delete","title":"Delete file","scope":"files:write","rest":{"method":"POST","path":"/files/{id}/delete"},"mcp":{"name":"files.delete","readOnly":false,"destructive":true,"idempotent":true},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"files.send","title":"Send file","scope":"files:send","rest":{"method":"POST","path":"/files/{id}/send"},"mcp":{"name":"files.send","readOnly":false,"destructive":false,"idempotent":false},"output":{"envelope":"object","resource":"WriteResult"},"release":"live"},{"id":"kb.search","title":"Search knowledge base","scope":"kb:read","rest":{"method":"GET","path":"/kb/search"},"mcp":{"name":"kb.search","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":null,"note":"Knowledge document summaries for the query. Not paged: has_more is always false."},"release":"live"},{"id":"kb.documents.list","title":"List knowledge documents","scope":"kb:read","rest":{"method":"GET","path":"/kb/documents"},"mcp":{"name":"kb.documents.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":null,"note":"Knowledge document summaries. Not paged: has_more is always false."},"release":"live"},{"id":"kb.documents.get","title":"Get knowledge document","scope":"kb:read","rest":{"method":"GET","path":"/kb/documents/{id}"},"mcp":{"name":"kb.documents.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":null,"note":"One knowledge document: summary fields plus its detail."},"release":"live"},{"id":"notes.list","title":"List notes","scope":"contacts:read","rest":{"method":"GET","path":"/notes"},"mcp":{"name":"notes.list","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"list","resource":null,"note":"Staff notes (agent notes). Not paged: has_more is always false."},"release":"live"},{"id":"notes.get","title":"Get note","scope":"contacts:read","rest":{"method":"GET","path":"/notes/{id}"},"mcp":{"name":"notes.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":null,"note":"One staff note."},"release":"live"},{"id":"settings.get","title":"Read business settings","scope":null,"rest":{"method":"GET","path":"/settings"},"mcp":{"name":"settings.get","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":null,"note":"Business settings the console reads."},"release":"live"},{"id":"account.context","title":"Agent session context","scope":null,"rest":{"method":"GET","path":"/context"},"mcp":{"name":"account.context","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":null,"note":"Agent session context: tenant, role, current view, and open items."},"release":"live"},{"id":"agent.manifest","title":"Authenticated capability manifest","scope":null,"rest":{"method":"GET","path":"/agent/manifest"},"mcp":{"name":"agent.manifest","readOnly":true,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":null,"note":"Scoped menu of REST and MCP operations, with output_schemas for the resources it names."},"release":"live"},{"id":"imports.create","title":"Import a batch of records","scope":"imports:write","rest":{"method":"POST","path":"/imports"},"mcp":{"name":"imports.create","readOnly":false,"destructive":false,"idempotent":true},"output":{"envelope":"object","resource":"WriteResult","note":"Per-row results and a summary."},"release":"live"}],"output_schemas":{"Availability":{"type":"object","description":"The public booking-window policy without authority receipts, hashes, or internal versions.","properties":{"object":{"type":"string","const":"availability"},"timezone":{"type":"string"},"weekly_hours":{"type":"array","items":{"type":"object","additionalProperties":true}},"date_overrides":{"type":"array","items":{"type":"object","additionalProperties":true}},"blackouts":{"type":"array","items":{"type":"string"}},"min_notice_hours":{"type":"number"},"max_per_day":{"type":"integer"},"default_buffer_minutes":{"type":"integer"},"max_advance_days":{"type":"integer"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","timezone","weekly_hours","date_overrides","blackouts","min_notice_hours","max_per_day","default_buffer_minutes","max_advance_days","updated_at"]},"BookableSlot":{"type":"object","description":"A genuinely free appointment slot, with the short-lived capability that authorizes booking it. The capability is opaque; it encodes the business, the service and the exact window, and is the only thing POST /bookings will accept from an agent principal.","properties":{"start_at":{"type":"string","format":"date-time"},"end_at":{"type":"string","format":"date-time"},"start_date":{"type":"string"},"end_date":{"type":"string"},"calendar_id":{"type":"string"},"service_type_id":{"type":"string"},"selected_offer":{"type":"string","description":"Opaque, short-lived booking capability for this exact slot or capacity date."}},"required":["calendar_id","service_type_id","selected_offer"]},"Call":{"type":"object","description":"A phone call record. Redacted view — the AI `summary` is exposed, but raw call transcripts, the extracted-info profile, internal routing, delivery flags, and support-escalation fields are never exposed.","properties":{"object":{"type":"string","const":"call"},"id":{"type":"string"},"from":{"type":"string","description":"The caller's phone number."},"to":{"type":"string","description":"The business line the call reached."},"outcome":{"type":"string","description":"Call outcome, e.g. booked_in_calendar | commercial_proposal_price_presented | sms_summary_sent | message_taken | emergency_escalated | no_tenant_match."},"summary":{"type":"string"},"duration_seconds":{"type":"number"},"started_at":{"type":"string","format":"date-time"},"emergency":{"type":"boolean"},"is_test_call":{"type":"boolean"},"priority_level":{"type":["string","null"]},"contact_id":{"type":["string","null"]},"work_context_id":{"type":["string","null"]},"booking_id":{"type":["string","null"]}},"required":["object","id","from","to","outcome","summary","duration_seconds","started_at"]},"CommercialProposal":{"type":"object","description":"A redacted commercial proposal. Public-link tokens, payment bank details, signatures, IP addresses, and delivery internals are omitted.","properties":{"object":{"type":"string","const":"commercial_proposal"},"id":{"type":"string"},"number":{"type":"string"},"contact_id":{"type":"string"},"work_context_id":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"},"currency":{"type":"string"},"subtotal":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"line_items":{"type":"array","items":{"type":"object","additionalProperties":true}},"sent_at":{"type":"string","format":"date-time"},"viewed_at":{"type":["string","null"]},"accepted_at":{"type":["string","null"]},"declined_at":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","number","contact_id","work_context_id","status","currency","total","created_at","updated_at"]},"Contact":{"type":"object","description":"A customer or lead. Redacted view — internal match keys and profiles are never exposed.","properties":{"object":{"type":"string","const":"contact"},"id":{"type":"string"},"display_name":{"type":"string"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"phones":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":["string","null"]},"primary":{"type":"boolean"}},"required":["value","primary"]}},"emails":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":["string","null"]},"primary":{"type":"boolean"}},"required":["value","primary"]}},"status":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"source":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","display_name","status","created_at","updated_at"]},"File":{"type":"object","description":"Redacted file metadata. Storage paths, extracted contents, search vectors, and download credentials are omitted.","properties":{"object":{"type":"string","const":"file"},"id":{"type":"string"},"contact_id":{"type":["string","null"]},"work_context_id":{"type":["string","null"]},"folder":{"type":["string","null"]},"title":{"type":["string","null"]},"file_name":{"type":"string"},"mime_type":{"type":"string"},"size_bytes":{"type":"number"},"source":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"status":{"type":"string"},"visibility":{"type":"string"},"content_sha256":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","file_name","mime_type","size_bytes","source","status","visibility","created_at","updated_at"]},"Followup":{"type":"object","description":"An entry on the automated chase list.","properties":{"object":{"type":"string","const":"followup"},"id":{"type":"string"},"contact_id":{"type":"string"},"work_context_id":{"type":["string","null"]},"loop_type":{"type":"string"},"status":{"type":"string"},"reason":{"type":["string","null"]},"opened_at":{"type":"string","format":"date-time"},"due_at":{"type":"string","format":"date-time"},"resolved_at":{"type":["string","null"]},"resolved_reason":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","contact_id","loop_type","status","opened_at","due_at","created_at","updated_at"]},"Integration":{"type":"object","description":"Redacted connected-app health. Credentials and provider tokens are never exposed.","properties":{"object":{"type":"string","const":"integration"},"provider":{"type":"string"},"id":{"type":"string"},"status":{"type":"string"},"ownership":{"type":["object","null"],"additionalProperties":{"type":"string"}},"last_sync_at":{"type":["string","null"]},"last_sync_status":{"type":["string","null"],"enum":["completed","partial","failed",null]},"last_success_at":{"type":["string","null"]},"last_error_code":{"type":["string","null"]},"has_credentials":{"type":"boolean"}},"required":["object","provider","id","status","ownership","last_sync_at","last_sync_status","last_success_at","last_error_code","has_credentials"]},"IntegrationProvider":{"type":"object","description":"A public connector-discovery entry. `availability` is deliberately explicit: only `native` means Mango has a provider adapter available today.","properties":{"id":{"type":"string"},"name":{"type":"string"},"markets":{"type":"array","items":{"type":"string","enum":["AU","NZ","GB","US"]}},"availability":{"type":"string","enum":["native","bring_your_own","planned","partner_program"]},"auth":{"type":"array","items":{"type":"string"}},"directions":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"next_step":{"type":"string"},"documentation_url":{"type":["string","null"]}},"required":["id","name","markets","availability","auth","directions","summary","next_step"]},"Invoice":{"type":"object","description":"A customer-facing invoice the business issued to its customer. Redacted view — money fields are in the invoice's own `currency`; the public bearer link, token hash, accounting-provider ids, PDF/storage refs, seller signature, and delivery/sync internals are never exposed.","properties":{"object":{"type":"string","const":"invoice"},"id":{"type":"string"},"number":{"type":["string","null"]},"contact_id":{"type":"string"},"work_context_id":{"type":"string"},"status":{"type":"string","description":"draft | sent | viewed | part_paid | paid | overdue | void | credited."},"currency":{"type":"string","description":"ISO currency, e.g. AUD | NZD | USD | GBP | CAD | SGD | MYR."},"subtotal":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"deposit_applied":{"type":"number"},"amount_paid":{"type":"number"},"balance_due":{"type":"number"},"line_items":{"type":"array","items":{"type":"object","description":"One invoice line — description and amount only.","properties":{"description":{"type":"string"},"amount":{"type":"number"}},"required":["description","amount"]}},"issued_at":{"type":["string","null"]},"due_at":{"type":["string","null"]},"viewed_at":{"type":["string","null"]},"paid_at":{"type":["string","null"]},"voided_at":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","contact_id","work_context_id","status","currency","subtotal","tax","total","line_items","created_at","updated_at"]},"Message":{"type":"object","description":"The delivery outcome of a one-off SMS or email send.","properties":{"object":{"type":"string","const":"message"},"channel":{"type":"string","enum":["sms","email"]},"to":{"type":"string"},"status":{"type":"string","description":"Provider status, or `suppressed` when a marketing send hit an opt-out."},"provider":{"type":"string"},"reason":{"type":"string"},"error":{"type":"string"},"message_id":{"type":"string","description":"Provider message id (SMS)."},"id":{"type":"string","description":"Provider message id (email)."}},"required":["object","channel","to","status"]},"PublicBooking":{"type":"object","description":"A redacted scheduler booking. Capability tokens, calendar-provider ids, notification internals, and site access secrets are omitted.","properties":{"object":{"type":"string","const":"booking"},"id":{"type":"string"},"contact_id":{"type":["string","null"]},"work_context_id":{"type":["string","null"]},"assigned_member_id":{"type":["string","null"]},"service_id":{"type":"string"},"service_name":{"type":"string"},"customer_name":{"type":"string"},"customer_phone":{"type":["string","null"]},"customer_email":{"type":["string","null"]},"address":{"type":["string","null"]},"start_at":{"type":"string"},"end_at":{"type":"string"},"arrival_window_start":{"type":["string","null"]},"arrival_window_end":{"type":["string","null"]},"status":{"type":"string"},"urgency":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","service_id","service_name","customer_name","start_at","end_at","status","created_at","updated_at"]},"WorkContext":{"type":"object","description":"A canonical work context. The work-type label is the immutable terminology snapshot from the tenant's active industry binding.","properties":{"object":{"type":"string","const":"work_context"},"id":{"type":"string"},"version":{"type":"integer","minimum":1},"work_type":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"module_id":{"type":"string"},"module_version":{"type":"integer","minimum":1}},"required":["key","label","module_id","module_version"]},"title":{"type":"string"},"summary":{"type":["string","null"]},"lifecycle_status":{"type":"string","enum":["draft","open","active","waiting","completed","cancelled","archived"]},"current_stage_id":{"type":["string","null"]},"service_recipient_contact_id":{"type":["string","null"]},"billing_recipient_contact_id":{"type":["string","null"]},"service_location":{"type":["object","null"],"properties":{"formatted":{"type":"string"},"postal_code":{"type":["string","null"]},"country_code":{"type":["string","null"]},"status":{"type":"string"}},"required":["formatted","postal_code","country_code","status"]},"opened_at":{"type":["string","null"]},"closed_at":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["object","id","version","work_type","title","summary","lifecycle_status","current_stage_id","service_recipient_contact_id","billing_recipient_contact_id","service_location","opened_at","closed_at","created_at","updated_at"]},"WriteResult":{"type":"object","description":"Result summary from the write engine. Always includes `ok`; on success it also includes the affected resource (e.g. `contact`, `workContext`, or `followup`).","properties":{"ok":{"type":"boolean"},"workContext":{"$ref":"#/components/schemas/WorkContext","description":"When present, the same redacted WorkContext projection returned by the read endpoints."}},"required":["ok"],"additionalProperties":true}},"events":["webhook.ping","contact.created","booking.created","call.completed"],"integrations":{"servicem8":{"status":"configuration_required","authorization":"oauth2","modes":["read_only","read_write"],"resources":["contacts","jobs","schedule","webhooks"]}}}