Get started
Introduction
Accept payments and create payment links with the CSwitch developer API.
The CSwitch developer API lets your server start a payment, share a payment link, and read your settlement balance. Customers pay on a hosted page. You hear about it through a signed webhook.
It's plain REST with JSON in and JSON out. You authenticate with a secret key. A key that starts with sk_test_ never moves real money. A key that starts with sk_live_ does, after live access is approved. Both keys use the same base URL.
How the docs are organised
- Get started covers keys, test mode and your first request.
- Guides walk through payments, links, webhooks and errors.
- API reference lists every endpoint with example requests and responses.
- AI tools shows how to build with the MCP server and the Composer.
TipStuck? Press the Ask AI button at the top of any page. The assistant answers from these docs and takes you to the exact passage it used.