agentry-com Payments API

The payments API from agentry-com — 6 operation(s) for payments.

Operations 6

GET /api/payments/tiers Get Tiers #
POST /api/payments/checkout Create Checkout Session #
POST /api/payments/webhook Stripe Webhook #
POST /api/payments/stripe/checkout Create Checkout Session #
GET /api/payments/stripe/status/{session_id} Check Stripe Payment #
GET /api/payments/options/{agent_id} Get Payment Options #

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-payments-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-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agentry Payments 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: Payments
paths:
  /api/payments/tiers:
    get:
      tags:
      - Payments
      summary: Get Tiers
      description: Return all available tiers.
      operationId: get_tiers_api_payments_tiers_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Tiers Api Payments Tiers Get
  /api/payments/checkout:
    post:
      tags:
      - Payments
      summary: Create Checkout Session
      description: Create a Stripe Checkout session for any tier.
      operationId: create_checkout_session_api_payments_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/routes__payments__CheckoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Create Checkout Session Api Payments Checkout Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/payments/webhook:
    post:
      tags:
      - Payments
      summary: Stripe Webhook
      description: Handle Stripe webhook events.
      operationId: stripe_webhook_api_payments_webhook_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Stripe Webhook Api Payments Webhook Post
  /api/payments/stripe/checkout:
    post:
      tags:
      - Payments
      summary: Create Checkout Session
      description: 'Create a Stripe Checkout Session for an agent payment.


        Returns a checkout URL that the client should redirect to.

        Stripe handles the entire payment flow including card collection.'
      operationId: create_checkout_session_api_payments_stripe_checkout_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/routes__stripe_payments__CheckoutRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/payments/stripe/status/{session_id}:
    get:
      tags:
      - Payments
      summary: Check Stripe Payment
      description: 'Check the status of a Stripe Checkout session.


        Queries Stripe directly for the authoritative payment status.

        Returns paid, unpaid, or expired.'
      operationId: check_stripe_payment_api_payments_stripe_status__session_id__get
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/payments/options/{agent_id}:
    get:
      tags:
      - Payments
      summary: Get Payment Options
      description: 'Return available payment methods for an agent.


        Lists both Lightning (Bitcoin) and Stripe (card) payment

        options with their respective API endpoints.'
      operationId: get_payment_options_api_payments_options__agent_id__get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentOptionsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    routes__payments__CheckoutRequest:
      properties:
        tier:
          type: string
          title: Tier
        customer_email:
          anyOf:
          - type: string
          - type: 'null'
          title: Customer Email
        success_url:
          type: string
          title: Success Url
          default: https://agentry.com/pricing/?payment=success
        cancel_url:
          type: string
          title: Cancel Url
          default: https://agentry.com/pricing/?payment=cancelled
      type: object
      required:
      - tier
      title: CheckoutRequest
      description: Request to create a Stripe checkout session.
    routes__stripe_payments__CheckoutRequest:
      properties:
        agent_id:
          type: string
          title: Agent Id
          description: Agent receiving the payment
        amount_cents:
          type: integer
          maximum: 10000000.0
          minimum: 50.0
          title: Amount Cents
          description: Amount in USD cents (min $0.50)
        description:
          type: string
          title: Description
          description: Payment description
          default: Agentry payment
        success_url:
          type: string
          title: Success Url
          description: URL to redirect after successful payment
          default: https://agentry.com/payments/success?session_id={CHECKOUT_SESSION_ID}
        cancel_url:
          type: string
          title: Cancel Url
          description: URL to redirect on cancellation
          default: https://agentry.com/payments/cancel
      type: object
      required:
      - agent_id
      - amount_cents
      title: CheckoutRequest
      description: Request to create a Stripe Checkout session.
    CheckoutResponse:
      properties:
        session_id:
          type: string
          title: Session Id
        checkout_url:
          type: string
          title: Checkout Url
        agent_id:
          type: string
          title: Agent Id
        amount_cents:
          type: integer
          title: Amount Cents
        currency:
          type: string
          title: Currency
          default: usd
        status:
          type: string
          title: Status
          default: pending
      type: object
      required:
      - session_id
      - checkout_url
      - agent_id
      - amount_cents
      title: CheckoutResponse
      description: Created Stripe Checkout session.
    PaymentOptionsResponse:
      properties:
        agent_id:
          type: string
          title: Agent Id
        methods:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Methods
      type: object
      required:
      - agent_id
      - methods
      title: PaymentOptionsResponse
      description: Available payment methods for an agent.
    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
    PaymentStatusResponse:
      properties:
        session_id:
          type: string
          title: Session Id
        status:
          type: string
          title: Status
          description: paid, unpaid, or expired
        agent_id:
          type: string
          title: Agent Id
          default: ''
        amount_cents:
          type: integer
          title: Amount Cents
          default: 0
        currency:
          type: string
          title: Currency
          default: usd
        payment_intent:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment Intent
      type: object
      required:
      - session_id
      - status
      title: PaymentStatusResponse
      description: Stripe payment status.