Skip to main content
Deepest control API endpoints accept Bearer authentication from two distinct identities: an Agent API Key for automated operations, or an authenticated Human session from the Web Console. They are not interchangeable. Passing authentication checks identity only—every operation still verifies resource ownership, active entitlement, and capacity.

Choose the right credential

Human-only operations

Only a current Human session (used directly in the Deepest Console or via an authorized Human-session client) can invoke these operations:
  • agentKeys.list, agentKeys.create, agentKeys.revoke
  • invites.redeem
  • computer(id).assistance.begin, computer(id).assistance.touch, computer(id).assistance.complete
An Agent can call assistance.request() and assistance.get(), and must never obtain or replay a human session token to impersonate a user.

Authenticate with an Agent API Key

Run from a trusted server or local process with @deepest/sdk installed:
Human-session SDK mode: For interactive browser apps operating under a live Human sign-in session, the SDK constructor accepts getSessionToken: async () => ... instead of apiKey. The SDK calls getSessionToken per request without caching tokens. Supply exactly one of apiKey or getSessionToken—passing both or neither throws a client-side TypeError. Never ask users to copy session tokens into a terminal or Agent prompt.

Keep control and runtime credentials separate

Control vs. Runtime origins: Control credentials (Agent API Keys and Human session tokens) belong strictly on the control origin (https://console.deepest.dev or your configured control host). Never attach Authorization headers or control cookies to Preview, Share, or Viewer runtime URLs, and never follow redirects on authenticated control requests—the SDK sets redirect: "error" and credentials: "omit" by default.

Diagnose authentication failures

Signing out of the Console does not revoke issued Agent Keys, and revoking an Agent Key does not delete or stop existing Computers. See Agent Keys and Isolation and credentials.