Developers
Build on RevKeen with the REST API, CLI, official SDKs, webhooks, terminal flows, and MCP tools
Build on RevKeen
Use the RevKeen API, CLI, official SDKs, webhooks, terminal flows, and MCP tools to build billing, payments, subscriptions, terminal, and automation workflows.
API Reference · Quickstart · SDKs · CLI · MCP
Developer surfaces
API Reference
Interactive REST and webhook reference powered by Fumadocs OpenAPI.
Quickstart
Go from staging key to first API call and first webhook delivery.
SDKs
Official TypeScript, Go, and PHP libraries generated from the canonical OpenAPI specification.
CLI
Run common billing and operations workflows from your terminal.
MCP
Connect RevKeen tools to Claude, Cursor, VS Code, and other MCP-aware hosts.
Choose the right surface
| If you are building... | Start here | Why |
|---|---|---|
| Application code | SDKs | Typed clients with retries, pagination, and webhook helpers |
| Raw HTTP integrations | API Reference | Canonical request and response contract |
| Terminal workflows | CLI | Fast operator tasks and interactive prompts |
| AI agents | MCP | OAuth-scoped tools over remote MCP |
Common build paths
Accept payments
Create checkout sessions and payment links for hosted payment flows.
Manage subscriptions
Build recurring billing flows with products, prices, and subscription lifecycle events.
Handle webhooks
Verify signatures, process retries safely, and keep consumers idempotent.
Use the CLI
Manage customers, invoices, and billing from your terminal with the RevKeen CLI.
Use the SDKs
Start from the official TypeScript, Go, or PHP client instead of hand-rolling requests.
Build terminal flows
Run card-present device discovery, payment initiation, and terminal operations.
Build with MCP
Connect RevKeen tools to AI hosts over MCP as a separate integration surface.
Core concepts
- Authentication Use
x-api-keyon server-side REST requests. Use live keys in production andrk_sandbox_*keys in staging. Read authentication - Environments RevKeen separates production, staging, and mock so you can choose the right level of safety and realism for each task. Read environments
- Idempotency Add
Idempotency-Keyon write requests that must be safe to retry without creating duplicate financial state. See the API reference - Webhooks RevKeen pushes billing and payment events to your systems. Consumers should verify signatures and deduplicate by event ID. Read webhook guidance
- Errors and rate limits Handle
4xx,5xx, and429responses explicitly and log request IDs so you can trace issues quickly. See the API reference
Tools and downloads
OpenAPI document
Download the machine-readable contract used by fumadocs-openapi, SDK generation, and external tooling.
API Reference
Browse the canonical REST and webhook reference generated from the committed OpenAPI contract.
RevKeen CLI
Run operator workflows and resource actions from your terminal.
TypeScript SDK
Official Node.js and TypeScript client library.
Go SDK
Official Go client library for services and CLI tools.
PHP SDK
Official PHP client library for Laravel, Symfony, WordPress, and PHP apps.
MCP guide
Install and connect the RevKeen MCP server in supported AI hosts.
Production checklist
- Use staging first before sending any live traffic.
- Verify webhook signatures before processing events.
- Make webhook consumers idempotent and deduplicate by event ID.
- Rotate live secrets and keep keys server-side only.
- Monitor failures, retries, and rate-limit responses.