Skip to main content
A credential is a time-bounded authorization issued to an agent on behalf of a specific user. Issuing a credential is the consent event that anchors the agent’s authority into the audit chain.

Dashboard

Developers → Agents → [agent name] → Issue credential After issuing, the plaintext bearer token is displayed once. Copy it immediately — HASP stores only the SHA-256 hash and cannot recover the plaintext.

API

Body

Fields

Response

The token field is returned only in this response. It is not stored and cannot be retrieved later.

Errors


Using the credential

Pass the bearer token in the Authorization header on every API call:
The gateway resolves the token to the credential, validates it is active and unexpired, and runs the pre-action authorization check before any tool invocation is executed.

Token format

The test-mode token is issued when your developer console is in test mode (toggleable in the developer dashboard). Test credentials do not authorize real tool invocations and are excluded from metered Agent Actions billing.

Listing credentials

Returns credentials for the agent, newest first. The token field is never returned in list or detail responses — only in the issuance response.

Query parameters


Retrieving a credential


Revoking a credential

Body (optional)

Revocation is immediate. The credential’s configured revocation_policy governs in-flight work (drain vs. kill). All delegation descendants are revoked simultaneously with kill policy regardless of their own configured policy.

Response

The response includes the root credential plus any cascade-revoked descendants.