# BTCPay Server AI integration on Definable

> BTCPay Server is a free, open-source, self-hosted Bitcoin payment processor that enables merchants to accept Bitcoin payments without intermediaries.

## What this connects

BTCPay Server is a free, open-source, self-hosted Bitcoin payment processor that enables merchants to accept Bitcoin payments without intermediaries.

Vendor: https://btcpayserver.org/

## Tools available

**16** tools available. First 12:

- `BTCPAY_SERVER_CREATE_PAYMENT_REQUEST` — Create Payment Request — Creates a new payment request in a BTCPay Server store. Payment requests are shareable pages where customers can create invoices to pay the requested amount. Unlike direct invoices, payment requests can be reused and allow customers to initiate payments themselves. Use this after obtaining a valid store ID from the create_store or get_store actions.
- `BTCPAY_SERVER_CREATE_STORE` — Create Store — Tool to create a new store in BTCPay Server. Use when you need to provision a new store before processing transactions.
- `BTCPAY_SERVER_CREATE_USER` — Create BTCPay Server User — Tool to create a new BTCPay Server user. Use when you need to register a new user programmatically as an administrator.
- `BTCPAY_SERVER_CREATE_WEBHOOK` — Register a Webhook — Registers a new webhook for a BTCPay store to receive real-time notifications when store events occur (e.g., invoice created, payment received, invoice settled). The webhook endpoint receives POST requests with event payloads signed using an HMAC secret for verification.
- `BTCPAY_SERVER_DELETE_API_KEY` — Delete API Key — Revoke a specific API key to immediately prevent its use for authentication. Use this tool when you need to disable an API key, such as when rotating credentials or when a key may have been compromised. The revocation takes effect immediately. Note: This action requires authentication with an API key that has user management permissions.
- `BTCPAY_SERVER_DELETE_PAYMENT_REQUEST` — Delete Payment Request — Deletes (archives) a specific payment request from a BTCPay Server store. Use this tool when you need to remove or archive an existing payment request. The payment request will be marked as archived and will no longer be active. This operation requires the 'btcpay.store.canmodifypaymentrequests' API permission. Note: This is a destructive operation - once deleted, the payment request cannot be restored.
- `BTCPAY_SERVER_DELETE_PAYOUT` — Cancel Store Payout — Cancels (deletes) a specific payout from a BTCPay Server store. Use this tool when you need to cancel a pending payout that is no longer needed. Only payouts in 'AwaitingApproval' or 'AwaitingPayment' state can be canceled. Payouts that have already been processed or completed cannot be canceled. Requires the 'btcpay.store.canmanagepayouts' permission on the API key.
- `BTCPAY_SERVER_GET_API_KEYS` — Get Current API Key — Retrieve information about the current API key. Returns details including the API key string, its label, and the permissions it has been granted. Use this to verify authentication is working and to check what permissions the current API key has. Note: BTCPay Server only provides access to the current API key, not all API keys associated with the user account. This tool is read-only; it cannot create, modify, or delete API keys.
- `BTCPAY_SERVER_GET_PAYMENT_REQUESTS` — Get Payment Requests — Tool to list all payment requests for a specific store. Use after confirming you have the store ID.
- `BTCPAY_SERVER_GET_SERVER_INFO` — Get BTCPay Server Info — Tool to retrieve information about the BTCPay Server instance. Use when needing server version, tor address, supported payment methods, and synchronization states.
- `BTCPAY_SERVER_GET_STORE` — Get Store — Retrieves complete configuration and settings for a specific BTCPay Server store by its ID. Use this tool when you need to: - Get current store settings and configuration - Check store properties like payment methods, currency, invoice expiration, etc. - Verify store exists and is accessible - Retrieve branding/display settings (logo, colors, checkout page settings) Returns comprehensive store data including payment settings, checkout configuration, and branding. Results are scoped to the authenticated user's permissions; insufficient permissions may return restricted or empty data rather than an explicit error.
- `BTCPAY_SERVER_GET_USER` — Get BTCPay Server User — Retrieve information about a BTCPay Server user by ID or email. Use 'me' as the id_or_email parameter to get the currently authenticated user's profile. Alternatively, provide a specific user ID (UUID) or email address to retrieve another user's information. Requires API key with 'btcpay.user.canviewprofile' permission scope. Note: Viewing other users' profiles requires server administrator privileges.

## Auth

Auth schemes: `API_KEY`.

## How agents use BTCPay Server

Inside a Definable workflow, BTCPay Server is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → BTCPay Server** — the Researcher (GPT-5.5) pulls context from BTCPay Server (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → BTCPay Server** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into BTCPay Server (create record, post message, draft email).
- **Designer / Engineer → Distributor → BTCPay Server** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via BTCPay Server (attach file, open PR comment, post status).

The Verifier checks every BTCPay Server call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- payment processing — https://definable.ai/apps/category/payment-processing/
- ecommerce — https://definable.ai/apps/category/ecommerce/

## Related

- HTML page: https://definable.ai/apps/btcpay_server/
- Same category (payment processing): https://definable.ai/apps/category/payment-processing/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
