Getting Started
Karma Common API
The Karma Common API is a centralized REST API for the Karma restaurant platform, providing secure access to core resources including inventory, orders, schedules, webhooks, and more.
Features
- API Key Authentication — Simple, long-lived access with bcrypt-hashed keys
- Comprehensive Access Control — Fine-grained permissions for all resources
- Rate Limiting — Automatic rate limiting based on your API key tier
- Webhook Support — Real-time event notifications via webhooks
- TypeScript SDK — Official SDK for JavaScript/TypeScript applications
Quick Start
Install the official TypeScript/JavaScript SDK:
Code
Code
View the package on npm: @karmalicious/karma-api-js.
API Environments
| Environment | Base URL |
|---|---|
| Production | https://common-api.karma.life |
| Beta | https://common-api.beta.karma.life |
| Development | https://common-api.development.karma.life |
Authentication
All endpoints require an API key in the X-API-Key header:
Code
API keys can be managed through the Karma Merchant Dashboard.
Rate Limiting
Rate limits are applied per API key based on your subscription tier:
- Standard — 1,000 requests/hour
- Premium — 10,000 requests/hour
- Unlimited — 100,000 requests/hour
Rate limit headers are included in all responses:
X-RateLimit-Limit— Total requests allowedX-RateLimit-Remaining— Requests remainingX-RateLimit-Reset— Unix timestamp when limit resets
Specification Downloads
- JSON —
/latest/openapi.json - YAML —
/latest/openapi.yaml - All versions —
/versions/manifest.json
Support
For API support, contact hello@karma.life.
Last modified on