Skip to main content

API Keys

Every HANA integration uses API keys scoped to your organization and environment. Keys follow a predictable format so you can identify them quickly in logs:
Never embed API keys in client-side code, mobile apps, or version control. Use environment variables or a secrets manager.

Key Permissions

Keys are scoped to one of three permission levels:

Creating Keys

Keys are provisioned during partner onboarding. To manage keys:
Response:

Key Rotation

HANA supports zero-downtime key rotation. When you rotate a key:
  1. A new key is issued immediately
  2. The old key continues working for 24 hours
  3. After 24 hours, the old key is automatically revoked
This gives your team time to update all services without disruption.

Request Authentication

Include your API key in the Authorization header on every request:

Webhook Verification

All outbound webhooks from HANA are signed with HMAC-SHA256 using your webhook secret. Always verify the signature before processing events.

Verification Flow

  1. HANA computes HMAC-SHA256(webhook_secret, raw_request_body)
  2. The signature is sent in the X-Hana-Signature header
  3. Your server recomputes the HMAC and compares
Always use timing-safe comparison functions to prevent timing attacks. Never use == for signature comparison.

Organization & Environment Isolation

Each organization gets fully isolated environments:
Data never crosses environment boundaries. Sandbox keys cannot access production data.

IP Allowlisting (Optional)

For organizations with strict network policies, restrict API access to specific IP ranges:
When enabled, requests from non-allowlisted IPs receive 403 Forbidden.

Next: Webhooks

Detailed guide to receiving and processing HANA events.