APIZDocs

APIZ guide

Understand APIZ Credential Boundaries

An agent needs permission to use a service, but it usually does not need the service's original credential. APIZ separates those two concerns.

agent or sandbox              APIZ                         upstream service
----------------              ----                         ----------------
Temporary Credential  --->    validate request
                              apply Policy
                              resolve protected secret
                              replace APIZ credential ---> upstream credential
                       <---   redacted result/evidence <--- response

The Three Credentials You May Encounter

CredentialWhat it authenticatesWhere it belongsTypical lifetime
Upstream credentialAPIZ to GitHub, Notion, Cloudflare, or another serviceEncrypted API Instance secret; resolved only inside APIZUntil rotated or revoked at the provider
Temporary CredentialAn agent or tool to an APIZ Client BindingThe agent runtime that needs the bounded accessShort-lived and revocable
APIZ login sessionA person or administrator to the Control PlaneThe user's CLI or browser sessionInteractive session lifetime

The CLI contract calls a Temporary Credential a Client Access Credential. The Web Console uses the friendlier Temporary Credential name. They are the same APIZ-scoped credential, not a copy of the upstream secret.

What Happens On Every Request

  1. APIZ validates the Temporary Credential and resolves exactly one Client Binding.
  2. The adapter recognizes and validates the intended upstream operation.
  3. APIZ evaluates attached Client Binding Policies, then attached API Instance Policies. An evaluation error denies the request.
  4. The Secret Broker releases the active upstream credential only for the current allowed decision.
  5. APIZ removes APIZ-only authentication and applies the upstream credential inside the protected Data Plane path.
  6. APIZ records required authorization evidence with credential values and other sensitive fields redacted.

No optional Policy is required for credential separation. Without a Policy, APIZ still requires a valid binding, validates the request through the adapter, overwrites credentials, protects secret resolution, and records redacted evidence.

The Objects Behind The Boundary

API Instance ── stores one configured upstream connection and its secret

      │ selected by
Client Binding ── gives one Client a named route to that API Instance

      │ belongs to
Client ── represents the agent, sandbox, application, or developer tool

      └── issues one or more Temporary Credentials in a Credential Group

Policy (optional) ── attaches to a Client Binding or API Instance

A Credential Group is the lifecycle record for one issuance operation. Revoking the group revokes every still-active credential issued together.

Safe Handling Rules

  • Enter an upstream credential only while creating or rotating an API Instance.
  • Never paste an upstream credential into Policy source, fixtures, agent prompts, logs, or Setup Manifest files.
  • Treat a Setup Manifest as sensitive: it contains APIZ-issued plaintext credentials and is shown intentionally at issuance time.
  • Give each agent the shortest practical credential lifetime and only the bindings it needs.
  • Revoke a Credential Group when a task ends early or its runtime may be compromised.
  • Use Access Logs and Audit Events for investigation; do not add secret values to labels or metadata to make requests easier to find.

Next: connect an API or give an agent access.