Skip to content

Documentation

DeskMango docs

Everything you need to connect your services, run work through the Operator, understand the approval model and integrate with the developer API.

Getting started

  1. 1

    Create your workspace

    Sign up at /signup. A workspace holds your connections, conversations, tasks and audit log. Invite teammates later from workspace settings.

  2. 2

    Connect a service

    Pick a service from Integrations and authorise it with OAuth or a scoped API key. DeskMango runs a health check and discovers your existing resources.

  3. 3

    Ask for an outcome

    Open the Operator and describe what needs to happen — for example “create a weekly subscription and attach it to Premium”. DeskMango reads what exists and proposes a plan.

  4. 4

    Review, approve, verify

    Reads run immediately. Changes run or wait for approval according to your policy. After execution, DeskMango reads the provider back and shows the verified result.

Connecting services

Each integration page lists exactly how to connect it, the permissions to grant and the operations DeskMango can perform. Grant the narrowest permissions that cover what you want DeskMango to do — operations that need more access fail with a clear authorisation error rather than silently doing less.

  • OAuth — for GitHub and Slack. You approve the scopes on the provider's own consent screen.
  • API keys — for RevenueCat, App Store Connect, PostHog, Stripe, Resend, Vercel, Supabase, Linear and Sentry. Paste a key created in the provider dashboard.
  • Storage — credentials are envelope-encrypted with AES-256-GCM using a per-record key, decrypted only at execution time and never shown to the AI.
  • Health — connections are checked in the background. Expired or revoked credentials mark the connection as needing attention.

Only admins and owners can add or remove connections. Disconnecting removes the stored credentials.

Working with the Operator

The global Operator can work across every connected service; service chats are scoped to one connection. In both, DeskMango can read freely to understand your setup, then proposes a task: an ordered plan of steps, each a typed operation with validated input.

What DeskMango will and won't do

  • It only uses operations listed on each integration page. If something isn't in the registry, it tells you rather than improvising.
  • It treats data returned by providers as untrusted. Instructions hidden in a ticket, an email or a product description are ignored.
  • It never asks for or reveals credentials in chat.

How approvals work

Every operation declares a risk level. When a task is created, its highest-risk step and your workspace policy decide what happens next.

RiskDefault behaviour
Read

Runs automatically

Lists, lookups and audits. Nothing changes in the provider, so no approval is needed.

Low risk

Configurable

Additive changes such as creating a product or an issue. Automatic by default; a workspace can require approval.

Medium risk

Approval by policy

Changes to existing configuration. Held for an approver unless the workspace policy allows qualified roles to run them.

High risk

Always explicit approval

Customer-facing or destructive actions — refunds, submissions, live paywalls, SQL. Always waits for a named approver.

Configuring the policy

Admins can set low-risk changes to run automatically or require approval, allow medium-risk changes to run for members at or above the approver role, and choose the approver role (admin by default). High-risk changes always require explicit approval — that can't be turned off.

Rules that always apply

  • Viewers can't run changes.
  • Automations never run medium or high-risk steps unattended; those tasks wait for a person.
  • Approvals are made by a person with the required role. API keys can't approve or reject.
  • Pending approvals expire instead of waiting forever.

Verification and recovery

After a consequential write, DeskMango reads the resource back from the provider and records one of these results on the step:

  • verifiedThe provider's state matches what was intended.
  • mismatchThe provider reports something different. The step is flagged with what was expected and what was found.
  • pendingThe read-back couldn't complete yet, for example because of a timeout.
  • not_supportedThe provider offers no way to read this change back.

Every step carries an idempotency key. If a call fails in a way where the outcome is unknown, DeskMango checks whether the change already happened before retrying, and never blindly repeats operations that could duplicate effects. You can retry a failed task once the cause is fixed.

Developer API

The developer API lets your own tooling create and track tasks. It goes through the same plan validation, policy engine, executor and audit log as the app.

Authentication

Admins create workspace API keys in workspace settings. Keys start with sk_stackos_, are shown once and can be revoked at any time. Send the key as a bearer token:

Authorization: Bearer sk_stackos_…

Keys have a read or write scope. Read keys act with viewer permissions; write keys act with developer permissions, so they can create tasks that change things — subject to your approval policy.

Endpoints

{workspace} is your workspace slug. All responses are JSON.

  • GET/api/w/{workspace}/tasks

    List tasks as { tasks: [...] }. Optional query: status (comma-separated), provider, project, q, limit (max 200).

  • POST/api/w/{workspace}/tasks

    Create a task from a plan of typed steps. Set dryRun to run preflight checks only.

  • GET/api/w/{workspace}/tasks/{id}

    Read one task as { task, steps, approval }, including step outputs and verification results.

  • POST/api/w/{workspace}/tasks/{id}

    Act on a task: { "action": "approve" | "reject" | "cancel" | "retry" }.

Create a task

A task has a title, an optional summary and 1–25 steps. Each step names an operationId from the registry and its input. Steps can depend on earlier steps and reference their output with {{step_key.output.field}}.

Request

curl -X POST "$STACKOS_URL/api/w/acme/tasks" \  -H "Authorization: Bearer $STACKOS_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "title": "Add weekly plan to Premium",    "steps": [      {        "key": "create_product",        "operationId": "revenuecat.products.create",        "input": {          "project_id": "proj1ab2c3d4",          "app_id": "app1a2b3c4",          "store_identifier": "com.acme.premium.weekly",          "type": "subscription"        }      },      {        "key": "attach",        "operationId": "revenuecat.entitlements.attach_products",        "dependsOn": ["create_product"],        "input": {          "project_id": "proj1ab2c3d4",          "entitlement_id": "entl1a2b3c",          "product_ids": ["{{create_product.output.id}}"]        }      }    ]  }'

Response

// 201 Created — the attach step is medium risk, so the task waits for approval{ "taskId": "task_…", "status": "awaiting_approval", "risk": "medium" }

Track and act on a task

Task statuses include awaiting_approval, queued, running, verifying, completed, partially_completed, failed and cancelled. Use cancel or retry from your tooling; approve and reject are accepted only from a signed-in person with the required role, so an API key receives 403.

# Poll a taskcurl "$STACKOS_URL/api/w/acme/tasks/task_9xq2" \  -H "Authorization: Bearer $STACKOS_API_KEY" # Cancel or retry itcurl -X POST "$STACKOS_URL/api/w/acme/tasks/task_9xq2" \  -H "Authorization: Bearer $STACKOS_API_KEY" \  -H "Content-Type: application/json" \  -d '{"action":"retry"}'

Errors and limits

Errors share one shape with a stable code:

{ "error": { "code": "plan_limit", "message": "Your Free plan includes 200 operations this month. ..." } }
  • 401 unauthorized — missing or revoked key.
  • 402 plan_limit — the task would exceed your plan's monthly operations.
  • 403 forbidden — the key's scope or role doesn't allow this.
  • 404 not_found — the workspace or task doesn't exist for this key.
  • 422 validation / invalid_plan — the body or a step's input didn't validate.
  • 429 rate_limited — slow down; task creation and actions allow 60 requests per minute.

Ready when you are.

Type what you need. DeskMango does the rest, in your browser or on your PC.