All docs
Extend

REST API: tools, tasks and accounts

TL;DR

Agent Planners' REST API lets your own system discover and call the same platform tools as the MCP server, start and follow tasks, and list connected accounts with plain HTTP and JSON. Authenticate with an API key or an OAuth access token, call GET /api/v1/capabilities to learn what that credential may do, then invoke tools; every call keeps the workspace's scopes, approvals, guardrails, credits and audit trail.

What it is

Base URL: https://www.agentplanners.com/api/v1. Every request sends Authorization: Bearer with an API key (ap_live_…) or an OAuth access token (apo_at_…); every answer is JSON. Any origin may call it with a bearer credential (it never uses cookies), so a browser app can call it directly — with a public OAuth app and the person's own token, never with an API key in the page.

The tool endpoints are the MCP server's tools in plain HTTP: the same tool names (family__tool, for example google_ads__update_tracking), the same scopes and platform choice, the same approval queue, guardrails, credits and audit trail. A machine-readable description is at https://www.agentplanners.com/api/v1/openapi.json (OpenAPI 3.1, public). An OpenAPI-driven client (Postman, Swagger UI, a generated client) that runs the OAuth sign-in must send resource=https://www.agentplanners.com/api/v1 on both the authorization and the token request — in Postman: OAuth 2.0 → Advanced, add resource to both the Auth Request and the Token Request.

Everything runs through the accounts the workspace already connected in Agent Planners, with the platform tokens stored there: your system never sees a Google, Meta or store token, and it cannot connect a platform, widen its scopes or approve a write.

Building with a coding agent (Codex, Claude Code, Cursor)? Point it at Build an integration (for coding agents): the same path as below, written as instructions, with a minimal Node and Python client.

This is the path for your own system (an OAuth app, or an API key for a script). An AI agent — Claude, Codex, Cursor, ChatGPT — connects over MCP instead: Connect Agent Planners to Claude, Codex, Grok and Muse.

