Key concepts
Agent definition
An agent is a persistent identity registered to your org. It represents a class of automated work — the same agent definition can be used across many credential issuances over time (one per session, one per shift, one per workflow run).Credential
A credential is a time-bounded, scoped authorization issued to a specific agent on behalf of a specific user. It contains:- The granted scope set — what the agent may do
- The delegating user — whose authority the agent acts under
- An expiry — when the authorization ends
- A revocation policy — what happens when revoked
hasp_agent_...) is the credential’s wire representation. HASP stores only its SHA-256 hash — the plaintext is shown once at issuance and never stored.
Scope grants
Scope grants follow the OAuth 2.1 Rich Authorization Requests (RFC 9396) shape: structured authorization objects, not free-form strings.Revocation
Credentials are revocable at any time. Two policies:| Policy | Behavior |
|---|---|
drain | In-flight work completes; no new invocations authorized after revocation |
kill | All in-flight invocations are cancelled immediately |
Delegation chains
When an agent needs to hand off work to another agent, it can issue a child credential using its own credential as authorization. The child credential’s authority is always bounded by the parent’s — an agent cannot delegate scopes it doesn’t hold, and cannot set an expiry beyond its own. The full delegation path is recorded on every credential and every audit event, tracing every action back to the root human authorization.Pre-action tool authorization
Every tool invocation by an agent passes through an authorization check in the AI Gateway before execution. The check evaluates the credential’s scope grants against the specific tool being called. A tool call outside scope returns403 TOOL_NOT_IN_SCOPE; it never silently proceeds.
This is the technical answer to the regulated-buyer question: “show me the chain of who authorized this agent to do this.”
Audit events
Every significant event in the agent lifecycle is integrity-chain-anchored:| Event | When |
|---|---|
agent.registered | Agent definition created |
agent.credential_issued | Credential issued to agent |
agent.credential_revoked | Credential revoked (including cascade) |
agent.tool_invocation_authorized | Tool call passed pre-action check |
agent.tool_invocation_rejected | Tool call failed pre-action check |
agent.delegation_handoff | Agent issued credential to another agent |
Getting started
- Register an agent — Dashboard or API
- Issue a credential — Dashboard or API
- Make API calls — Use the bearer token in
Authorization: Bearer hasp_agent_...