# Accept requests from authorised agents

A STACK Passport lets your service verify which agent is calling, which customer or organisation is responsible for it, and what the agent has permission to do.

Verified identity and authority let services accept agent-led work they could not safely accept from anonymous automation.

- **Banking:** Payments, account changes and credit applications made under a customer’s verified identity and authority.
- **Healthcare:** Appointments, prescriptions and care requests made under a patient’s verified identity or a provider’s authority.
- **Government:** Applications, filings and payments submitted under a citizen’s verified identity or a business’s authority.
- **Insurance:** Defined scope and verifiable outcomes enable insurers to underwrite agent work at scale.
- **Commerce:** Purchases, returns and refunds tied to a verified buyer and the authority given to their agent.
- **B2B:** Orders, provisioning and account changes made under a company’s verified authority.
- **Legal:** Filings and document exchanges linked to verified counsel and the client’s authority.

## How requests are checked

**Agent request arrives at your service**

**Agent** Which agent is calling. **Verified** Agent identity and signature are valid.

**Operator / customer** Which organisation owns the agent and is accountable. **Identified** The responsible operator is named.

**Delegation** Where this call sits in a chain of up to 4 narrowing hops. **Verified** The delegation chain is valid.

**Identity evidence** Proof of the human behind the agent, never their PII. **Verified** The required identity claim is present.

**Service scope** What the agent may do, bound to specific actions and resources. **In scope** The requested action and resource are allowed.

**Expiry** How long the permission lasts. **Valid** The permission has not expired.

**Request accepted**

Your service can act with confidence. The agent is authorised for this action, on behalf of this customer, right now.

- Proceed with the authorised action
- Log the decision and evidence
- Continue the workflow

**Out-of-scope request** Invalid signature, unexpected operator, invalid delegation, expired permission or an action outside the approved scope.

**Denied** The request is rejected. No action is taken.

**Request denied**

The agent is not authorised for this action, on behalf of this customer, right now.

## What verified agents make possible

**Reach customers through their agents** Customers can use your service through the agent they already work with, including for actions that would otherwise send them back to your app.

**Accept the right traffic** Accept authorised agents for the actions they may take and reject everything else before your service acts.

**Set requirements by action** A payment can require stronger identity and narrower authority than a balance check.

**Scales with your use cases** Use the same verification model for a single request, a long-running workflow or delegated agents working together.

**Built for real workflows** Human approval and live revocation can be required for the parts of a workflow that carry more risk.

**Keep a record you can use** Store the Passport and decision with the request for support, audit, disputes or an insurance claim.

## How to verify

### Check the signature offline

A Passport is a signed token. Your service checks the signature against STACK’s public keys, with no call to STACK for each request. Expect the issuer getstack.run and the audience stack:passport.

`https://api.getstack.run/v1/.well-known/jwks.json`

### Mind how long a Passport lives

A Passport is valid for 15 minutes by default and 60 at most. A signature check alone cannot see a revocation, so it accepts a revoked Passport until that Passport expires.

`Up to 4 delegation hops, each with the same or narrower access`

### Check it is still valid now

For an action that carries more risk, ask STACK. One call checks the signature, the expiry and whether the Passport has been revoked, and returns the claims. It needs no account with STACK.

`POST https://api.getstack.run/v1/passports/verify`

### Recognise an agent on your website

A website does not receive a Passport. STACK signs the requests an agent makes to a site, to the Web Bot Auth standard, and a public address states who an agent is and whether it is active.

`GET https://api.getstack.run/v1/agent-identity`

## Building the receiving end? Talk to us.

Passport verification is public and can run inside your service. If you are building one of these workflows, we would like to hear from you.

[HELLO@GETSTACK.RUN](/contact) [READ THE DOCS](/docs)
