# SatsRail Developers > REST API reference and integration guides for SatsRail — non-custodial Bitcoin payment infrastructure, on-chain or Lightning. - The API is served from `https://app.satsrail.com`. Merchant endpoints are under `/api/v1/m/` and take a secret key (`sk_live_…`, or `sk_test_…` in test mode); public endpoints are under `/api/v1/pub/` and take a publishable key. - The hosted MCP server for AI agents is `https://satsrail.com/mcp`. - The OpenAPI spec is at https://www.satsrail.com/developers/data/satsrail-openapi.json. - Every page is also Markdown: at the page's URL plus `index.md`, or at the page's own URL when the request says `Accept: text/markdown`. - Every page in one file: https://www.satsrail.com/developers/llms-full.txt - For the product itself, see https://www.satsrail.com/llms.txt. ## Docs - [API reference](https://www.satsrail.com/developers/index.md): SatsRail REST API documentation. Non-custodial Bitcoin payment infrastructure, on-chain or Lightning. - [AI agents](https://www.satsrail.com/developers/guides/ai-agents/index.md): Connect an AI assistant to a SatsRail merchant account over MCP: the hosted server, keys and OAuth, the payment tools, a payment step by step, and payment links for agents. - [Hosted checkout](https://www.satsrail.com/developers/guides/checkout-flow/index.md): SatsRail's hosted payment page: the ways in (API, payment link, embed button), what happens from session to paid order, the statuses, how you learn it was paid, the conversion fee, and what the customer sees. - [Embed button](https://www.satsrail.com/developers/guides/embed/index.md): Add a Bitcoin pay button to any web page with one script tag: for a product, or for an amount your page names. No backend needed. - [Your menu on your website](https://www.satsrail.com/developers/guides/embed/menu/index.md): Put your whole menu on your own website with one script tag: a cart, pickup orders priced by SatsRail and paid in bitcoin, your Ubicada page's look, and only the websites you allow. - [Integrate your POS](https://www.satsrail.com/developers/guides/pos/index.md): Take Lightning payments in your own point of sale: get a key, read the catalog, ring up a sale, show the invoice, confirm the payment, and test it all without money. - [Quickstart](https://www.satsrail.com/developers/guides/quickstart/index.md): From a new account to a paid test order in three API calls: get a test key, create an order with a Lightning invoice, pay it in test mode and check its status. Every example runs as written with curl. - [Testing](https://www.satsrail.com/developers/guides/testing/index.md): Build and test an integration without money: test keys and test data, paying a test invoice with simulate_payment or ending it with simulate_expiry, a test hosted checkout, and what test mode leaves out. - [Webhooks](https://www.satsrail.com/developers/guides/webhooks/index.md): Receive SatsRail events at your server: the events, the payload, verifying the signature with its timestamp, retries and idempotency, test and live mode, and an endpoint switched off.