Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview
On this page

Anlyon API

Anlyon is the production execution runtime for AI agents. An agent invokes a named action; Anlyon resolves the action and its version, checks the caller’s scopes, evaluates policy, requests human approval when required, resolves credentials at dispatch, makes the production call itself, and records the outcome.

These guarantees cover actions routed through the hosted executor. A tool the caller’s own code invokes directly, with a credential that process holds, is not routed through Anlyon and is not governed by it.

Authentication

Developer API endpoints use a workspace API key as a bearer token:

Authorization: Bearer anlyon_your_api_key

API-key budget admission

Budgets reserve supported logical operations in Postgres with integer sub-cent cost accounting. They cover action invocations and event publishes; external provider bills and session callers are outside these caps. UTC calendar months own the reservations. Approval-pending actions reserve one invocation admission even before dispatch. These conservative admission estimates are distinct from invoice metering.

429 BUDGET_EXCEEDED refuses the whole admission. 503 BUDGET_RECONCILIATION_REQUIRED pauses keys whose legacy usage is unknown. A cached Idempotency-Key success replays normally. If that cache is lost or expires but a durable budget reservation exists, 409 BUDGET_EFFECT_ALREADY_RESERVED prevents executing the effect again. Investigate the original outcome before choosing a new key; a new key can duplicate work. Errors after admission keep their reservations until an operator proves no work occurred. Disabling or deleting a budget does not erase recorded usage.

Delivery signature environment attribution

Configured message and event-subscription signers emit legacy v1 plus signed env/v2 attribution. v2 is HMAC-SHA256 over the exact UTF-8 string anlyon-delivery-v2.${timestamp}.${environmentId}.${rawBody}. Receivers must configure the expected environment independently; v1 alone provides no environment boundary. Signing keys remain workspace-wide unless a subscription uses its own secret. X-Anlyon-Environment-Id is reserved and informational, not authority. Legacy queued work without recorded scope has no v2 claim. See /verification for coverage, raw-body verification and staged migration.

Rate Limiting

Rate limits are per workspace, by plan, in one-minute windows and UTC clock hours:

  • No plan and Early Beta Access: 300 requests/minute, 10,000 requests/hour
  • Starter and Pro: 1,000 requests/minute, 30,000 requests/hour
  • Team: 1,000 requests/minute, 45,000 requests/hour
  • Enterprise: Custom

Error Handling

All errors follow a consistent format:

{
  "success": false,
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}

Common error codes:

  • AUTHENTICATION_ERROR - Invalid or missing API key
  • RATE_LIMIT_EXCEEDED - Too many requests: the workspace’s per-minute or per-hour API request limit (429, with Retry-After)
  • QUOTA_EXCEEDED - Usage quota exceeded
  • VALIDATION_ERROR - Invalid request data
  • NOT_FOUND - Resource not found
  • FEATURE_NOT_AVAILABLE - Feature not available on your plan
  • PAYMENT_REQUIRED - The workspace has no plan, so actions are not run (402)
  • PLAN_FEATURE_REQUIRED - Creating or changing this needs the Team plan (403)
  • PAID_PLANS_UNAVAILABLE - Paid plans cannot be bought right now (403)
  • FUNCTION_RUN_CONCURRENCY_LIMIT - The plan’s hosted function runs at once are all going (429)
  • FUNCTION_RUN_RATE_LIMITED - The plan’s hosted function run starts a minute are used (429)
Version 2.0.0
Base URLhttps://api.anlyon.comhttp://localhost:4000

Actions

Define and invoke secret-backed hosted tools

Approvals

Create and decide human-in-the-loop safety gates

Approval Policies

Configure the environment-scoped rules that decide whether a request needs approval, is auto-approved, or is auto-denied. Operator credentials only.

Impact Limits

Shared business-impact limits (money, resource mutations) that governed effects reserve before dispatch. Separate from Budgets, which cap Anlyon usage.

Sign-offs

Changes an agent asked for that loosen a guardrail, waiting for a workspace admin. An agent may never loosen its own guardrails.

End users

Act for your users. Each of your end users connects their own accounts; every action your agent takes in them is limited, approved and receipted per end user. Your server names the end user in the Anlyon-End-User header; the model never does.

Connected accounts

Connect an account at a provider through its own consent page. The result is a secret whose access token is fetched at dispatch and never returned.

Secrets

Store write-only credentials used by hosted actions

Secret stores

Enterprise. Your own AWS Secrets Manager or HashiCorp Vault, per environment. A secret of kind external points into one and is read at dispatch, never stored by Anlyon. Managing stores needs secret-stores:read or secret-stores:write, privileged scopes no key receives by default; secrets that point into a store use secrets:* like any other.

Functions

Your own code, run with no network and no secrets. Its one way to change anything is to call your actions, and each call is limited, approved and receipted like any action call.

Environments

Read an environment, halt it and resume it

Runs

Record what an agent did as a run with spans, and export it

Events

Publish typed events and deliver them to filtered webhook subscriptions

Stream

Subscribe to the realtime event stream

Audit

Audit streaming and the evidence export (Enterprise). Stored audit records in one versioned shape, streamed to a signed webhook, an S3-compatible bucket, Datadog or Splunk, with per-workspace retention.

Budgets

Control per-API-key usage and estimated spend

Analytics

View analytics and usage statistics

Billing

Manage billing, plans, and usage

Notifications

Manage notifications and preferences

Integrations

Connect Slack and Discord notification destinations without exposing stored credentials

Authentication

Inspect the credential making the request

Was this page helpful?