MemeStack Zaps API

Lightning zaps: an invoice for an image's creator, the payment proof, and your zap history.

GitHub OpenAPI

Operations 3

POST /v1/images/{id}/zap Request a zap invoice for an image (wallet → creator) #
POST /v1/zaps/redeem Prove a zap invoice was paid and record the zap #
GET /v1/me/zaps The calling user's zaps, received or sent #

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/memestack-ai:memestack-ai-zaps-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

memestack-ai-zaps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MemeStack Zaps API
  version: 1.0.0
  description: 'Visual search engine for memes, infographics, charts, and screenshots. Find images by meaning, the text inside them, or visual similarity. AI-captioned, OCR-indexed, Lightning-ranked. Two tiers: the Open API (/v1) needs no key — the read endpoints the website itself uses, rate-limited per IP address; the Search API (/v2, Tenor v2-compatible) takes an API key, free for 100 calls a day, then paid plans (card or Lightning): https://memestack.ai/developers.'
  contact:
    name: MemeStack
    url: https://memestack.ai
  termsOfService: https://memestack.ai/terms
servers:
- url: https://api.memestack.ai
tags:
- name: Zaps
  description: 'Lightning zaps: an invoice for an image''s creator, the payment proof, and your zap history.'
paths:
  /v1/images/{id}/zap:
    post:
      tags:
      - Zaps
      summary: Request a zap invoice for an image (wallet → creator)
      description: 'Mints a bolt11 invoice from the RECIPIENT''s own Lightning address — the uploader''s `lightning_address`, or the platform''s address for imported (system-uploaded) content — and answers a signed `ticket` the client redeems at POST /v1/zaps/redeem once the invoice is paid. MemeStack holds nothing: the sats go straight to the recipient''s wallet, there is no fee and no balance, and nothing is written until settlement is proven. `attested` says whether the recipient''s provider is one whose settlement proof counts (an unattested zap is recorded as a receipt for the creator and never enters the counters or rankings). Optional authentication: a logged-in payer is recorded on the zap and earns a streak; anonymous zaps are recorded under the anonymous system user. Rate limited 10/min/IP. Returns 404 while ZAPS_ENABLED is off.'
      security:
      - {}
      - BearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - amount_sats
              properties:
                amount_sats:
                  type: integer
                  minimum: 10
                  maximum: 100000
                  description: Whole sats, 10–100,000.
            example:
              amount_sats: 210
      responses:
        '200':
          description: 'The zap offer (Cache-Control: private, no-store). Pay `invoice` before `invoice_expires_at`, then redeem `ticket` before `ticket_expires_at` (15 minutes).'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ticket:
                    type: string
                    description: Signed zap ticket — the only thing the server remembers between offer and redeem.
                  invoice:
                    type: string
                    description: bolt11 invoice for exactly `amount_sats`, payable to the recipient.
                  amount_sats:
                    type: integer
                  invoice_expires_at:
                    type: string
                    format: date-time
                  ticket_expires_at:
                    type: string
                    format: date-time
                  verify_supported:
                    type: boolean
                    description: True when the recipient's provider implements LUD-21 verify, so the redeem can confirm payment without a preimage.
                  attested:
                    type: boolean
                  recipient:
                    type: object
                    properties:
                      kind:
                        type: string
                        enum:
                        - uploader
                        - platform
                      display_name:
                        type: string
                        nullable: true
                      source:
                        type: string
                        nullable: true
                        description: For a platform recipient, where the content was imported from (e.g. "Our World in Data").
                      domain:
                        type: string
                        description: The Lightning-address domain the invoice was minted from.
              example:
                ticket: v1:...
                invoice: lnbc2100n1p...
                amount_sats: 210
                invoice_expires_at: '2026-09-16T12:10:00Z'
                ticket_expires_at: '2026-09-16T12:15:00Z'
                verify_supported: true
                attested: true
                recipient:
                  kind: uploader
                  display_name: SatoshiUploads
                  source: null
                  domain: blink.sv
        '400':
          description: Amount not a whole number in 10–100,000 (INVALID_AMOUNT), or the caller owns the image (SELF_ZAP).
        '404':
          description: Image not found (IMAGE_NOT_FOUND), or zaps are disabled (ZAPS_ENABLED off).
        '409':
          description: The uploader has not set a Lightning address (NO_LIGHTNING_ADDRESS); body carries `uploader_display_name`. The uploader is nudged at most once per interval.
        '429':
          description: Rate limit exceeded (10/min/IP).
        '503':
          description: PAYMENT_UNAVAILABLE — the recipient's provider could not mint an invoice, or the ticket signer is unconfigured.
      operationId: postV1ImagesByIdZap
      x-operation-id-source: derived
  /v1/zaps/redeem:
    post:
      tags:
      - Zaps
      summary: Prove a zap invoice was paid and record the zap
      description: 'Records the zap the ticket describes once its invoice is proven paid: a supplied `preimage` (sha256 must equal the invoice''s payment hash) IS the proof; without one the server asks the recipient''s provider via LUD-21 verify at the URL the ticket carries (202 while unpaid — poll at ~2.5 s). A provider without verify needs the preimage (PROOF_REQUIRED). Idempotent on the payment hash: a replay answers `recorded: "already"` with the image''s live counters. An attested zap bumps the image''s `zap_count`/`zap_total_sats` and notifies the recipient; an unattested one is recorded as a receipt only. No authentication — the signed ticket is the credential. Never gated by ZAPS_ENABLED. Rate limited 60/min/IP.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - ticket
              properties:
                ticket:
                  type: string
                  description: The ticket from the /v1/images/{id}/zap offer.
                preimage:
                  type: string
                  pattern: ^[0-9a-f]{64}$
                  description: 'Optional payment preimage (64 hex). Required when the recipient''s provider has no LUD-21 verify (`verify_supported: false` on the offer).'
            example:
              ticket: v1:...
      responses:
        '200':
          description: Zap recorded (or already was).
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                    - true
                  recorded:
                    oneOf:
                    - type: boolean
                      enum:
                      - true
                    - type: string
                      enum:
                      - already
                  attested:
                    type: boolean
                  zap_count:
                    type: integer
                  zap_total_sats:
                    type: integer
              example:
                ok: true
                recorded: true
                attested: true
                zap_count: 43
                zap_total_sats: 1460
        '202':
          description: Invoice not paid yet (AWAITING_PAYMENT) — keep polling.
        '400':
          description: Ticket invalid or expired (TICKET_INVALID), the preimage does not hash to the invoice (PROOF_INVALID), or no preimage was supplied and the provider cannot confirm payments (PROOF_REQUIRED).
        '429':
          description: Rate limit exceeded (60/min/IP).
        '503':
          description: PAYMENT_UNAVAILABLE — the provider's verify call failed or answered a proof that does not match this invoice; retry shortly.
      operationId: postV1ZapsRedeem
      x-operation-id-source: derived
  /v1/me/zaps:
    get:
      tags:
      - Zaps
      summary: The calling user's zaps, received or sent
      description: Recorded zaps for the authenticated account — `received` (default) lists zaps on the caller's images with the payer as counterparty; `sent` lists the caller's own zaps with the recipient as counterparty. `total_received_sats` is the lifetime attested total received. Private, no-store.
      security:
      - BearerAuth: []
      parameters:
      - name: direction
        in: query
        schema:
          type: string
          enum:
          - received
          - sent
          default: received
      - name: limit
        in: query
        schema:
          type: integer
          default: 30
          maximum: 100
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
      responses:
        '200':
          description: Zap list.
          content:
            application/json:
              schema:
                type: object
                properties:
                  zaps:
                    type: array
                    items:
                      type: object
                      properties:
                        payment_hash:
                          type: string
                        image_id:
                          type: string
                          format: uuid
                        amount_sats:
                          type: integer
                        attested:
                          type: boolean
                        created_at:
                          type: string
                          format: date-time
                        counterparty_id:
                          type: string
                          format: uuid
                          description: The payer on a `received` listing, the recipient on a `sent` one.
                        counterparty_display_name:
                          type: string
                          nullable: true
                        counterparty_pubkey:
                          type: string
                          nullable: true
                        image_caption:
                          type: string
                          nullable: true
                  total_received_sats:
                    type: integer
              example:
                zaps:
                - payment_hash: 9f2c...
                  image_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                  amount_sats: 210
                  attested: true
                  created_at: '2026-09-16T12:06:00Z'
                  counterparty_id: b2c3d4e5-f6a7-8901-bcde-f12345678901
                  counterparty_display_name: PlebZapper
                  counterparty_pubkey: 02abc...
                  image_caption: Bitcoin halving cycle chart
                total_received_sats: 1460
        '400':
          description: '`direction` is not `received` or `sent` (INVALID_DIRECTION).'
        '401':
          description: Authentication required.
      operationId: getV1MeZaps
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by /auth/callback (LNURL) or /auth/email/verify. Also accepted as the httpOnly cookie __Secure-bii-token for same-origin browser requests.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: key
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
externalDocs:
  description: Full API documentation and developer guide
  url: https://memestack.ai/developers
x-service-info:
  categories:
  - media
  - search
  docs:
    homepage: https://memestack.ai/developers
    apiReference: https://memestack.ai/llms-full.txt
    llms: https://memestack.ai/llms.txt