Skip to main content

Authentication

The Khaime Partner API uses API key authentication via the X-API-Key header.

API Key Types

Creating API Keys

  1. Log in to app.khaime.com
  2. Go to Settings → API & Integrations
  3. Click Create API Key
  4. Select environment (Sandbox or Live)
  5. Copy the key — it’s shown only once

Using Your Key

Include the key in every request:

Key Management

Programmatic Key Management

Key management endpoints require your user auth token (x-id-key header), not the API key itself. These are typically called from your dashboard, not from integration code.

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