Skip to content

Approvals

Some actions hand out access or send your data somewhere new. An agent connected through MCP can never take these on its own:

  • creating an API key
  • adding, changing, removing or re-enabling a webhook endpoint

When an agent needs one, it asks, and a person who could take the action themselves decides.

A coding agent that uses your own token or the command line acts as you. If you can change a webhook endpoint or add credits, it can too, without asking. It still asks to create an API key or to copy limits to live, because the API has no direct way to do them. Agents shows which agent asks for what.

  1. The agent asks. The request says what the agent wants to do, with the details and a reason, such as “I’m connecting acme-web and need an API key that can read the workspace”. Everyone who could approve it gets a notification.
  2. A person decides. Open the request from the notification or from the link the agent shows you. You see exactly what will happen and why, then choose Approve or Deny.
  3. The action runs as you. It runs with your permissions, and the audit log records it under your name, along with the agent that asked.

A request expires after 24 hours, and a person can decide it only once.

Some actions create a secret, such as an API key or a webhook signing secret. The agent never sees it:

  • If the CLI asked: after you approve, the CLI writes the secret straight into a file in your project. It never prints the secret, so an agent working in the terminal can’t read it.

    Terminal window
    limitry workspace approval-requests create --action workspace.apiKey.create \
    --input '{"name":"acme-web","scopes":["checks:write"],"environment":"test"}' \
    --reason "Connect acme-web" --json
    limitry workspace approval-requests redeem <id> --wait --write-env .env
    # Done: … Wrote LIMITRY_API_KEY to .env (the value is not shown).
  • If an agent asked over MCP: the action runs when you approve, and you see the secret once, on the approval page.

An API key request names its environment, test or live. The key it creates starts with lim_test_ or lim_live_ to match, and you see which before you approve.

Besides API keys and webhook endpoints, an agent can ask for two Limitry actions. The owner and admins approve or deny both. Members can also approve or deny a limit.credit request in test.

Action What happens when you approve
limit.credit Limitry adds credits to a subject’s balance. A negative amount with a note takes credits back. If the request names no environment, the change goes to test.
limits.copyToLive Limitry copies your test limits to live, either all of them or the ones listed. To see what would change before you approve, open Copy to live on the Limits page.

Four endpoints cover approvals:

Endpoint What it does
GET /v1/workspace/approval-actions Lists what an agent can ask for. Each action has its inputSchema and the roles that approve it.
POST /v1/workspace/approval-requests Asks for an action. It answers 201, with the request’s path in Location.
GET /v1/workspace/approval-requests/{approvalRequestId} Returns the decision.
POST /v1/workspace/approval-requests/{approvalRequestId}/redeem Runs an approved action that creates a secret, and returns the secret once.

The request’s input must match its action’s inputSchema, a JSON Schema. Redeeming a request that isn’t approved, was already redeemed or has expired fails with 409 and the code conflict. Only the personal access token that asked can redeem a request.

To ask, you need the workspace.approvals:write scope and a credential that belongs to a person: a personal access token, or an app a person connected. A workspace API key can’t ask.