API Reference
The Maven API is a REST API that uses JSON request and response bodies. All endpoints are served over HTTPS.Base URL
Authentication
All endpoints require an API key passed as a Bearer token in theAuthorization header:
Endpoints
Voice Sessions
Endpoints for payments collected over phone calls:| Method | Endpoint | Description |
|---|---|---|
POST | /v1/sessions | Create a new voice payment session |
GET | /v1/sessions | Get session by caller phone |
GET | /v1/sessions/{session_id} | Get session by ID |
POST | /v1/sessions/{session_id}/cancel | Cancel a session |
Widget Sessions (Chat / Web)
Endpoints for payments collected via the embeddable widget. See the Chat Widget quickstart for the full integration flow.| Method | Endpoint | Description |
|---|---|---|
POST | /v1/widget-sessions | Create a new chat/web payment session |
GET | /v1/widget-sessions/{session_id} | Session details for the iframe (session_id is the credential) |
POST | /v1/widget-sessions/{session_id}/charge | Submit card data — called internally by the iframe, not by merchants |
Auth
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/auth/check | Verify API key validity |
Apps
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/projects | List organization apps |
Health
| Method | Endpoint | Description |
|---|---|---|
GET | /health | Service health check |
Rate Limits
All endpoints are rate-limited per IP address.Errors
The API uses standard HTTP status codes. Error responses include adetail field with a human-readable message.
