On this page POST /v1/agents POST /v1/agents/{id}/delegate POST /v1/approvals POST /v1/check GET /v1/events/stream GET /v1/meta GET /v1/openapi.json GET /v1/sessions/tree GET /v1/users/{id} Schemas 9 routes, from the server's OpenAPI document. Every refusal is an RFC 9457 problem; the codes are in the error catalog .
Create an agent for the subject, a person signed in with a human session
Auth App key, in the Tensile-App-Key header Status Meaning Body 201 The agent Agent400 The body isn't valid, or the library refused the call Problem401 The app key isn't live (app_key_invalid), or the subject's credential isn't valid (unauthenticated) Problem403 The library's rules refuse the subject Problem429 The app key sent too many requests; see Retry-After Problem503 The server can't reach its database Problem
Give the agent a token, delegated from the subject's session
Auth App key, in the Tensile-App-Key header Parameter In Type Description idrequired path string
Status Meaning Body 201 The token, shown once Delegated400 The body isn't valid, or the library refused the call Problem401 The app key isn't live (app_key_invalid), or the subject's credential isn't valid (unauthenticated) Problem403 The library's rules refuse the subject Problem429 The app key sent too many requests; see Retry-After Problem503 The server can't reach its database Problem
Ask the subject agent's human to approve an action; a pending request for the same action returns the same approval
Auth App key, in the Tensile-App-Key header Status Meaning Body 201 The approval ApprovalCreated400 The body isn't valid, or the library refused the call Problem401 The app key isn't live (app_key_invalid), or the subject's credential isn't valid (unauthenticated) Problem403 The library's rules refuse the subject Problem429 The app key sent too many requests; see Retry-After Problem503 The server can't reach its database Problem
Authenticate a credential, apply a need, and redeem or request an approval
With the header Prefer: wait=N (RFC 7240), N from 1 to 60, a retry that redeems a pending approval is held until the person approves or denies, the approval expires, or N seconds pass, and answers approval_pending when they pass. On the check that creates an approval, N caps the wait that the refusal's fix and wait_hint offer; without the header, the refusal offers no wait and tells the agent to retry after Retry-After. Each app key holds at most 256 waits on each replica; a retry over that answers at once. Give a waiting call a timeout of N seconds plus your usual timeout.
Auth App key, in the Tensile-App-Key header Parameter In Type Description Preferheader stringwait=N, from 1 to 60: how long to hold a retry for the person's decision, and the longest wait the refusal offers. Larger values count as 60.
Status Meaning Body 200 The server decided; the end user's outcome is in the body CheckResponse400 The body isn't valid Problem401 The app key is missing or isn't live: code app_key_invalid Problem429 The app key sent too many requests; see Retry-After Problem503 The server can't reach its database Problem
Server-sent events that tell the SDK when to clear its cache: ready once subscribed, then invalidate after each change to sessions, agents, or users. The stream ends when the server stops hearing every change; bypass the cache until it reconnects
Auth App key, in the Tensile-App-Key header Status Meaning Body 200 The stream: event ready, then event invalidate after each change, and a comment every 15 seconds string401 The app key is missing or isn't live: code app_key_invalid Problem429 The app key sent too many requests; see Retry-After Problem503 The server can't hear every change, or can't reach its database; bypass the cache and retry after Retry-After Problem
The server's version, the API versions it serves, and its preset
Auth App key, in the Tensile-App-Key header Status Meaning Body 200 The server's metadata Meta401 The app key is missing or isn't live: code app_key_invalid Problem429 The app key sent too many requests; see Retry-After Problem503 The server can't reach its database Problem
This document
Auth None Status Meaning Body 200 The OpenAPI document object
The subject's live sessions, as a tree of delegations
Auth App key, in the Tensile-App-Key header Parameter In Type Description Tensile-Subjectrequired header stringbase64url JSON in the shape of Credential
Status Meaning Body 200 The tree SessionTree401 The app key isn't live (app_key_invalid), or the subject's credential isn't valid (unauthenticated) Problem429 The app key sent too many requests; see Retry-After Problem503 The server can't reach its database Problem
What the server knows of a user: the address, whether it's verified, and live sessions and agents
Auth App key, in the Tensile-App-Key header Parameter In Type Description idrequired path string
Status Meaning Body 200 The user User401 The app key isn't live (app_key_invalid), or the subject's credential isn't valid (unauthenticated) Problem404 No session, agent, or address has this user ID: code not_found Problem429 The app key sent too many requests; see Retry-After Problem503 The server can't reach its database Problem
Field Type Description kindrequired stringresourcestringparamsmap of stringsummarystring
Field Type Description idrequired stringownerrequired stringnamerequired stringscopesrequired array of stringcreated_atrequired string (date-time)
Field Type Description idrequired stringstaterequired stringexpires_atrequired string (date-time)urlstring
What would turn a refused request into a success: the need that failed, and the factors that would meet it
Field Type Description actionrequired stringassurancerequired "none" or "recovering" or "single" or "multi"within_secondsintegerAt least 0. humanbooleanscopesarray of stringsatisfy_withrequired array of "passkey" or "totp" or "recovery" or "external" or "federated" or "password" or "bridged"beginstringapprovalChallengeApprovalpurposePurpose
The approval an agent can wait for instead of stopping at a refusal
Field Type Description idrequired stringurlstringsummaryrequired stringexpires_inrequired integerwait_hintstring
Field Type Description credentialrequired objectExactly one of cookie or authorization; dpop only with authorization credential.cookiestringThe __Host-session cookie's value credential.authorizationstringcredential.dpopstringrequestrequired objectrequest.methodstringrequest.urlrequired stringThe URL the client called on the app; its origin must be one of the server's origins, or the answer refuses with origin_not_allowed request.client_ipstringrequest.user_agentstringrequest.originstringThe browser's Origin header. Cookie requests get the library's cross-origin protection request.sec_fetch_sitestringThe browser's Sec-Fetch-Site header needNeedapprovalobjectWith id, redeems that approval for action; without id, an agent that misses the need gets human_required with an approval for action in challenge.approval approval.idstringapproval.actionrequired ActionresourcestringThe canonical URI of the resource server that checks; tokens bound to another resource are refused
Field Type Description allowedrequired booleanprincipalPrincipalproblemProblemset_cookiesrequired array of stringheadersrequired map of string
Field Type Description subjectrequired Credentialnamerequired stringscopesarray of string
One of cookie or authorization; dpop only with authorization
Field Type Description cookiestringauthorizationstringdpopstring
Field Type Description subjectrequired Credentialnamestringscopesarray of stringttl_secondsintegerAt least 0. key_thumbprintstring
The agent's token, shown once
Field Type Description tokenrequired stringsessionrequired stringagentrequired stringscopesrequired array of stringexpires_atrequired string (date-time)
Field Type Description versionrequired stringapi_versionsrequired array of stringpresetrequired string
Field Type Description actionrequired stringhumanbooleanassurance"none" or "recovering" or "single" or "multi"within_secondsintegerAt least 0. scopesarray of stringapproval_ttl_secondsintegerHow long an approval for this need lives: 60 to 86400 seconds, or 0 for 5 minutes. From 0 to 86400.
Field Type Description userrequired stringsessionrequired stringkindrequired "human" or "agent" or "pat" or "oauth"agentrequired string or nullscopesrequired array of stringassurancerequired stringmethodsrequired array of stringauthenticated_atrequired string (date-time)expires_atrequired string (date-time)
An RFC 9457 problem, as authhttp writes it and the browser client reads it
Field Type Description typerequired stringtitlerequired stringstatusrequired integercoderequired stringdetailstringWhat happened in this occurrence, for people fixstringretry_afterintegerSeconds to wait before retrying, for throttled At least 0. challengeChallenge
The purpose an elevation must be for
Field Type Description namerequired stringresourcestring
Field Type Description idrequired stringkindrequired "human" or "agent" or "pat" or "oauth"agentrequired string or nullparentrequired string or nullnamestringdevicestringscopesrequired array of stringcreated_atrequired string (date-time)last_seen_atrequired string (date-time)expires_atrequired string (date-time)childrenrequired array of Session
Field Type Description sessionsrequired array of Session
Field Type Description idrequired stringemailrequired string or nullemail_verifiedrequired booleanlive_sessionsrequired integeragentsrequired integerlast_seen_atrequired string (date-time) or null
Previous HTTP API Next Browser routes