Skip to main content

Ticket Issuer

Generate Tickets

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,
  },
});