---
title: Tokens
full: true
_openapi:
  toc:
    - depth: 2
      title: List API Tokens
      url: '#list-api-tokens'
    - depth: 2
      title: Create API Token
      url: '#create-api-token'
    - depth: 2
      title: Revoke API Token
      url: '#revoke-api-token'
  structuredData:
    headings:
      - content: List API Tokens
        id: list-api-tokens
      - content: Create API Token
        id: create-api-token
      - content: Revoke API Token
        id: revoke-api-token
    contents:
      - content: List all API tokens for the authenticated user.
        heading: list-api-tokens
      - content: Generate a new API token with specified spending limits.
        heading: create-api-token
      - content: Revoke an existing API token.
        heading: revoke-api-token
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

API token management

<APIPage document={"content/openapi/agnicpay.yaml"} operations={[{"path":"/api/tokens","method":"get"},{"path":"/api/generate-n8n-token","method":"post"},{"path":"/api/revoke-token","method":"post"}]} webhooks={[]} hasHead={true} />