Public API overview
The v1 public API exposes subscription lifecycle management, analytics, and audit access through Developer API keys. It is designed for scripts, agents, automation tools, and third-party integrations.Base path
Design choices
- API responses are JSON.
- Request and response field names use camelCase.
- Database-managed fields are read-only.
- The API key owner determines the user scope.
- Every subscription query is filtered by the authenticated API key owner.
nextPaymentDateis calculated by the server from billing period fields.statussupports soft lifecycle changes:active,paused, andcancelled.- Analytics endpoints report totals per currency and never convert across currencies.
- Audit endpoints expose write history for public API create, update, and delete operations.
- Write operations return AI-readable validation errors when a specific field can be corrected.
AI-ready artifacts
Use these files when connecting an AI assistant or agent framework:| Artifact | Use it for |
|---|---|
| OpenAPI schema | Endpoint schemas, examples, auth, and x-ai task metadata |
| AI tool schema | Function/tool definitions with risk levels and confirmation guidance |
| AI tool usage guide | Prompting, operation choice, and safety policy |
Default plan limits
| Plan | Active keys | Requests |
|---|---|---|
| Free | 1 | 60 requests per user per hour |
| Premium | 5 | 1000 requests per user per hour |
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/v1/subscriptions | List subscriptions |
GET | /api/v1/subscriptions/{id} | Get one subscription |
POST | /api/v1/subscriptions | Create a subscription |
PATCH | /api/v1/subscriptions/{id} | Update writable fields |
DELETE | /api/v1/subscriptions/{id} | Delete a subscription |
GET | /api/v1/analytics/summary | Spend summary by currency/category and upcoming renewals |
GET | /api/v1/analytics/duplicates | Duplicate subscription candidates |
GET | /api/v1/analytics/optimizations | Optimization candidates without invented savings |
GET | /api/v1/audit | Public API write audit log |