> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agntor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ticket Issuer

> Issuing and validating audit tickets

# Ticket Issuer

## Generate Tickets

```ts theme={null}
import { TicketIssuer } from '@agntor/sdk';

const issuer = new TicketIssuer({
  signingKey: process.env.AGNTOR_SECRET_KEY!,
  issuer: 'agntor.com',
});

const ticket = issuer.generateTicket({
  agentId: 'agent-123',
  auditLevel: 'Gold',
  constraints: {
    max_op_value: 50,
    allowed_mcp_servers: ['finance-node'],
    kill_switch_active: false,
    requires_x402_payment: true,
  },
});
```
