# BotShield Documentation > BotShield proves a real human is present, and gets a verified human’s Confirm or Deny on an agent’s action, without telling you who the human is. BotShield answers two questions for your platform. Is a real human here right now? And did a verified human confirm this action an agent wants to take? The human answers on their own phone, in the BotShield app, with a passkey. You receive the result. You never receive the person’s identity. - [Introduction](https://docs.botshield.ai/introduction.md): BotShield proves a real human is present, and gets a verified human's Confirm or Deny on an agent's action, without telling you who the human is. - [Quick start](https://docs.botshield.ai/quick-start.md): Put a working Human Gate on your page and verify the result on your server. - [BotShield Gate](https://docs.botshield.ai/gate/overview.md): Put a gate in front of any action and get back one answer: a real human is here, or the check is unavailable. - [Place a gate](https://docs.botshield.ai/gate/place-a-gate.md): Create a site key, place a gate in the BotShield Console, activate it, and copy the embed snippet. - [Who may pass](https://docs.botshield.ai/gate/who-may-pass.md): A gate always asks. Its settings decide who it lets through: sign-up, account link, how often each person may pass, and how long their BotShield ID has been real. - [The link setting](https://docs.botshield.ai/gate/link.md): Decide whether a pass at a gate links the person's BotShield ID to your account for them: required, optional or never. - [Web component](https://docs.botshield.ai/gate/web-component.md): Reference for the botshield-verify element: attributes, events, methods, theming and framework notes. - [Widget versions](https://docs.botshield.ai/gate/widget-versions.md): Load the latest widget, pin a major or exact version, or test the prerelease, and read the version and deprecation headers. - [Verify on your server](https://docs.botshield.ai/gate/verify-on-your-server.md): Check a widget result on your backend, or run the whole verification server-to-server with your API key. - [Gates API](https://docs.botshield.ai/gate/gates-api.md): Place, activate, close and cancel gates from your server with your secret API key. - [Age Gate](https://docs.botshield.ai/gate/age-gate.md): Ask whether a verified human is over 13, 18 or 21, and get back only Over N Verified or Unavailable. - [Testing](https://docs.botshield.ai/gate/testing.md): Use Development keys and gates, the Console Sandbox and a real phone to test every path before you go live. - [Go to production](https://docs.botshield.ai/gate/go-to-production.md): Four steps unlock production: a verified domain, business verification, a Developer passkey and a plan. Free covers your first production gate. - [BotShield Actions](https://docs.botshield.ai/actions/overview.md): Key any act on your platform to a passkey tap, and get a signed token that names the act. - [Ask through an agent](https://docs.botshield.ai/actions/ask-through-an-agent.md): Put one BotShield Action in front of a person already linked to you, as a card in the BotShield app, and collect the signed token when they approve. - [Verified Accounts](https://docs.botshield.ai/verified-accounts/overview.md): Let a person link their account on your platform with their BotShield ID and a passkey, so you know a real human runs the account and since when, never who. - [Verified Accounts quickstart](https://docs.botshield.ai/verified-accounts/quickstart.md): Turn on Link with BotShield ID, add the widget after your sign-in, and verify the linked result on your server. - [Account lifecycle](https://docs.botshield.ai/verified-accounts/lifecycle.md): Every state a Verified Account can be in, what moves it between states, who can move it, and what your platform receives at each step. - [Server API](https://docs.botshield.ai/verified-accounts/server-api.md): Read a Verified Account's status, list your registry, and unlink an account from your server with your API key. - [Widget reference](https://docs.botshield.ai/verified-accounts/widget.md): Attributes, events, chip states and failure reasons of the botshield-verify element when it offers Link with BotShield ID. - [Staying in sync](https://docs.botshield.ai/verified-accounts/staying-in-sync.md): Know whether an account is linked right now: live in the page, pushed to your server, and confirmed on every fresh pass. - [Token and webhooks](https://docs.botshield.ai/verified-accounts/token-and-webhooks.md): The trust claims on the attestation token, and the webhook events that report a Verified Account, an unlink, and a declined request. - [Managing accounts](https://docs.botshield.ai/verified-accounts/manage-accounts.md): Use the Console registry to list, search, revoke and export Verified Accounts, and see what the person controls in the BotShield app. - [How it differs from OAuth](https://docs.botshield.ai/verified-accounts/not-oauth.md): Verified Accounts is not OAuth or a sign-in. It is a consent confirmation that ends in a signed statement your server verifies. - [Inline passkey in your app](https://docs.botshield.ai/native/inline-passkey.md): Run the person's BotShield passkey inside your own native app, against one verification request, without switching to the BotShield app. You learn only the outcome. - [Register your app for BotShield passkeys](https://docs.botshield.ai/native/register-your-app.md): Before your native app can run a BotShield passkey inline, botshield.ai has to name your app. Register your iOS app ID or Android package and signing fingerprint, and BotShield approves it. - [Open BotShield from your app](https://docs.botshield.ai/native/open-botshield.md): The hand-off that always works: send the person to BotShield with the request's link, on this phone or by QR code from another screen, and learn the result on your server. - [Agents Ask overview](https://docs.botshield.ai/agents-ask/overview.md): Have a verified human confirm or deny a consequential action your AI agent proposes, and get back a signed Proof of Resolution. - [Register an agent](https://docs.botshield.ai/agents-ask/register-an-agent.md): Register the requesting agent in the BotShield Console, choose the action categories it may propose, and copy its agent key. - [Link a human](https://docs.botshield.ai/agents-ask/link-a-human.md): Run the one-time link between your agent and a human, and store the opaque ID you will propose actions to. - [Propose an action](https://docs.botshield.ai/agents-ask/propose-an-action.md): Send an action to a linked human for a passkey Confirm or Deny, wait for the decision, and cancel a proposal you no longer need. - [Proof of Resolution](https://docs.botshield.ai/agents-ask/proof-of-resolution.md): Verify the signed JWT that records a human's Confirm or Deny before your code executes the action. - [Hosted MCP server](https://docs.botshield.ai/agents-ask/mcp-server.md): Connect an MCP-capable agent to Agents Ask with the hosted BotShield MCP server and your agent key. - [Webhooks overview](https://docs.botshield.ai/webhooks/overview.md): Receive BotShield Gate, Verified Accounts and Agents Ask events on your server, verify each delivery, and handle retries safely. - [Webhook events](https://docs.botshield.ai/webhooks/events.md): Reference for every webhook event BotShield sends, with example payloads, field tables, and the names that replaced retired event types. - [TypeScript SDK](https://docs.botshield.ai/sdk/typescript.md): Install and use botshield-sdk 2.2.1 to call the BotShield API from Node.js, Bun, or Deno with typed methods. - [Keys and environments](https://docs.botshield.ai/console/keys-and-environments.md): Work in Development and Production, verify your domain, create and manage site keys, API keys, and agent keys, and meet the requirements for going live. - [BotShield for Salesforce](https://docs.botshield.ai/integrations/salesforce/overview.md): Add proof of a real person to Salesforce — human verification at checkouts and forms, and human confirmation of agent and Flow actions. - [Install and setup](https://docs.botshield.ai/integrations/salesforce/install-and-setup.md): Install the BotShield managed package, assign permission sets, and connect your BotShield Console keys. - [Human Verification on Experience Cloud](https://docs.botshield.ai/integrations/salesforce/human-verification-experience-cloud.md): Gate an Experience Cloud checkout or form with the BotShield Verify widget and act on the pushed verification. - [Human Verification on Commerce Cloud](https://docs.botshield.ai/integrations/salesforce/human-verification-commerce-cloud.md): Gate a Composable Storefront or Storefront Next checkout with the BotShield SDK. - [Agents Ask in Agentforce](https://docs.botshield.ai/integrations/salesforce/agents-ask-agentforce.md): Require a real human to confirm sensitive agent actions, approved with a passkey on their own phone. - [Agents Ask in Flow](https://docs.botshield.ai/integrations/salesforce/flow-pause-resume.md): Pause a Flow for a human confirmation and resume on the pushed resolution using the packaged template Flow. - [BotShield MCP server](https://docs.botshield.ai/integrations/salesforce/mcp-server.md): Register the BotShield MCP server so Employee agents can reach the Agents Ask tools. - [agentgateway](https://docs.botshield.ai/integrations/agentgateway.md): Require a verified human behind sensitive MCP tool calls by checking BotShield-backed JWTs in your own agentgateway. - [Result states](https://docs.botshield.ai/concepts/result-states.md): Every BotShield Gate verification resolves to one of two result states, Verified or Unavailable, and your integration should be designed around both. - [BotShield ID](https://docs.botshield.ai/concepts/botshield-id.md): A BotShield ID is the person's own passkey-backed ID. It answers every gate, on every platform, without you ever learning who the person is. - [The privacy boundary](https://docs.botshield.ai/concepts/privacy-boundary.md): A field-by-field list of what BotShield sends to partners and what it never sends. - [Device security](https://docs.botshield.ai/concepts/device-security.md): A human can only confirm on a phone with a screen lock, because that is what lets the phone hold a passkey. A phone without one produces an Unavailable result. - [Alias window](https://docs.botshield.ai/changelog/alias-window.md): Names that change in BotShield 3.0, the period in which both the old and new names work, and what happens when the old names are retired on 15 January 2027. - [API overview](https://docs.botshield.ai/api-reference/overview.md): Base URL, credentials, the response envelope, and the list of operations in the BotShield API. - [Errors](https://docs.botshield.ai/api-reference/errors.md): Every error shape the BotShield API returns, the status codes for each operation, and a typed helper that unwraps the envelope. - [Rate limits](https://docs.botshield.ai/api-reference/rate-limits.md): Request limits for each key type, the HTTP 403 RATE_LIMITED response, and how to back off. - [Create a grant token](https://docs.botshield.ai/api-reference/botshield-gate/create-a-grant-token.md): Creates a short-lived grant token (5 minutes) from an API token or site key. Use this to get a token before creating verification links. - [Create a verification request](https://docs.botshield.ai/api-reference/botshield-gate/create-a-verification-request.md): Creates a verification request (deep link, web URL, QR code) for a gate. Requires an grant token from create-session. Returns 409 when a pending request already exists for the same gate and user. - [Get verification status](https://docs.botshield.ai/api-reference/botshield-gate/get-verification-status.md): Poll a verification request. Carries the signed attestation on completion and NO identity — no user_email, partner_user_id, auth_mode, or botshield_user_id ever cross this boundary. - [Verify a result token](https://docs.botshield.ai/api-reference/botshield-gate/verify-a-result-token.md): Validates a BotShield attestation JWT — the primary server-side check. Attestations are ES256-signed; the public key is published at /.well-known/jwks.json (kid in the header), so you may also verify locally with any JWT library. Claims are anonymous by construction: the token attests the event, nev… - [Revoke a pending verification](https://docs.botshield.ai/api-reference/botshield-gate/revoke-a-pending-verification.md): Soft-expires a pending verification for a gate and user. Use when create-verification-link returns 409. - [Revoke a grant token](https://docs.botshield.ai/api-reference/botshield-gate/revoke-a-grant-token.md) - [Place a gate](https://docs.botshield.ai/api-reference/gates-api/place-a-gate.md): Place a gate from your server. It is placed as a `draft`; send `activate: true` to make it live in the same call. In Production the Console's checks apply to activation — business verified, a verified domain, the plan's gate allowance — and if they block it the gate is still placed: the call succeed… - [Activate a gate](https://docs.botshield.ai/api-reference/gates-api/activate-a-gate.md): Make a draft gate live. Idempotent — an active gate is returned as-is. In Production the gate goes live only when the business is verified, a domain is verified and the plan's gate allowance has room. - [Close a gate](https://docs.botshield.ai/api-reference/gates-api/close-a-gate.md): Close a gate now: it stops issuing passes; passes already out still work until they run out; its log is kept. A closed gate cannot be reopened and its key is free to be placed again. Idempotent — closing a key with no open gate answers `{ closed: true, already_closed: true }`. - [Extend a gate's window](https://docs.botshield.ai/api-reference/gates-api/extend-a-gates-window.md): Move a placed gate's closing time later. Extend-only: never earlier, never on a gate that has already closed (a closed gate is never reopened), never on a gate with no end time. Saved as the next version of the gate's policy document; every other setting is unchanged. - [Cancel a gate](https://docs.botshield.ai/api-reference/gates-api/cancel-a-gate.md): Remove a gate nobody has passed through. A gate with any verification on it is refused with `gate_in_use` — close it instead, so its log is kept. - [Get a gate](https://docs.botshield.ai/api-reference/gates-api/get-a-gate.md): One draft or active gate by key in the key's environment: status, schedule state and its effective policy. - [List gates](https://docs.botshield.ai/api-reference/gates-api/list-gates.md): Your draft and active gates in the key's environment, newest first. Closed gates are not listed. - [Place a BotShield Action](https://docs.botshield.ai/api-reference/gates-api/place-a-botshield-action.md): Place a BotShield Action from your server — the same rules as the Console: live once placed, `actKey` unique per environment. Then send `act` (e.g. `watch` or `dibs:listing_4417`) on `create-verification-link`; the part before ':' must match `actKey`. - [List BotShield Actions](https://docs.botshield.ai/api-reference/gates-api/list-botshield-actions.md): Your BotShield Actions in the key's environment (live and off), newest first. - [Turn a BotShield Action on or off](https://docs.botshield.ai/api-reference/gates-api/turn-a-botshield-action-on-or-off.md): Turn an action on (`live`) or `off` by its key. Off takes effect at once — new requests are refused with `action_off`, and a tap in flight fails at completion. Idempotent. - [Ask a linked person to confirm an action](https://docs.botshield.ai/api-reference/gates-api/ask-a-linked-person-to-confirm-an-action.md): An agent asks, a person confirms. Puts ONE BotShield Action in front of a person already linked to your company, as a card in their BotShield app naming the agent that asked. The person approves with their passkey, which signs the act itself. Collect the action token with gates-api/actions/request-s… - [Where an action request stands](https://docs.botshield.ai/api-reference/gates-api/where-an-action-request-stands.md): Status of a request from gates-api/actions/request. `wait_seconds` (≤ 25) holds the call until the status changes. Once `approved`, `token` is the action token (claims.act) for `token_expires_in` seconds — check it with sdk/verify-token; it works once. After the collection window (10 minutes from th… - [Get a Verified Account status](https://docs.botshield.ai/api-reference/verified-accounts/get-a-verified-account-status.md): Is this account a Verified Account, and is the person's recent presence fresh? Returns exactly what the embed widget's live presence stream reports for the same account, so your server and the page always agree: `none` (not secured), `fresh` (secured, recent passkey presence until `fresh_until`), `s… - [List Verified Accounts](https://docs.botshield.ai/api-reference/verified-accounts/list-verified-accounts.md): Your Verified Accounts, newest first. Filter to one account with `platform_user_ref` (exact match) or by `status`. Rows carry the handle and binding facts — never your ref or anything that identifies the person. The environment is your API key's: a `bs_dev_…` key sees and changes development Verifie… - [Unlink (revoke) a Verified Account](https://docs.botshield.ai/api-reference/verified-accounts/unlink-revoke-a-verified-account.md): End a Verified Account from your server. Send `reason: 'credential_changed'` when a primary sign-in detail changed on your side (password reset, email change, …) — the Verified Accounts spec requires it; the person's app then shows the account as Unlinked with a Re-link action. Your company's agents… - [Propose an action for human confirmation](https://docs.botshield.ai/api-reference/agents-ask/propose-an-action-for-human-confirmation.md): Propose a human-presence-gated action for a BotShield user. The user receives the card in the BotShield app (Agents Ask), confirms or denies with their passkey, and BotShield delivers a signed Proof of Resolution JWT through `GET /agentlink/check-status` and the `agents_ask.resolution.*` webhooks. I… - [Check action proposal status](https://docs.botshield.ai/api-reference/agents-ask/check-action-proposal-status.md): Poll the state of a proposed action. Terminal states (approved/denied) carry the signed Proof of Resolution JWT (ES256; verify against /.well-known/jwks.json — the request_id is the JWT jti). Pass wait_seconds to long-poll: the call holds up to 25s and returns as soon as the card leaves queued. - [Cancel a queued action proposal](https://docs.botshield.ai/api-reference/agents-ask/cancel-a-queued-action-proposal.md): Stand down a queued action before the user responds. Idempotent: if the card is already terminal, returns its current status with already_resolved=true (TTL expiry produces no Resolution). ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.