Documentation Index
Fetch the complete documentation index at: https://docs.khaime.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
The Khaime Partner API uses API key authentication via theX-API-Key header.
API Key Types
| Type | Prefix | Use |
|---|---|---|
| Sandbox | pk_sandbox_ | Testing — no real charges |
| Live | pk_live_ | Production — real payments |
Creating API Keys
- Log in to app.khaime.com
- Go to Settings → API & Integrations
- Click Create API Key
- Select environment (Sandbox or Live)
- Copy the key — it’s shown only once
Using Your Key
Include the key in every request:Key Management
Programmatic Key Management
| Method | Endpoint | Description |
|---|---|---|
| POST | /create-api-key | Create new API key |
| GET | /api-keys | List all keys |
| DELETE | /api-keys/:id | Revoke a key |
| PUT | /api-keys/:id/toggle-status | Enable/disable key |
| PUT | /api-keys/:id/webhook | Set webhook URL |
| POST | /api-keys/:id/regenerate-webhook-secret | Rotate webhook secret |
Security Best Practices
- Never expose API keys in client-side code or version control
- Use environment variables to store keys
- Use sandbox keys for development and testing
- Rotate keys periodically
- Revoke compromised keys immediately
