agentry-com Lightning API

The lightning API from agentry-com — 3 operation(s) for lightning.

Operations 3

POST /api/payments/lightning/invoice Create Invoice #
GET /api/payments/lightning/status/{operation_id} Check Payment #
GET /api/payments/lightning/balance Get Balance #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/agentry-com:agentry-com-lightning-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

agentry-com-lightning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agentry Lightning API
  description: AI Agent Registry and Discovery service — browse, search, and register AI agents. Machine-readable via /llms.txt, /.well-known/agents.json, and /api/agents/public (A2A).
  version: 0.4.0
tags:
- name: lightning
paths:
  /api/payments/lightning/invoice:
    post:
      tags:
      - lightning
      summary: Create Invoice
      description: 'Create a Lightning invoice backed by the Trigo federation.


        Generates a real mainnet Lightning invoice via Fedimint.

        Payments are settled as ecash in the Agentry treasury.

        A 5% platform fee is applied to DVM transactions.'
      operationId: create_invoice_api_payments_lightning_invoice_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoiceRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/payments/lightning/status/{operation_id}:
    get:
      tags:
      - lightning
      summary: Check Payment
      description: 'Check if a Lightning invoice has been paid.


        Polls the Fedimint federation to see if the payment has settled.

        Once paid, ecash notes are minted in the Agentry treasury.'
      operationId: check_payment_api_payments_lightning_status__operation_id__get
      parameters:
      - name: operation_id
        in: path
        required: true
        schema:
          type: string
          title: Operation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentStatus'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/payments/lightning/balance:
    get:
      tags:
      - lightning
      summary: Get Balance
      description: 'Get the current Agentry treasury balance on the Trigo federation.


        Shows the total ecash held, broken down by note denominations.'
      operationId: get_balance_api_payments_lightning_balance_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    InvoiceRequest:
      properties:
        amount_sats:
          type: integer
          maximum: 1000000.0
          minimum: 1.0
          title: Amount Sats
          description: Amount in satoshis (1-1,000,000)
        description:
          type: string
          title: Description
          description: Invoice description
          default: Agentry payment
        dvm_pubkey:
          anyOf:
          - type: string
          - type: 'null'
          title: Dvm Pubkey
          description: If paying for a DVM request, the DVM's pubkey
      type: object
      required:
      - amount_sats
      title: InvoiceRequest
      description: Request to create a Lightning invoice.
    PaymentStatus:
      properties:
        operation_id:
          type: string
          title: Operation Id
        status:
          type: string
          title: Status
        amount_sats:
          type: integer
          title: Amount Sats
          default: 0
      type: object
      required:
      - operation_id
      - status
      title: PaymentStatus
      description: Status of a Lightning payment.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InvoiceResponse:
      properties:
        invoice:
          type: string
          title: Invoice
        amount_sats:
          type: integer
          title: Amount Sats
        operation_id:
          type: string
          title: Operation Id
        description:
          type: string
          title: Description
        platform_fee_sats:
          type: integer
          title: Platform Fee Sats
        expires_in_seconds:
          type: integer
          title: Expires In Seconds
          default: 3600
      type: object
      required:
      - invoice
      - amount_sats
      - operation_id
      - description
      - platform_fee_sats
      title: InvoiceResponse
      description: Lightning invoice for payment.