BTCPay Server Webhooks API

Webhook operations

GitHub OpenAPI
Business capability
Webhook & Event Subscription Management BC-4270.80

Operations 9

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

GET /api/v1/stores/{storeId}/webhooks List a store's webhooks · Get webhooks of a store #
Ask an LLM
“Which webhooks are configured for my store?”
“Can I see every callback URL set up for a store?”
Tell an agent
List the webhooks of store {storeId}.
Show all callback URLs configured for store {storeId}.
POST /api/v1/stores/{storeId}/webhooks Create a webhook for a store · Create a new webhook #
Ask an LLM
“How do I get notified by email when a customer pays?”
“Can I limit a new webhook to only certain events?”
Tell an agent
Create a webhook at {url} for store {storeId}.
Add a webhook to store {storeId} that only receives {authorizedEvents}.
GET /api/v1/webhooks/{webhookId} Get a webhook · Get a webhook #
Ask an LLM
“What URL and events does a particular webhook use?”
“Can I look up one webhook by its ID?”
Tell an agent
Show webhook {webhookId}.
Get the configuration of webhook {webhookId}.
PUT /api/v1/webhooks/{webhookId} Update a webhook · Update a webhook #
Ask an LLM
“How do I change the URL a webhook posts to?”
“Can I disable a webhook without deleting it?”
Tell an agent
Point webhook {webhookId} at {url}.
Set webhook {webhookId} to only receive {authorizedEvents}.
DELETE /api/v1/webhooks/{webhookId} Delete a webhook · Delete a webhook #
Ask an LLM
“How do I remove a webhook I no longer need?”
“Can I delete a webhook by its ID?”
Tell an agent destructive · confirm first
Delete webhook {webhookId}.
Remove the webhook with ID {webhookId}.
GET /api/v1/webhooks/{webhookId}/deliveries List a webhook's latest deliveries · Get latest deliveries #
Ask an LLM
“Did my webhook endpoint receive the latest payments?”
“Can I see the most recent deliveries to a webhook?”
Tell an agent
Show the latest {count} deliveries to webhook {webhookId}.
List recent deliveries for webhook {webhookId}.
GET /api/v1/webhooks/{webhookId}/deliveries/{deliveryId} Get a webhook delivery · Get a webhook delivery #
Ask an LLM
“Was a specific webhook delivery successful?”
“What status did my endpoint return for one webhook delivery?”
Tell an agent
Show delivery {deliveryId} of webhook {webhookId}.
Check the status of webhook {webhookId} delivery {deliveryId}.
GET /api/v1/webhooks/{webhookId}/deliveries/{deliveryId}/request Get a webhook delivery's request body · Get the delivery's request #
Ask an LLM
“What JSON body did my endpoint receive for a webhook delivery?”
“Can I see the request sent to my webhook callback?”
Tell an agent
Show the request body sent for delivery {deliveryId} of webhook {webhookId}.
Get the JSON payload my endpoint received in webhook {webhookId} delivery {deliveryId}.
POST /api/v1/webhooks/{webhookId}/deliveries/{deliveryId}/redeliver Redeliver a webhook delivery · Redeliver the delivery #
Ask an LLM
“How do I resend a failed webhook delivery?”
“Can I retry a webhook that my endpoint didn't receive?”
Tell an agent
Redeliver delivery {deliveryId} of webhook {webhookId}.
Retry the failed webhook {webhookId} delivery {deliveryId}.

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-webhooks-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-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BTCPay Greenfield Webhooks 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 (61 KB total) ---
# Full source: https://artifacts.apis.io/btcpay/openapi/btcpay-webhooks-api-openapi.yml