Documentation Index
Fetch the complete documentation index at: https://docs2.zenskar.com/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All API requests go to:Authentication
Every request requires two headers:| Header | Required | Description |
|---|---|---|
x-api-key | Yes | Your API key |
organisation | Yes | Your organisation ID |
apiversion | No | API version (default: 20230501) |
Manage API Keys
Create, view, and revoke API keys from the dashboard.
API Versioning
The default API version is20230501. To pin to a specific version, pass it in the apiversion header:
Request Format
- All request bodies are JSON. Set
Content-Type: application/json. - All responses are JSON.
Errors
Zenskar uses standard HTTP status codes.| Status | Meaning |
|---|---|
200 | Success |
400 | Bad request. Check your request body or parameters. |
401 | Unauthorised. Missing or invalid x-api-key / organisation. |
404 | Not found |
422 | Validation error. The request body failed schema validation. |
500 | Server error |
422) return a body describing which fields failed:
Pagination
List endpoints support cursor-based pagination vialimit and offset query parameters:
Key Resources
Customers
Create and manage customer records
Contracts
Create contracts, manage phases and pricing
Invoices
Generate, approve, and void invoices
Payments
Record and retrieve payments
Usage Events
Ingest metered usage data
Billable Metrics
Define aggregates over usage events
Plans
Define reusable pricing plans
Products
Manage products and their pricing
Quotes
Create and accept quotes
Accounting
Journal entries and revenue recognition
