Create and rotate API keys

Make a key, name it, limit it, and replace it safely when needed.
Guide
Beginner
2 min read
Updated Dec 5, 2026

An API key lets your code, scripts and integrations use Davix H2I as your account. All your keys share your account’s plan, allowance and tool permissions.

Create a key

  1. Open Dashboard > API Keys and choose Add API key.
  2. Give it a label so you remember what it is for.
  3. Optional: set when it expires (1 to 3650 days), a limit of its own, and for plans where AI has its own allowance, an AI limit. A key limit cannot be higher than your plan’s total.
  4. Copy the key straight away. It is shown only once. We keep only a protected form, so we cannot show it again.

The most keys you can have depends on your plan. When you reach it the API answers key_limit_reached.

Rotate a key

Rotating creates a new secret for the same key. The old secret stops working immediately, so update your code first or do it in one step. The new secret is also shown only once.

Revoke or delete a key

  • Revoke disables the key. This cannot be undone from your side. If it was your only key you will not be able to use the API until you make another one in Studio or the Dashboard.
  • Delete removes the key. Use it for keys that expired or that you no longer need. What the key used still counts in your usage history.

Keep keys safe

  • Send keys in a header only: X-Api-Key or Authorization: Bearer. A key in the address or body is refused. See Authenticate API requests.
  • Keep keys in environment variables or a secret store. Never put them in browser code or a public repository.
  • Use one key per app, so you can revoke one without breaking the others, and so you can see in Usage which one used what.
  • If a key leaks, rotate or revoke it at once.

From the API

Keys can also be managed with GET /v1/keys (list, metadata only), POST /v1/keys, POST /v1/keys/{id}/rotate, POST /v1/keys/{id}/revoke and DELETE /v1/keys/{id}. These need a personal customer key.

Checked against API contract 3.0.0.

Was this article helpful?
Thanks for your feedback.
Still stuck?

Talk to a human

Send us a message and we will get back to you quickly.