The path, in six steps

  1. 1Authenticate: an API key for your own workspace, or an OAuth access token requested for resource=https://www.agentplanners.com/api/v1 (on both the authorization and the token request).
  2. 2Discover: GET /api/v1/me and GET /api/v1/capabilities say what this credential may do; GET /api/v1/accounts lists the connected accounts; GET /api/v1/tools?q=…&schema=1 finds a tool by what you want to do; GET /api/v1/tools/{name} describes one.
  3. 3Invoke: POST /api/v1/tools/{name} with the tool's arguments and an Idempotency-Key. 200 means it ran; 202 means a write waits for a person — poll GET /api/v1/requests/{id} or wait for the write.decided webhook.
  4. 4Assemble, only when no tool does the job: <family>__raw_request with tools:raw. Reads run at once; writes are queued for a person unless an admin pre-authorized the API key — your own OAuth app's raw writes run at once, any other app's OAuth connection always queues them.
  5. 5Follow up: GET /api/v1/requests (this credential's queued writes), GET /api/v1/audit (its audit trail), GET /api/v1/usage (its credits), GET /api/v1/organization (the workspace).
  6. 6Verify: run the checklist at the end of this page before you ship.

1. Authenticate

  • Your own system in your own workspace: an API key from API & MCP (New key) — an admin or editor creates an agent-mode key; a key with platform tools needs an admin and a paid plan — or a private OAuth app when people should sign in.
  • A product that serves many Agent Planners customers: a published OAuth app. Each customer's admin connects it from their own workspace and chooses its permissions and platforms; your server calls this API with that customer's access token. See Publish an app to other workspaces.
  • OAuth is the authorization code flow with PKCE: a fresh code_verifier for every sign-in and code_challenge_method=S256 (plain is refused). Check state and iss on the way back — iss is always sent. A server app (confidential client) authenticates at the token endpoint with HTTP Basic (client_id:client_secret) and does not also put client_secret in the body; a public app sends client_id only.
  • An OAuth token is bound to the resource it was requested for: ask for resource=https://www.agentplanners.com/api/v1 (this API) or the origin https://www.agentplanners.com (this API and the MCP server), on the authorization request AND the token request — resource only on the token request is refused (invalid_target). A token requested without resource is for the MCP server only and is refused here with code wrong_resource.
  • Access tokens last 1 hour. Each refresh returns a new access token AND a new refresh token and spends the one you sent: store the new refresh token before anything else. Refresh before expires_in runs out, one refresh per connection at a time (a lock); a server error does not spend the refresh token, so retry the same one; invalid_grant ("already used", expired, revoked) means the person connects again. Refresh tokens expire after 30 days without use; a connection ends after 365 days. The OAuth guide has the whole flow.
  • Each consent creates a new connection (a new oauth.connectionId from GET /api/v1/me): store tokens per connection, and revoke the previous connection's refresh token after a customer reconnects.
  • Keep credentials in your secret store and read them at run time (the examples use the variable AGENTPLANNERS_TOKEN). Never put one in a repository, a URL, a log or a browser bundle.

What your system can and cannot do

  • It can call the tools its scopes allow — GET /api/v1/tools lists exactly those — and, with tools:raw, a platform's own API through <family>__raw_request. Every call runs through an account the workspace already connected in Agent Planners, with the platform token stored there; your system never receives it.
  • It can read its own queued writes, audit trail, credit usage and the workspace's plan and connected platforms, start tasks with tasks:write, and receive webhooks for the work it created.
  • It cannot connect a platform or add an account, choose platforms or widen its scopes (the person decides on the consent page or on API & MCP — an OAuth customer reconnects to change them), approve a write (its own or another's), or see another credential's work or any platform credential.
  • Whether its writes apply at once or wait: the workspace's own OAuth app (registered in this workspace, connected to it) has no approval step — every write applies at once, raw writes and deletes included. Any other OAuth connection's changes wait for an admin or editor by default (an admin may choose Apply ordinary changes at once when connecting) and always queue raw writes. An API key's ordinary writes apply at once inside the guardrails by default, unless it was created with Require approval for this key's write tools; its raw writes are queued unless an admin pre-authorized it (Execute raw writes immediately). Except for the own app, permanent deletes and archives always wait. GET /api/v1/capabilities (tools.writes, assembly.writesRun) says which applies.
  • Whether its calls are recorded: each API key and OAuth connection has a Record tool and API calls switch (API & MCP, an admin's), on by default — GET /api/v1/audit returns the records (tool, account, outcome, time; never the values sent, the platform's answer or a token). Off, calls are not recorded; credit usage and the connection's security events are always kept.

2. Discover what this credential can do

Start every integration — and every run after a person changed the connection — with these free, read-only calls instead of guessing from failures.

  • GET /api/v1/me — the permissions in prose: workspace (organization.id — a credential reaches exactly one), scopes, platforms, platform tools, whether writes apply at once or wait for a person (and whether this is the workspace's own app), raw access, whether its calls are recorded (logging), rate limits. An OAuth token also gets oauth.clientId and oauth.connectionId — record them with organization.id for each connection.
  • GET /api/v1/capabilities — the same answer as structured data, built for a program or an agent: credential (type api_key or oauth, id, scopes), workspace, endpoints, tools (enabled or notEnabledBecause, canWrite, writes — queued_for_approval, apply_with_guardrails, not_allowed, or unavailable when the credential's write setting could not be read (retry) — total and per-family read / write counts), assembly (whether <family>__raw_request is available, on which families and hosts, and writesRun — immediately, queued_for_approval or not_allowed — for its writes), tasks (canRead, canWrite and, with tasks:write, autoApprove — allowed, refused or unknown), approvals (who decides, the webhook events), audit, usage, limits (requestsPerWindow and windowSec — this credential's own budget, the one the RateLimit-* headers report — plus perCredential, toolCallsPerWorkspace and taskCreatesPerWorkspace, each { requests, windowSec }), scopeGuide (each scope, what it allows, whether this credential has it) and errors (each status, what it means and what to do).
  • GET /api/v1/tools?q=…&schema=1 — the tools this credential may call, ranked by what you want to do. Each tool carries name, title, family, kind (read or write), description, annotations, requiredScope (tools:read or tools:write; tools:raw for a <family>__raw_request), runs and required (accountId aside); schema=1 adds the JSON Schema. runs is immediately for a read; queued_for_approval or with_guardrails for a write, from this credential's setting; for a raw request reads_immediately_writes_queued_for_approval, or reads_immediately_writes_run_at_once_except_deletes on an API key an admin pre-authorized. family, kind, limit and offset filter and page — offset is ignored when q is given (a search answers its best matches).
  • GET /api/v1/tools/{name} — one tool's full documentation, JSON Schema and annotations, and whether this credential may call it (and why not).
  • GET /api/v1/accounts — the connected accounts (id, family, provider, name, customerId, status); family is the tool family (for example ga4), provider the connection's platform. The id is the accountId a tool takes; accountId also accepts the platform's own account id or the exact account name, and can be left out when the workspace has exactly one account of that platform. A missing, ambiguous or unknown accountId answers 422 with the candidates as id (name) — match the account the person named, never the first row.
shell
BASE=https://www.agentplanners.com/api/v1
# AGENTPLANNERS_TOKEN = an API key (ap_live_…) or an OAuth access token (apo_at_…), read from your secret store

curl "$BASE/capabilities" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"
# {"ok":true,
#  "credential":{"type":"oauth","id":"6710…","scopes":["accounts:read","tools:read","tools:write"],"clientId":"apc_…"},
#  "workspace":{"id":"org_…","name":"Acme Marketing"},
#  "tools":{"enabled":true,"canWrite":true,"writes":"queued_for_approval",
#           "total":{"reads":…,"writes":…},
#           "families":[{"family":"google_ads","reads":…,"writes":…},{"family":"hubspot","reads":…,"writes":…}],
#           "discover":"GET /api/v1/tools?q=…&schema=1"},
#  "assembly":{"enabled":false,"notEnabledBecause":"this credential has no tools:raw scope","scope":"tools:raw","writesRun":"queued_for_approval",…},
#  "tasks":{"canRead":false,"canWrite":false},
#  "approvals":{"list":"GET /api/v1/requests","decidedBy":"a person in the workspace (API & MCP → Write approvals); …",
#               "webhookEvents":["write.queued","write.decided","task.finished"]},
#  "limits":{"requestsPerWindow":60,"windowSec":60,"perCredential":{"requests":60,"windowSec":60},
#            "toolCallsPerWorkspace":{"requests":120,"windowSec":60},"taskCreatesPerWorkspace":{"requests":20,"windowSec":600}},
#  "scopeGuide":[…], "errors":[…]}

# Find a tool by intent, with its schema
curl "$BASE/tools?q=account+health&family=google_ads&schema=1" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"
# {"ok":true,"query":"account health","tools":[{"name":"google_ads__get_account_health","family":"google_ads",
#   "kind":"read","requiredScope":"tools:read","runs":"immediately","required":[],"inputSchema":{…},…}],"families":[…]}

# One tool's documentation
curl "$BASE/tools/hubspot__list_pipelines" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"

# The account to work on: its id is the tool's accountId
curl "$BASE/accounts" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"

Endpoints

RequestNeedsWhat it does
GET /api/v1/meAny valid key or tokenWhat this credential may do: workspace (organization.id), scopes, platforms, platform tools, whether writes wait for a person, rate limits (rateLimitPerMinute is this credential's own budget; limits holds perCredential and toolCallsPerWorkspace). An OAuth token also gets oauth.clientId and oauth.connectionId — record them with organization.id for each connection. Call it first.
GET /api/v1/capabilitiesAny valid key or tokenThe same, as structured data: tools by family, whether writes queue, what may be assembled raw, approvals, audit, usage, limits, scopes and the errors to handle. Free.
GET /api/v1/organizationAny valid key or tokenThe workspace: id and name, plan, billing (type, creditsRemaining — null for a workspace that is not charged) and connectedPlatforms (family, accounts) — only the platforms this credential may use; the connected platforms it may not use are listed in notExposedToThisCredential. A credential without accounts:read or a tools scope gets connectedPlatforms: null and a connectedPlatformsNote.
GET /api/v1/toolsA tools scopeThe tools this credential may call, each with requiredScope and runs. q ranks them by what you want to do; family, kind=read|write, limit and offset filter and page (offset is ignored when q is given); schema=1 adds each JSON Schema. Free.
GET /api/v1/tools/{name}A tools scopeOne tool's documentation, JSON Schema, annotations, and whether this credential may call it — and why not. For <family>__raw_request: the raw-access rules, families and hosts. Free.
POST /api/v1/tools/{name}tools:read for a read, tools:write for a write, tools:raw for <family>__raw_requestRuns the tool. The body is its arguments (or { arguments: {…} }); the Idempotency-Key header becomes its idempotencyKey.
GET /api/v1/requestsA tools scopeThe writes THIS credential queued for a person, newest first: status=pending|decided|all (default all), limit 1–100 (default 50), before=<the previous page's next> — an opaque cursor: pass it back exactly as given. Each with requestId, status, family, accountId, method, path, createdAt, expiresAt, decidedAt / executedAt once decided, providerStatus, error and reviewUrl (the page where a person decides).
GET /api/v1/requests/{id}A tools scopeThe decision on one write that waited for a person: pending_approval, approved, executed, failed, rejected or expired, and the platform's answer once it ran. Readable by the credential that queued it — and, for an OAuth app, by another live connection of the same app in the same workspace (a reconnect).
GET /api/v1/auditAny valid key or tokenTHIS credential's audit trail, newest first (limit 1–100, before — the opaque next cursor of the previous page): each event's at, action, resource, result and details (ids, names, outcomes — never a body). With the credential's Record tool and API calls switch on (the default) each tool and API call is recorded — tool, account, outcome and time; off, the calls are not recorded, while the decisions on its queued writes and its connection events always are. Credits are in usage.
GET /api/v1/usageAny valid key or tokenThe credits THIS credential's tool and raw calls used over days=1–90 (default 30): totalCredits, calls, byDay (UTC) and byTool. A task it started is billed to the task.
GET /api/v1/accountsaccounts:read or any tools scopeThe connected accounts (id, family, provider, name, customerId, status); family is the tool family, null when no tool serves that provider. The id is the accountId a tool takes; accountId also accepts the platform's own account id or the exact account name.
GET /api/v1/taskstasks:readThe workspace's tasks, newest first (limit, skip and status filter them).
POST /api/v1/taskstasks:writeStarts a task from a goal; it runs on the workspace's credits under its approval rules. Send an Idempotency-Key header (the body's idempotencyKey wins when both are sent) so a retry returns the same task: the key is per credential and bound to the goal — the same key and goal answer 201 with replayed: true and the same taskId, the same key with another goal answers 409 (code idempotency_key_reused), and a task whose start failed releases its key. autoApprove is accepted only when this credential's changes may apply at once (GET /api/v1/capabilities, tasks.autoApprove), otherwise 403 (code auto_approve_not_allowed, no task created); without it the task's writes wait for approval on the task page. A 503 (code write_policy_unreadable, retryable) means the write setting could not be read — retry after Retry-After. An optional effort (light | medium | high | extra; omitted = medium) sets how hard the agent works on the task — a higher level plans, reasons and checks more and uses more credits; approvals and credit limits are the same at every level; an unknown value is a 400. An optional mode (plan | autonomous; omitted = plan) is the app's Plan mode switch: plan reviews a plan, then runs its steps (faster and cheaper on reports, measured); autonomous lets the agent pick and chain tools itself; the same writes wait for a person either way.
GET /api/v1/tasks/{taskId}tasks:readA task's status, plan and report. outcome says what it achieved: completed, partially_completed, blocked (a person must act — with what to do), failed or cancelled.
POST /api/v1/tasks/{taskId}/messagestasks:writeSend a follow-up, correction or answer to a task (the app's message box). Queued while a step runs; otherwise the agent re-plans without repeating completed steps, and writes still wait for approval as the task's settings say.
POST /api/v1/tasks/{taskId}/stoptasks:writeStop a task (the app's Stop button): remaining steps are skipped; clearQueue:true also drops follow-ups waiting in its queue.
GET /api/v1/projectstasks:read — Projects; a change needs an admin or editor behind the credentialList projects.
POST /api/v1/projectstasks:write — Projects; a change needs an admin or editor behind the credentialCreate a draft project.
GET /api/v1/projects/{projectId}tasks:read — Projects; a change needs an admin or editor behind the credentialOne project with its plan, numbers and recent runs.
POST /api/v1/projects/{projectId}/plantasks:write — Projects; a change needs an admin or editor behind the credentialGenerate the plan of a draft (within the request, about a minute).
POST /api/v1/projects/{projectId}/activatetasks:write — Projects; a change needs an admin or editor behind the credentialActivate a reviewed project.
POST /api/v1/projects/{projectId}/pausetasks:write — Projects; a change needs an admin or editor behind the credentialPause it.
POST /api/v1/projects/{projectId}/resumetasks:write — Projects; a change needs an admin or editor behind the credentialResume it.
POST /api/v1/projects/{projectId}/itemstasks:write — Projects; a change needs an admin or editor behind the credentialAdd a plan item.
PATCH /api/v1/projects/{projectId}/items/{itemId}tasks:write — Projects; a change needs an admin or editor behind the credentialChange a plan item (or mark a milestone done).
GET /api/v1/projects/{projectId}/activitytasks:read — Projects; a change needs an admin or editor behind the credentialThe project's activity: overseer decisions and notes, agent plan edits, runs and the audit trail (?limit=&before=).
POST /api/v1/projects/{projectId}/refreshtasks:write — Projects; a change needs an admin or editor behind the credentialRe-read the project's numbers (read-only on the platforms; needs credits).
POST /api/v1/projects/{projectId}/waketasks:write — Projects; a change needs an admin or editor behind the credentialRun the overseer now (once every 30 minutes per project; 429 otherwise).
POST /api/v1/projects/{projectId}/archivetasks:write — Projects; a change needs an admin or editor behind the credentialArchive it (pauses everything, read-only).
POST /api/v1/projects/{projectId}/restoretasks:write — Projects; a change needs an admin or editor behind the credentialRestore an archived project (paused, or a draft).
GET https://www.agentplanners.com/api/v1/openapi.jsonNothing (public)The OpenAPI 3.1 description of every endpoint here.

3. Invoke a tool

Search by intent instead of guessing a name, read the schema, then call. A search lists only the tools this credential may call: the workspace's connected platforms, the platforms and platform tools the person allowed, and writes only with tools:write.

shell
BASE=https://www.agentplanners.com/api/v1

# A read runs at once
curl -X POST "$BASE/tools/google_ads__get_account_health" \
  -H "Authorization: Bearer $AGENTPLANNERS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"accountId":"<id from /accounts>"}'
# 200 {"ok":true,"result":{"ok":true,"tool":"google_ads__get_account_health","kind":"read","accountId":"…",
#      "result":{"verdict":"healthy",...}}}      the tool's own answer is result.result

# Find a write by what you want to do (free)
curl "$BASE/tools?q=update+tracking+url+suffix&kind=write" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"
# {"ok":true,"query":"update tracking url suffix","tools":[{"name":"google_ads__update_tracking","kind":"write","requiredScope":"tools:write","runs":"queued_for_approval","required":[...],...}]}

# Its documentation and JSON Schema (free)
curl "$BASE/tools/google_ads__update_tracking" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"

# Read the current value before changing it
curl -X POST "$BASE/tools/google_ads__get_tracking" \
  -H "Authorization: Bearer $AGENTPLANNERS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"accountId":"<id from /accounts>","level":"campaign","ids":["111222333"]}'

# Run the write as a dry run first (on a test account), with an Idempotency-Key that names this change
curl -X POST "$BASE/tools/google_ads__update_tracking" \
  -H "Authorization: Bearer $AGENTPLANNERS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: utm-suffix-campaign-111222333-v1" \
  -d '{"accountId":"<id from /accounts>","level":"campaign","ids":["111222333"],"finalUrlSuffixSet":{"utm_source":"google"},"dryRun":true}'
# 200 {"ok":true,"result":{"ok":true,"tool":"google_ads__update_tracking","kind":"write","accountId":"…","result":{...}}}   it ran (dryRun: the preview, nothing changed)
# 202 {"ok":true,"queued":true,"requestId":"rwq_3f9a1c2b4d5e","statusUrl":"/api/v1/requests/rwq_3f9a1c2b4d5e"}   it waits for a person

# After a 202: poll the decision (back off from 30 s to 5 min), or wait for the write.decided webhook
curl "$BASE/requests/rwq_3f9a1c2b4d5e" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"
# {"ok":true,"result":{"requestId":"rwq_3f9a1c2b4d5e","status":"executed","providerStatus":200,...}}

Writes: applied at once, or waiting for a person

  • A write answers 200 when it ran and 202 when it waits for an admin or editor in the workspace to approve it on API & MCP → Write approvals. A 202 means nothing has changed on the platform yet. GET /api/v1/tools tells you in advance: runs is queued_for_approval or with_guardrails.
  • Which one depends on the credential. The workspace's own OAuth app (registered in this workspace, connected to it) has no approval step: its writes always answer 200 (or 422 when a guardrail refuses). Any other OAuth connection's changes wait for approval by default, unless the workspace admin who approved it chose Apply ordinary changes at once. An API key's ordinary writes apply at once inside the guardrails by default, unless the key was created with Require approval for this key's write tools. GET /api/v1/capabilities (tools.writes, assembly.writesRun) and GET /api/v1/me say which.
  • Deletes, activations, code for a website and other changes a platform marks as a person's decision wait for a person whatever the setting, except on the workspace's own OAuth app — so a with_guardrails write can still answer 202. The workspace's guardrails (change caps, spend caps, protected names) apply to every write.
  • No credential can approve a write — its own or another's. Poll GET /api/v1/requests/{id} with back-off — every 30 s at first, slowing to every 5 min, or when your user next opens the page — until the status is executed, failed, rejected or expired (pending_approval while it waits, approved while it runs). To follow many at once, list GET /api/v1/requests?status=pending. Stop at the request's expiresAt: an unanswered request expires after 24 hours. Or set a webhook and wait for write.decided.
  • At most 50 writes can wait for approval per workspace; one more answers 429 with Retry-After. Show the change as pending in your product rather than retrying it.
  • Send an Idempotency-Key header (up to 128 characters) with every write, raw requests included. The same key with the same arguments within 24 hours answers with the first result instead of writing twice: a write that ran returns its first answer (replayed: true), a queued write the same requestId (202). A replay of a write a person already decided answers 200 if it executed and 409 if it was rejected, expired or failed. A write that failed outright runs again; other arguments with the same key are a new write. Wait for the first answer before retrying, and make the key name the change (the object and the new value), not the attempt.
  • dryRun previews a change without applying it — but on a credential whose writes wait, a dryRun is queued for a person like any other write. Preview with the read tool there instead (for example google_ads__get_tracking before google_ads__update_tracking). Try writes on a test account, never on a live campaign.

4. Assemble a request when no tool exists

Search GET /api/v1/tools first: a dedicated tool knows the platform's rules, reads its target before writing and runs inside the guardrails. Only when none does the job, a credential with tools:raw can assemble the platform's own API request through <family>__raw_request — for example google_ads__raw_request — with the workspace's connection injected by Agent Planners (the platform's token is never returned).

  • Describe it first: GET /api/v1/tools/google_ads__raw_request (any <family>__raw_request) returns the families you may call raw, each one's hosts and documentation links, the read-type POST methods, the account-binding rule, the limits and the credits. GET /api/v1/capabilities lists the same families under assembly.
  • The body is { accountId, method, host, path, query, body }: accountId is a connected account (GET /api/v1/accounts); method is GET, POST, PUT, PATCH or DELETE; host (optional) is a host id from the describe answer; path is relative to the host's base URL (no scheme, host or query string); query is an object; body is a JSON object (a string holding a JSON object is accepted too). The path must address the connected account you name (for Google Ads, customers/{customerId}); a Meta object path ({id} or {id}/{edge}) is accepted only after the object is proven to belong to that account.
  • The call runs through the workspace's connected account: Agent Planners attaches that account's stored platform token and returns only the platform's answer — the token never reaches your system.
  • Reads — GET and the platform's read-type POST methods (a Google Ads googleAds:search, a Google Analytics runReport …) — run at once and answer { ok, status, data }. The server retries a GET itself (up to 3 attempts); a platform 4xx comes back as 422 with result.status and result.error.
  • Writes need tools:write: with tools:write they are queued for a person, who sees the exact method, path and body on API & MCP → Write approvals — unless an admin pre-authorized this API key (Execute raw writes immediately), in which case an ordinary raw write runs at once. Over another app's OAuth connection raw writes are always queued, and a permanent delete or archive is always queued — except from the workspace's own OAuth app, whose raw writes (deletes included) run at once; without tools:write they are refused. A queued raw write answers 202 like any write that waits — { ok: true, queued: true, requestId, statusUrl } — and its result carries the requestId and status pending_approval; poll GET /api/v1/requests/{id} as for any queued write. A write is sent to the platform once, never retried; send an Idempotency-Key with it like any write — a replay with the same key answers 202 with the same requestId (replayed: true) while it waits, and a raw write a pre-authorized key already ran returns its first result (replayed: true) without being sent again.
  • Raw access never bypasses an approval or a guardrail, and it is not a way around a refusal: a write a typed tool refused is refused or held for a person here too.
shell
# What raw access allows this credential (free)
curl "$BASE/tools/google_ads__raw_request" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"

# A read-type POST: a Google Ads query
curl -X POST "$BASE/tools/google_ads__raw_request" \
  -H "Authorization: Bearer $AGENTPLANNERS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"accountId":"<id from /accounts>","method":"POST","path":"customers/1234567890/googleAds:search","body":{"query":"SELECT campaign.id, campaign.name FROM campaign LIMIT 10"}}'
# 200 {"ok":true,"result":{"ok":true,"family":"google_ads","tool":"google_ads__raw_request","method":"POST","path":"customers/1234567890/googleAds:search","status":200,"data":{...},...}}

# A raw write — queued for a person unless an admin pre-authorized this API key (always queued over another app's
# OAuth connection; run at once for the workspace's own app)
curl -X POST "$BASE/tools/google_ads__raw_request" \
  -H "Authorization: Bearer $AGENTPLANNERS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: pause-campaign-111222333" \
  -d '{"accountId":"<id from /accounts>","method":"POST","path":"customers/1234567890/campaigns:mutate","body":{"operations":[{"update":{"resourceName":"customers/1234567890/campaigns/111222333","status":"PAUSED"},"updateMask":"status"}]}}'
# 202 {"ok":true,"queued":true,"requestId":"rwq_…","statusUrl":"/api/v1/requests/rwq_…"}   queued: it waits for a person's decision

5. Approvals, audit, usage and the workspace

Each of these answers only for the credential that asks — never another key's or another connected app's work.

A queued request's toolName is written family.tool (google_ads.update_tracking) — the same tool you called as google_ads__update_tracking; a raw request has no toolName, only its method and path. A request's status is pending_approval, approved, executed, failed, rejected or expired; status=pending lists the ones still waiting, status=decided the rest.

shell
# The writes this credential queued that still wait for a person
curl "$BASE/requests?status=pending&limit=20" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"
# {"ok":true,"status":"pending","requests":[{"requestId":"rwq_3f9a1c2b4d5e","status":"pending_approval","kind":"typed",
#   "toolName":"google_ads.update_tracking","family":"google_ads","accountId":"…","method":"…","path":"…",
#   "createdAt":"…","expiresAt":"…","reviewUrl":"https://www.agentplanners.com/api-mcp?request=rwq_3f9a1c2b4d5e#raw-approvals"}],
#  "next":"2026-10-12T08:00:00.000Z~rwq_3f9a1c2b4d5e"}
# next page: add &before=<next>, passed back exactly as given

# This credential's audit trail
curl "$BASE/audit?limit=20" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"
# {"ok":true,"events":[{"at":"…","action":"…","resource":"…","result":"…","details":{"requestId":"rwq_3f9a1c2b4d5e","tool":"…"}}],"next":"…"}

# The credits this credential used in the last 7 days
curl "$BASE/usage?days=7" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"
# {"ok":true,"days":7,"totalCredits":…,"calls":…,"byDay":[{"day":"2026-10-12","credits":…,"calls":…}],"byTool":[{"tool":"…","credits":…,"calls":…}]}

# The workspace this credential speaks for
curl "$BASE/organization" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"
# {"ok":true,"workspace":{"id":"org_…","name":"Acme Marketing"},"plan":"…","billing":{"type":"stripe","creditsRemaining":…},
#  "connectedPlatforms":[{"family":"google_ads","accounts":…}]}
A person decides a queued write on API & MCP → Write approvals (each request's reviewUrl opens it). An integration shows the change as pending, polls or waits for the write.decided webhook — it never tries to approve.

Status codes

StatusMeaningWhat to do
200The tool ran: { ok: true, result: { ok, tool, kind, accountId, result: {…} } } — the tool's own answer is result.result. A notices array, when present, carries extra lines such as low credits. A replay of a write that already ran returns its first answer (replayed: true).Use the result.
202A write is queued for a person: { ok: true, queued: true, requestId, statusUrl } (plus result, the tool's own answer with status pending_approval) — a typed write and a raw write alike. Poll the statusUrl (GET /api/v1/requests/{id}).Show it as pending; poll with back-off until executed, failed, rejected or expired, or wait for write.decided. The request expires after 24 hours unanswered.
400The body is not valid JSON or not an object of arguments, or a query parameter (limit, before, status, days) is out of range.Fix the request; retrying it unchanged fails again. GET /api/v1/tools/{name} shows the schema.
401The key or token is missing, expired or revoked; WWW-Authenticate names the metadata. A token issued for the MCP server (no resource, or resource=https://www.agentplanners.com/api/mcp) answers code: "wrong_resource", naming the resource to request: authorize again with resource=https://www.agentplanners.com/api/v1 (or the origin, for both surfaces) — a refresh cannot change it.Refresh the access token once; if it still fails, sign in again. On wrong_resource, authorize again with the right resource.
402Not enough credits for this call; the error says how many it needs and how many are left.Do not retry. Tell the user to top up the workspace.
403Not allowed for this credential: a missing scope (error="insufficient_scope" in WWW-Authenticate), the plan, the platforms or platform tools the person allowed, or autoApprove on a credential whose changes may not apply at once (POST /api/v1/tasks: code auto_approve_not_allowed, no task created).Do not retry. Read GET /api/v1/capabilities, then ask for the scope or platform on a new connection.
404No such tool, or no such request in this workspace — or one this credential did not queue (another live connection of the same OAuth app in the same workspace may read it).Re-discover with GET /api/v1/tools; never guess a name or an id.
409No account of the tool's platform is connected in this workspace or exposed to this credential; or a write a person already decided was sent again with its Idempotency-Key (rejected, expired or failed); or a task's Idempotency-Key was reused with another goal (code idempotency_key_reused).Ask the workspace to connect that platform (or expose it to this credential); for a decided write or a new goal, use a new key.
413The body is larger than 1 MB.Send fewer items per call.
422The tool ran and answered with an error, or refused the arguments; error says why (the platform's own text is in the body). It includes a missing, ambiguous or unknown accountId — the error lists the candidates as id (name) — and a raw read the platform answered with a 4xx (result.status, result.error).Change the arguments the error names (pass an accountId from GET /api/v1/accounts). Never resend the same write unchanged.
429Rate limited: this credential's 60 requests per 60 s, the workspace's tool calls, or 50 writes already waiting for approval in the workspace. Retry-After says when. Every answer also carries RateLimit-Remaining and RateLimit-Reset, so you can slow down before this happens. “Too many failed authentication attempts” is different: 20 failed sign-ins from one address within 5 minutes — an authentication failure, not a rate limit (only unknown or malformed keys and tokens count — an expired, withdrawn or other-surface token Agent Planners issued answers 401 invalid_token and is not counted).Wait Retry-After, then retry with the same Idempotency-Key. On the failed-attempts answer, fix the key or token first.
500An unexpected server error; the body is { ok: false, error } with the CORS headers. A write may or may not have reached the platform.Retry a read shortly. Before resending a write, check GET /api/v1/requests and GET /api/v1/audit, then retry with the same Idempotency-Key.
503Something the answer depends on (the database, the workspace's plan or entitlement, the credential's policy) could not be read; nothing ran (it fails closed) — POST /api/v1/tasks answers code write_policy_unreadable. The answer carries Retry-After; while the database is unreachable, any endpoint answers { code: "database-unavailable", retryable: true } with Retry-After: 30.Wait Retry-After seconds, then retry the same request with the same Idempotency-Key.

6. Verify the integration

Run these six checks with the credential you will ship, against a test account — never a live campaign. Each names what proves it.

  1. 1GET /api/v1/me answers 200 and names the workspace you expect (organization.id); an OAuth token also names your app (oauth.clientId) and the connection (oauth.connectionId).
  2. 2GET /api/v1/capabilities lists the families your integration needs under tools.families, with tools.writes as you expect: queued_for_approval for another app's OAuth connection by default or an API key that requires approval, apply_with_guardrails for an API key by default and for the workspace's own app.
  3. 3A read tool answers 200 — for example POST /api/v1/tools/google_ads__get_account_health with an accountId from GET /api/v1/accounts — and POST /api/v1/tools/google_ads__get_tracking {"accountId":"<test account id>","level":"campaign","ids":["111222333"]} reads the test campaign's tracking before you change it.
  4. 4A write, as a dry run: POST /api/v1/tools/google_ads__update_tracking {"accountId":"<test account id>","level":"campaign","ids":["111222333"],"finalUrlSuffixSet":{"utm_source":"google"},"dryRun":true} with an Idempotency-Key. Only when tools.writes is queued_for_approval does it answer 202 with a requestId that GET /api/v1/requests?status=pending lists — ask a person in the workspace to Reject it on API & MCP → Write approvals, so nothing changes; GET /api/v1/requests/{id} then says rejected. With apply_with_guardrails it answers 200 with the preview, and nothing changes either.
  5. 5GET /api/v1/audit shows an event for that write (for a queued write, its details carry the requestId) — with the credential's Record tool and API calls switch on, the default.
  6. 6GET /api/v1/usage?days=1 shows the credits your calls used (totalCredits and calls above 0 for today).
Keep the checks as a script your CI or your coding agent runs after every change to the integration. /me, /capabilities and /openapi.json are free; every other call — listing and describing tools, /accounts, /tasks, /requests, /audit, /usage, /organization, the tool calls — is billed in credits (7 for a read).

A UTM / link-management product that serves many Agent Planners customers publishes one OAuth app. Each customer's admin connects it from their own workspace with tools:read and tools:write and the platforms it should touch. For each platform that customer connected, the app first asks POST /api/v1/tools/internal__plan_ad_update { family, level, require } what changing tracking there preserves (the ad id, the creative, the post and its likes, review, delivery), reads the current value, and then calls that platform's tool:

  • Google Ads: google_ads__get_tracking, then google_ads__update_tracking — the tracking template, final URL suffix and custom parameters of the account (level customer), campaigns, ad groups, ads or keywords, up to 200 per call. finalUrlSuffixSet / finalUrlSuffixRemove change single parameters and keep the rest; dryRun previews; require refuses before sending when an outcome cannot be promised. An ad or keyword URL change sends it back to review. (google_ads__mutate_campaign's finalUrlSuffix replaces the whole suffix — not the tool for a UTM change.)
  • Microsoft Advertising: bing_ads__get_tracking, then bing_ads__update_tracking — the same fields on the account, campaigns, ad groups, ads and keywords.
  • Meta: meta_ads__update_url_tags — Meta cannot edit url_tags on an existing creative, so the tool copies each creative with the new url_tags and switches the ad to it (same ad, likes and comments kept where the ad has a post); the ads go back to Meta review.
  • LinkedIn: linkedin_ads__set_tracking_parameters — dynamic UTM parameters on a campaign, or with level account on the whole ad account; LinkedIn appends them to every creative's landing page without a new review. Pinterest: pinterest_ads__apply_utm_params. Reddit: reddit_ads__update_ad_click_url. Snapchat: snapchat_ads__update_creative_url. Display & Video 360: dv360__update_creative_urls.
  • Klaviyo: klaviyo__update_tracking_settings — the account's UTM defaults for campaigns and flows.
  • X and TikTok: no tool edits tracking on existing ads — tell the customer to change it in the platform.
  • Each change waits for a person in the customer's workspace unless their admin chose otherwise: show it as pending in your product until GET /api/v1/requests/{id} says executed, or the write.decided webhook arrives.
The tool list a connection sees follows what that customer connected and allowed — read it with GET /api/v1/tools rather than assuming every platform is there. Test every change as a dry run on a test account first.

Rate limits

  • Every answer to an authenticated request — a 200 as much as a 429 — carries the credential's request budget: RateLimit-Limit (requests per window), RateLimit-Remaining (left in this window), RateLimit-Reset (seconds until the window resets) and RateLimit-Policy (for example 60;w=60), with the X-RateLimit-Limit / X-RateLimit-Remaining twins and X-RateLimit-Reset as the Unix time the window resets.
  • They count the same budget a 429 enforces (per API key or per OAuth connection), and the MCP server's answers carry them too. A browser app can read them: they are listed in Access-Control-Expose-Headers.
  • The numbers (GET /api/v1/capabilities, limits): 60 requests per 60 s per credential; tool calls also share a per-workspace budget of 120 per 60 s; task starts are limited to 20 per 10 minutes per workspace, plus the plan's limit on tasks running at once. When a budget is spent the call answers 429 with Retry-After. Slow down when RateLimit-Remaining gets low instead of waiting for the 429.
  • At most 50 writes can wait for approval per workspace; one more answers 429 with Retry-After until a person decides some.
  • Failed sign-ins are throttled per address: 20 failed attempts within 5 minutes answer 429 “Too many failed authentication attempts”. That is an authentication failure, not a rate limit — fix the key or token. Only unknown or malformed keys and tokens count: an expired, withdrawn or other-surface token Agent Planners issued answers 401 invalid_token and is not counted.

Webhooks: events instead of polling

Set a webhook and Agent Planners POSTs an event to your https URL when something happens to work your credential created, so you do not have to poll GET /api/v1/requests/{id} or GET /api/v1/tasks/{taskId}. A workspace admin sets it on API & MCP: under an API key (Webhook → Set webhook) for that key's work, or under your own OAuth app for the work of every connection of that app, in every workspace that connected it — each event names the workspace and the connection.

The signing secret (whsec_…) is shown once when the webhook is saved; Rotate secret mints a new one, which applies at once — accept both the old and the new secret while you switch. Send test event delivers a signed webhook.test event so you can check your receiver first.

Events cover work this credential created and that waits or finishes: a write applied at once answers 200 and sends no write.* event. An OAuth app's webhook keeps receiving a connection's write.decided and task.finished events after that connection ended.

write.decided can arrive a second time for the same request with corrected: true and previousOutcome: "failed" — when a write that a stuck-approval sweep had marked failed did in fact execute. Let the later, corrected event win.

EventWhendata carries
write.queuedA write this credential asked for waits for a person's approval (a 202).requestId, tool (or method and path for a raw request), family, accountId, needsPerson, queuedAt, expiresAt, statusUrl
write.decidedThat write was rejected, expired, or approved — sent once it ran, with its outcome.The same ids, decision (approved, rejected, expired), status, outcome (executed or failed), decidedAt, executedAt — and corrected: true with previousOutcome when it corrects an earlier write.decided
task.finishedA task this credential started completed, failed or was cancelled.taskId, status, runId, finishedAt, statusUrl
http
POST https://example.com/agentplanners/events
Content-Type: application/json
AgentPlanners-Event: write.decided
AgentPlanners-Delivery: whd_8c1f0e2a9b7d4c3e5f6a1b2c
AgentPlanners-Attempt: 1
AgentPlanners-Signature: t=1791158400,v1=5f2b9c…

{"id":"whd_8c1f0e2a9b7d4c3e5f6a1b2c","type":"write.decided","apiVersion":"2026-10-11","createdAt":"2026-10-11T09:20:00.000Z",
 "workspace":{"organizationId":"org_2abc…"},"credential":{"kind":"oauth","connectionId":"6710…","clientId":"apc_…"},
 "data":{"requestId":"rwq_3f9a1c2b4d5e","kind":"typed","tool":"google_ads__update_tracking","family":"google_ads","accountId":"…",
  "statusUrl":"/api/v1/requests/rwq_3f9a1c2b4d5e","decision":"approved","status":"executed","outcome":"executed",
  "decidedAt":"2026-10-11T09:19:58.000Z","executedAt":"2026-10-11T09:19:59.000Z"}}

Verify a webhook (Node)

  • AgentPlanners-Signature is t=<Unix seconds>,v1=<hex HMAC-SHA256 of t + "." + the raw body, keyed with your signing secret>. Compute it over the exact bytes you received, compare in constant time, and refuse a timestamp older than 5 minutes.
  • AgentPlanners-Delivery is the delivery id, the same on every retry: store it and ignore a delivery you already handled. AgentPlanners-Attempt says which attempt this is (1, 2 or 3). AgentPlanners-Event repeats the event type.
  • After Rotate secret the new secret signs every delivery at once: during the switch, accept a signature that matches either the new or the previous secret, then drop the previous one.
  • A payload never carries a tool's arguments, a platform's answer, a goal, an error text or a token — ids, status, tool name and timestamps only. Read the details with your own credential at statusUrl.
  • Answer 2xx within 10 seconds. Anything else — another status, a timeout, a redirect (redirects are never followed) — is retried: 3 attempts in all, the second at least 1 minute and the third at least 10 minutes after the one before. 410 Gone stops the retries. A delivery can arrive twice (an answer lost on the way), and events are not guaranteed to arrive in order.
  • Only https URLs on public addresses receive events: a URL that resolves to a private, loopback or cloud-metadata address is refused when you save it and again at every delivery.
  • If the stored signing secret cannot be read, the delivery is marked failed at once — rotate the secret on API & MCP.
javascript
import crypto from "node:crypto";
import express from "express";
const app = express();

// The signing secret, shown once when you saved the webhook — load it from your secret store, never commit it.
// While you rotate it, list the new secret and the previous one; drop the previous one afterwards.
const SECRETS = ["whsec_…"];
const seen = new Set(); // use your database in production: dedupe by delivery id

// Keep the RAW body: the signature covers the exact bytes.
app.post("/agentplanners/events", express.raw({ type: "application/json" }), (req, res) => {
  const body = req.body.toString("utf8");
  const header = req.get("AgentPlanners-Signature") || ""; // t=1791158400,v1=5f2b…
  const parts = Object.fromEntries(header.split(",").map((kv) => kv.split("=", 2)));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return res.status(400).end(); // older than 5 minutes
  const given = Buffer.from(String(parts.v1 || ""), "hex");
  const signedBy = (secret) => {
    const expected = crypto.createHmac("sha256", secret).update(t + "." + body).digest();
    return given.length === expected.length && crypto.timingSafeEqual(given, expected);
  };
  if (!SECRETS.some(signedBy)) return res.status(400).end();

  const delivery = req.get("AgentPlanners-Delivery"); // the same id on every retry
  if (seen.has(delivery)) return res.status(200).end();
  seen.add(delivery);

  const event = JSON.parse(body);
  // event.type: "write.queued" | "write.decided" | "task.finished" | "webhook.test"
  // event.workspace.organizationId, event.credential (keyId, or connectionId + clientId for an OAuth app)
  // event.data: ids, status, tool name, timestamps — fetch details with your own token (event.data.statusUrl)
  // A write.decided with event.data.corrected === true replaces the earlier one for the same requestId.
  res.status(200).end(); // answer fast; do the work after
});

Tasks and accounts

Instead of calling tools one by one, hand Agent Planners a goal: POST /api/v1/tasks starts a task that plans, reads the data and proposes changes under the workspace's approvals, and GET /api/v1/tasks/{taskId} returns its status and report. It needs tasks:write (tasks:read to follow it); GET /api/v1/capabilities says whether this credential has them (tasks.canWrite, tasks.canRead).

Without autoApprove the task's writes wait for approval on the task page. autoApprove: true is accepted only when this credential's changes may apply at once — an API key not set to require approval, or an OAuth connection whose admin chose Apply ordinary changes at once (GET /api/v1/capabilities, tasks.autoApprove: allowed, refused or unknown); otherwise the answer is 403 { ok: false, code: "auto_approve_not_allowed", error } and no task is created. If the credential's write setting cannot be read, the answer is 503 (code write_policy_unreadable, retryable: true, Retry-After: 30).

The Idempotency-Key is per credential and bound to the goal: the same key and goal answer 201 with replayed: true and the same taskId; the same key with another goal answers 409 (code idempotency_key_reused); a task whose start failed releases its key, so a retry creates a new task. Over MCP, create_task answers the same refusals as "Error (403): …" and "Error (409): …". Task starts are limited to 20 per 10 minutes per workspace, plus the plan's limit on tasks running at once.

shell
curl -X POST "$BASE/tasks" \
  -H "Authorization: Bearer $AGENTPLANNERS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: weekly-google-ads-summary-2026-10-12" \
  -d '{"goal":"Summarize the last 7 days of Google Ads performance"}'
# {"taskId":"task_ab12","status":"planning","url":"..."}

curl "$BASE/tasks/task_ab12" -H "Authorization: Bearer $AGENTPLANNERS_TOKEN"

Frequently asked questions

Is the REST API the same as the MCP server?
For tools, yes: GET /api/v1/tools, GET and POST /api/v1/tools/{name} and GET /api/v1/requests/{id} run the MCP server's own tool calls, with the same names, scopes, approvals, guardrails, credits and audit trail. MCP suits AI hosts such as Claude, ChatGPT and Codex; REST suits a backend or a web app.
Do I need an API key?
No. Your own scripts can use an API key; a product other workspaces connect uses OAuth — each customer approves it in their own workspace and your server receives their access token. Request it with resource=https://www.agentplanners.com/api/v1.
How does my integration learn what it is allowed to do?
Call GET /api/v1/capabilities: one JSON answer with the credential's scopes and what each allows, the tool families and how many reads and writes each offers it, whether writes wait for a person, what it may assemble raw, the rate limit and the errors to handle. GET /api/v1/tools then lists the tools themselves, each with the scope it needs and how it runs.
Why did my write answer 202?
It waits for a person in the workspace to approve it — the default for another app's OAuth connection, for an API key created with Require approval for this key's write tools, for raw writes from a key no admin pre-authorized, and for deletes and other person-class changes on any credential except the workspace's own OAuth app (which never answers 202). Poll GET /api/v1/requests/{id} for the decision, or set a webhook and receive write.decided when it is decided; nothing changes on the platform before it is approved, and an unanswered request expires after 24 hours.
Does my system ever see the customer's Google, Meta or store tokens?
No. Every tool call and every <family>__raw_request runs through an account the workspace connected in Agent Planners, with the platform token stored there; your system holds only its own Agent Planners key or OAuth tokens and receives results.
Can my integration approve its own writes?
No. A queued write is decided by an admin or editor in the workspace on API & MCP → Write approvals; no endpoint approves. GET /api/v1/requests lists what your credential queued, each with the reviewUrl a person opens.
Do I have to poll?
No. Set a webhook on the API key (or on your OAuth app) on API & MCP and Agent Planners POSTs write.queued, write.decided and task.finished to your https URL, signed with a secret shown once. Polling still works, and is the fallback if a delivery fails all 3 attempts.
What does a call cost?
/me, /capabilities and /openapi.json are free. Every other call is billed in credits to the workspace it runs in, the same as over MCP: listing and describing tools, /accounts, /tasks, /requests, /audit, /usage and /organization cost 7 credits each, and a tool call its own read or write price; GET /api/v1/usage shows what your credential used, and 402 means the workspace needs to top up.

Related

Build an integration (for coding agents)
Instructions for Codex, Claude Code, Cursor and developers wiring another system to Agent Planners: choose MCP, an API key or an OAuth app; authenticate; discover with /api/v1/capabilities; call tools; handle 202 approvals and errors; verify — with a minimal Node and Python client.
OAuth apps for your own system: consent, tokens and the REST API
Integrate your own software with Agent Planners: register an OAuth app (a server app with a client secret, or a public app with PKCE), send a person through the consent page once, keep each connection's tokens, and call the REST API — with the own-app rule (no approval step in its own workspace), raw access on by default, call logging, and publishing an app to other workspaces.
Connect Agent Planners to Claude, Codex, Grok and Muse
Connect an AI agent to Agent Planners over MCP, by hand: Claude (claude.ai, Desktop, Claude Code), Codex, Cursor, VS Code, Windsurf, Gemini CLI, ChatGPT, Grok, Muse and any MCP client — sign in from the agent or use an API key kept in an environment variable, verify the connection, add a second workspace, call tools and raw requests, and fix common errors.
Approvals & workflow
Plan → approve → execute. How writes pause at an approval gate by default, in-app or by email magic-link, with pre-approval, auto-approve, stale-state checks and the audit log.
Credits & billing
How credits work, what consumes them, the free monthly allotment, top-up packs, where to see your usage, and how to lower your credit burn.