Partner API
The Khaime Partner API lets you create payments, manage subscriptions, and query transaction data from your server.Base URL
Authentication
All requests require an API key in theX-API-Key header:
API keys start with
pk_sandbox_ (test) or pk_live_ (production).
Generate keys in your Khaime Dashboard.Rate Limits
| Limit | Value |
|---|---|
| Requests per hour | 1,000 per API key |
| Burst | 50 requests/second |
429 Too Many Requests. Rate limits reset hourly.
Response Format
All responses follow this structure:Success
Error
HTTP Status Codes
| Code | Meaning |
|---|---|
200 | Success |
201 | Created |
400 | Bad request — check parameters |
401 | Invalid or missing API key |
404 | Resource not found |
422 | Validation error |
429 | Rate limit exceeded |
500 | Server error |
Pagination
List endpoints support pagination via query parameters:| Parameter | Default | Max |
|---|---|---|
limit | 20 | 100 |
offset | 0 | — |
sort_by | created_at | Varies |
sort_order | DESC | ASC or DESC |
