BTCPay Server Apps API

App operations

GitHub OpenAPI

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v1/stores/{storeId}/apps/pos Create a point-of-sale app · Create a new Point of Sale app #
Ask an LLM
“How do I set up a virtual point-of-sale app for my store?”
“Can I pre-fill a POS app with items when I create it?”
Tell an agent
Create a point-of-sale app in store {storeId}.
Create a POS app in store {storeId} with items {template}.
PUT /api/v1/apps/pos/{appId} Update a point-of-sale app · Update a Point of Sale app #
Ask an LLM
“How do I change the items in a point-of-sale app?”
“Can I update a POS app's template after creating it?”
Tell an agent
Update point-of-sale app {appId} with items {template}.
Replace the POS app {appId} template.
GET /api/v1/apps/pos/{appId} Get a point-of-sale app · Get Point of Sale app data #
Ask an LLM
“What items are in a point-of-sale app?”
“Can I fetch the full POS app template by its ID?”
Tell an agent
Get point-of-sale app {appId}.
Show the items configured in POS app {appId}.
PUT /api/v1/apps/crowdfund/{appId} Update a crowdfund app · Update a Crowdfund app #
Ask an LLM
“How do I change the perks in a crowdfund app?”
“Does updating a crowdfunding app replace its whole perks template?”
Tell an agent
Update crowdfund app {appId} with perks {perksTemplate}.
Replace the perks template of crowdfunding app {appId}.
GET /api/v1/apps/crowdfund/{appId} Get a crowdfund app · Get crowdfund app data #
Ask an LLM
“What perks are in a crowdfund app?”
“Can I fetch a crowdfunding app's perks template?”
Tell an agent
Get crowdfund app {appId}.
Show the perks configured in crowdfunding app {appId}.
POST /api/v1/stores/{storeId}/apps/crowdfund Create a crowdfund app · Create a new Crowdfund app #
Ask an LLM
“How do I create a crowdfunding app for a store?”
“Can I set perks when creating a crowdfund app?”
Tell an agent
Create a crowdfund app in store {storeId}.
Create a crowdfunding app in store {storeId} with perks {perksTemplate}.
GET /api/v1/apps/{appId} Get basic data for any app · Get basic app data #
Ask an LLM
“What basic data do all app types share?”
“Can I get common app fields without knowing its type?”
Tell an agent
Get basic data for app {appId}.
Show the shared fields of app {appId}.
DELETE /api/v1/apps/{appId} Delete an app · Delete app #
Ask an LLM
“How do I delete a point-of-sale or crowdfund app?”
“Can I remove an app by its ID?”
Tell an agent destructive · confirm first
Delete app {appId}.
Remove the app with ID {appId}.
POST /api/v1/apps/{appId}/image Upload an image to an app item · Uploads an image for an app item #
Ask an LLM
“How do I add a picture to an item in a point-of-sale app?”
“Can I upload an image file for an app item?”
Tell an agent
Upload image {file} to app {appId}.
Add a picture for an item in app {appId}.
DELETE /api/v1/apps/{appId}/image/{fileId} Delete an app item image · Deletes the app item image #
Ask an LLM
“How do I remove a picture from an app item?”
“Can I delete an uploaded image file by its ID?”
Tell an agent destructive · confirm first
Delete image {fileId} from app {appId}.
Remove the item picture {fileId} in app {appId}.
GET /api/v1/apps/{appId}/sales Get sales statistics for an app · Get app sales statistics #
Ask an LLM
“How much has a point-of-sale app sold?”
“Can I see app sales for the last N days?”
Tell an agent
Get sales statistics for app {appId}.
Show app {appId} sales over the last {numberOfDays} days.
GET /api/v1/apps/{appId}/top-items Get an app's top-selling items · Get app top items statistics #
Ask an LLM
“Which items sell best in a point-of-sale app?”
“Can I list the top items of an app?”
Tell an agent
Get the top {count} items sold in app {appId}.
Show app {appId} top-selling items.
GET /api/v1/stores/{storeId}/apps List apps for a store · Get basic app data for all apps for a store #
Ask an LLM
“What apps exist in one of my stores?”
“Can I list all apps for a single store?”
Tell an agent
List all apps in store {storeId}.
Show every app for store {storeId}.
GET /api/v1/apps List all apps across all stores · Get basic app data for all apps for all stores for a user #
Ask an LLM
“Which apps do I have across all my stores?”
“Can I see every app I've created?”
Tell an agent
List all apps for my user.
Show every app across all stores.

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/btcpay:btcpay-apps-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

btcpay-apps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BTCPay Greenfield Apps API
  version: v1
  description: '# Introduction


    The BTCPay Server Greenfield API is a REST API. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.


    # Authentication


    You can authenticate either via Basic Auth or an API key. It''s recommended to use an API key for better security. You can create an API key in the BTCPay Server UI under `Account` -> `Manage Account` -> `API keys`. You can restrict the API key for one or multiple stores and for specific permissions. For testing purposes, you can give it the ''Unrestricted access'' permission. On production you should limit the permissions to the actual endpoints you use, you can see the required permission on the API docs at the top of each endpoint under `AUTHORIZATIONS`.


    If you want to simplify the process of creating API keys for your users, you can use the Authorization endpoint to predefine permissions and redirect your users to the BTCPay Server Authorization UI. You can find more information about this on the API Authorization Flow docs page.


    # Usage examples


    Use **Basic Auth** to read store information with cURL:

    ```bash

    BTCPAY_INSTANCE="https://mainnet.demo.btcpayserver.org"

    USER="MyTestUser@gmail.com"

    PASSWORD="notverysecurepassword"

    PERMISSION="btcpay.store.canmodifystoresettings"

    BODY="$(echo "{}" | jq --arg "a" "$PERMISSION" ''. + {permissions:[$a]}'')"


    API_KEY="$(curl -s \

    -H "Content-Type: application/json" \

    --user "$USER:$PASSWORD" \

    -X POST \

    -d "$BODY" \

    "$BTCPAY_INSTANCE/api/v1/api-keys" | jq -r .apiKey)"

    ```


    Use an **API key** to read store information with cURL:

    ```bash

    STORE_ID="yourStoreId"


    curl -s \

    -H "Content-Type: application/json" \

    -H "Authorization: token $API_KEY" \

    -X GET \

    "$BTCPAY_INSTANCE/api/v1/stores/$STORE_ID"

    ```


    You can find more examples on our docs for different programming languages:

    - cURL

    - Javascript/Node.Js

    - PHP'
  contact:
    name: BTCPay Server
    url: https://btcpayserver.org
  license:
    name: MIT
    url: https://github.com/btcpayserver/btcpayserver/blob/master/LICENSE
servers:
- url: /
  description: BTCPay Server Greenfield API
security:
- API_Key: []
  Basic: []
tags:


# --- truncated at 32 KB (36 KB total) ---
# Full source: https://artifacts.apis.io/btcpay/openapi/btcpay-apps-api-openapi.yml