LyricPatch Agent MPP payments API

The Agent MPP payments API from LyricPatch — 3 operation(s) for agent mpp payments.

GitHub OpenAPI

Operations 3

POST /v1/agent/sessions/mpp Guest Mpp #
POST /v1/agent/mpp/purchases Topup Mpp #
GET /v1/agent/mpp/payments/{payment_id} Status Mpp #

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/lyricpatch-com:lyricpatch-com-agent-mpp-payments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

lyricpatch-com-agent-mpp-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LyricPatch Agent MPP payments API
  version: 0.1.0
tags:
- name: Agent MPP payments
paths:
  /v1/agent/sessions/mpp:
    post:
      tags:
      - Agent MPP payments
      summary: Guest Mpp
      operationId: guest_mpp_v1_agent_sessions_mpp_post
      parameters:
      - name: X-LyricPatch-Session
        in: header
        required: true
        schema:
          type: string
          title: X-Lyricpatch-Session
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionConsent'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security: []
  /v1/agent/mpp/purchases:
    post:
      tags:
      - Agent MPP payments
      summary: Topup Mpp
      operationId: topup_mpp_v1_agent_mpp_purchases_post
      parameters:
      - name: Payment-Authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Payment-Authorization
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentTopupRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/agent/mpp/payments/{payment_id}:
    get:
      tags:
      - Agent MPP payments
      summary: Status Mpp
      operationId: status_mpp_v1_agent_mpp_payments__payment_id__get
      parameters:
      - name: payment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Payment Id
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SessionConsent:
      properties:
        legal_version:
          type: string
          maxLength: 50
          minLength: 1
          title: Legal Version
        adult_attested:
          type: boolean
          const: true
          title: Adult Attested
        terms_accepted:
          type: boolean
          const: true
          title: Terms Accepted
        rights_attested:
          type: boolean
          const: true
          title: Rights Attested
        spending_authorized:
          type: boolean
          const: true
          title: Spending Authorized
        media_processing_authorized:
          type: boolean
          const: true
          title: Media Processing Authorized
      additionalProperties: false
      type: object
      required:
      - legal_version
      - adult_attested
      - terms_accepted
      - rights_attested
      - spending_authorized
      - media_processing_authorized
      title: SessionConsent
    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
    AgentTopupRequest:
      properties:
        pack_id:
          type: string
          pattern: ^credits_(40|100|400|1000)$
          title: Pack Id
        idempotency_key:
          type: string
          maxLength: 128
          minLength: 8
          pattern: ^[A-Za-z0-9:_\-.]+$
          title: Idempotency Key
      additionalProperties: false
      type: object
      required:
      - pack_id
      - idempotency_key
      title: AgentTopupRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer