Skip to content

Changes to the API within /v1 only add things and never remove them; see Versioning. Newest changes are at the top of each section.

  • 0.1.1 (November 24, 2026): on npm as ordainer-mcp and in the MCP Registry as ai.ordainer/mcp. 12 tools (6 reads, 6 writes); test keys only; every write needs an accept. See MCP server.
  • November 18, 2026: Admin API additions: GET /v1/admin/me returns which admin key this is, with its label, scopes and expiry (any scope; never the secret). GET /v1/admin/decisions lists decision rows for your organization’s test keys only (scope usage:read; about 20 reads a second per organization). POST /v1/admin/keys/:id/rotate makes a new test key with the same customer, plan, label and per-key settings and revokes the old key in the same step (needs keys:write and keys:revoke); the new key’s per-key count starts at 0. Key objects now include usage.key (period, period_start, resets_at, used, cap, remaining). A plan update or mode switch on a plan that has an active live key is 409 live_key_on_plan, and nothing changes. No SDK release. See Admin API.
  • November 16, 2026: Public demo limit: POST /demo/decide now allows 300 calls an hour per address by default (it was 60), and an IPv6 address counts as its /64. See Errors.
  • November 13, 2026: Session leases: optional lease on POST /v1/decide. Under the key’s session limit the allow includes lease (id, expires_at, running, limit). At the limit, enforce is 200 deny concurrency_exhausted (one audit row, not counted). Shadow is a would-deny and the lease is still taken. Finish with POST /v1/leases/:id/release (a second call is a 200 no-op). Extend with POST /v1/leases/:id/extend. Default TTL 120 seconds, maximum 3600. No session limit set means the decide answer is unchanged. A decide that doesn’t send lease is decided as before and is never denied for the session limit. The limit is off until you set it: 1 to 100 per key, with session_limit on PATCH /v1/admin/keys/:id or in Console → Keys. GET /v1/admin/keys and GET /v1/admin/keys/:id return session_limit and running. Plain HTTP only: the SDKs don’t send lease. See Session leases.
  • November 13, 2026: 429 concurrency_limited is audited: POST /v1/decide still answers 429 with the same body when a key’s waiting line is full, and nothing is counted toward usage or the plan cap. One decision row with reason concurrency_limited is written for that request_id (at most one row per key per second on each server). Other errors still write no audit row. See Errors and Decision history.
  • November 12, 2026: Delete a customer and get one test key: DELETE /v1/admin/customers/:id soft-deletes a customer you added and revokes its active test keys in the same step (needs customers:write and keys:revoke). The sandbox customer cannot be deleted this way. A customer that owns a live key cannot be deleted this way either. GET /v1/admin/keys/:id returns one test key (no secret). Rename and external_id changes stay in Console → Customers. The Node SDK 1.3.0 and the Python package 0.3.0 wrap both routes. See Admin API.
  • November 11, 2026: Decision history: GET /v1/decisions lists rows and GET /v1/decisions/{request_id} reads one, with the same agent key as decide. A key reads only its own customer’s rows in its own environment. Another customer, organization or environment is the same 404 as a missing id. A held key is 403 key_on_hold. No SDK release. See Decision history.
  • November 11, 2026: Decision export columns: CSV and JSON decision exports add would_deny, plan_id, plan_name, and plan_policy_version after source. would_deny is true only for a shadow deny, and plan_policy_version is the plan’s policy version stored on that decision.
  • November 11, 2026: old_key_format for any sk_test_ or sk_live_ value: a key that starts with sk_test_ or sk_live_ now gets 401 old_key_format whatever its length. Before, only the exact old 32-character shape did, and other lengths got unknown_key. The message is now This key uses our old format, so it no longer works. Please create a new key on the Keys page in your console. (old_key_format). Only the exact old shape stays out of the per-address failed-key limit. No SDK release. See Errors.
  • November 11, 2026: Console → Decisions filters by decision, mode, would-deny, key, tool, reason, plan, customer and date. It shows 50 rows at a time with Older and Newer, and counts would-denies by key and by plan. The Overview Would deny, last 7 days number opens that list. Revoking a key, and changing the tool on a plan that has keys that aren’t revoked, now ask you to confirm first. The welcome page’s .env download names each key after its label, for example ORDAINER_KEY_PILOT.
  • November 10, 2026: Queue wait is now a 503: a /v1/decide call that waits in its key’s line and runs out of time now gets 503 decide_timeout (retryable; the SDK retries once, then follows failMode) instead of 429 concurrency_limited. 429 concurrency_limited now means the key’s line is full. Nothing is counted in either case. No SDK upgrade needed. See Errors.
  • November 9, 2026: In Console → Customers you can rename a customer, change its external ID, or delete a customer you added. Deleting a customer revokes its keys in the same step (one key.revoke line each in the change log). A call already running finishes, the next call gets 401 revoked_key, and the customer’s decisions stay. The sandbox customer can’t be deleted. The admin API can’t rename or delete customers. Console exports default to the last 90 days (or your retention, if shorter).
  • November 9, 2026: key_on_hold: a held agent key returns 403 key_on_hold. Revoked is still checked first. The call is not counted. No SDK release. See Errors. The console shows the key as “on hold” and, when the whole account is held, a banner that says the account’s agent keys are on hold.
  • October 18, 2026: When we’re under heavy load, decide() now answers that it’s busy (503 decide_timeout or 429 concurrency_limited) instead of failing with a 500. On a 503, the SDK then applies its fail-open or fail-closed setting. Unknown keys get a plain 401.
  • October 18, 2026: Deny responses can now include the key’s label, so your logs show which agent was blocked. It’s off by default. To turn it on for your account, email support.
  • 1.4.0 (November 16, 2026): On npm: npm install ordainer. Adds session leases: decide({ lease: true }) or decide({ lease: { ttlS } }) sends lease, and result.lease is { id, expiresAt, running, limit } when the API took one (else null; a fail-open runs with no lease). New release(leaseId) and extend(leaseId, ttlS) throw OrdainerLeaseError (code not_found for a 404, lease_inactive for a 409) and never change a decide result. wrap(fn, { lease }) releases the lease in a finally block. A decide without lease is unchanged. See Session leases.
  • 1.3.0 (November 12, 2026): On npm: npm install ordainer. Adds OrdainerAdmin, a client for the admin API (admin key from ORDAINER_ADMIN_KEY). It covers customers, plans, test keys and the change log, including createCustomer, createKey, getKey, deleteCustomer (revokes that customer’s keys; needs customers:write and keys:revoke) and listChanges. decide() is unchanged. See the Node / Express quickstart and Admin API.
  • 1.2.8 (November 11, 2026): On npm: npm install ordainer. Retry-After on a quota or test-limit block is capped at 3600 seconds (one hour). Use resets_at in the JSON body for the real reset time. Unknown or non-finite resets_at still sends no header. The server’s own Retry-After on 429 rate_limited and 503 ordainer_unavailable, and the API’s decide Retry-After, are not this cap. 1.2.7 and earlier don’t have this cap (1.2.7 was README-only, the same code as 1.2.6).
  • 1.2.7 (November 11, 2026): On npm: npm install ordainer. Same code as 1.2.6; only the package README changed: a call that waited in its key’s line and ran out of time is 503 decide_timeout (the SDK retries once, then follows failMode), and 429 concurrency_limited means the line of 20 waiting is full. See Errors.
  • 1.2.6 (November 10, 2026): On npm: npm install ordainer. Same code as 1.2.5; only the package README’s install steps changed.
  • 1.2.5 (November 9, 2026): On npm: npm install ordainer. Retry pause is jittered. plan_limit_reached and tool_not_in_plan caller messages reworded (codes, statuses and fields unchanged; match on error.code). See Errors.
  • 1.2.4 (October 22, 2026): On npm: npm install ordainer. Same code as 1.2.3; only the package README’s install steps changed.
  • 1.2.3 (October 18, 2026): docs-site download only. Error messages reworded; codes, statuses and fields unchanged. Match on error.code, not the message. The 503, test-limit and plan-deny messages are in plain words (see Errors), and a plan limit can name the agent once it’s turned on for your account (email support). The 1.2.2, 1.2.1 and 1.2.0 files stay available unchanged. A call held back because too many calls are running at once on one key now gets its own message, ending (concurrency_limited); the code field stays rate_limited.
  • 1.2.2 (October 9, 2026): docs-site download only. result.wouldDeny is now true only for a shadow deny (an enforce deny has wouldDeny: false and allowed: false), and the package README’s install steps match this site. The 1.2.1 and 1.2.0 files stay available unchanged.
  • 1.2.1 (October 8, 2026): docs-site download only. The packed file’s default base URL is https://api.ordainer.dev.
  • 1.2.0 (October 6, 2026): shadow mode never blocks on a plan or test limit, and 429 safety_limit_reached lets calls run. What changed in 1.2.0.
  • 0.1.3 (November 24, 2026): on RubyGems: gem install ordainer. A Client now keeps its connections to the API open and reuses them (HTTP keep-alive). If a reused connection is already closed, the call is sent once more on a new connection with the same idempotency key, and is not counted twice. Client#close closes the idle connections; Ordainer.configure and Ordainer.reset! close the previous shared client. The agent key is read from ORDAINER_KEY first. If ORDAINER_API_KEY is also set, ORDAINER_KEY wins; 0.1.1 used ORDAINER_API_KEY in that case. Passing api_key: still overrides both. Error messages reworded, with the same text as Node SDK 1.2.5; codes, statuses and fields unchanged. Match on error.code, not the message (see Errors). Retry-After on a quota or test-limit block is capped at 3600 seconds (one hour), like Node SDK 1.2.8; use resets_at in the JSON body for the real reset time. 0.1.2 was not published; its changes are in 0.1.3.
  • 0.1.1 (October 18, 2026): on RubyGems. Error messages reworded, with the same text as Node SDK 1.2.3; codes, statuses and fields unchanged. Match on error.code, not the message. A call held back because too many calls are running at once on one key gets its own message, ending (concurrency_limited). Ordainer.deny_response no longer raises when the server’s reset time can’t be turned into a number of seconds; that answer just has no Retry-After header.
  • 0.1.0 (October 14, 2026): first release on RubyGems, with Ordainer::Client#decide, retries, fail_mode and an optional Rails guard.
  • 0.4.0 (November 16, 2026): on PyPI: pip install ordainer. Adds session leases: decide(lease=True) or decide(lease={"ttl_s": N}) sends lease, and decision.lease is a Lease (id, expires_at, running, limit) or None (a fail-open runs with no lease). New release(lease_id) and extend(lease_id, ttl) on Client and AsyncClient raise LeaseNotFoundError (404 not_found), LeaseInactiveError (409 lease_inactive) or LeaseError, and never change a decision. guard(fn, lease=...) releases the lease in a finally block. A decide without lease is unchanged. See Session leases.
  • 0.3.0 (November 12, 2026): on PyPI: pip install ordainer. Adds OrdainerAdmin and AsyncOrdainerAdmin (pip install "ordainer[async]" for the async client). The admin key is admin_key or ORDAINER_ADMIN_KEY. It covers customers, plans, test keys and the change log, including create_customer, create_key, get_key, delete_customer (revokes that customer’s keys; needs customers:write and keys:revoke) and list_changes. decide() is unchanged. See the Python quickstart and Admin API.
  • 0.2.0 (November 11, 2026): on PyPI: pip install ordainer. The agent key is read from ORDAINER_KEY first. If ORDAINER_API_KEY is also set, ORDAINER_KEY wins; 0.1.0 used ORDAINER_API_KEY in that case. Passing api_key still overrides both. Error messages reworded, with the same text as Node SDK 1.2.5; codes, statuses and fields unchanged. Match on error.code, not the message (see Errors). Retry-After on a quota or test-limit block is capped at 3600 seconds (one hour), like Node SDK 1.2.8; use resets_at in the JSON body for the real reset time. 0.1.1 was not published; its changes are in 0.2.0.
  • 0.1.0 (October 31, 2026): first release on PyPI, with Client and AsyncClient (the [async] extra), decide(), decide_or_raise(), guard(), deny_response(), retries and fail_mode. No framework middleware.
  • 0.1.0 (November 24, 2026): on Maven Central: ai.ordainer:ordainer:0.1.0. First release. Java 11 or later, no runtime dependencies. Ordainer.builder() and Ordainer.fromEnv() (reads ORDAINER_KEY, then ORDAINER_API_KEY, and ORDAINER_BASE_URL). decide, decideOrThrow, decideAsync, wrap, release, extend and DenyResponse. Fail-open or fail-closed (FailMode.OPEN by default), billing lapse, shadow mode (Mode.SHADOW / Mode.ENFORCE; leaving mode unset follows the console), sticky deny, idempotency keys, and retries with a 650 ms budget (300 ms per attempt, one retry by default). Retry-After on a quota or test-limit block is capped at 3600 seconds. warmUp() / warmUp(true) loads the decide path and sends GET /livez before the first call. Session leases: DecideOptions.builder().lease() or .lease(300); decision.lease() is a Lease or null. http:// is accepted only for localhost, 127.0.0.1 or [::1]. No servlet filter, Spring Boot integration or admin client. See the Java quickstart and Session leases.