Skip to main content
Send your API key in the Authorization header of every request:
Keys start with vt_. A key works as soon as you create it.

Get a key

  1. Sign up at querying.ai. New accounts start with 500 free credits.
  2. Open API keys in the dashboard and create a key.
  3. Copy the key when it is shown. Store it in an environment variable or a secrets manager.
An account can hold up to 5 active keys. Keep a slot available for a planned replacement, then keep both keys active while switching clients:
  1. Create an additional key in the dashboard with the required engine scope, daily credit limit and expiry.
  2. Update all callers and webhook signature verification to use the new key. Verify that requests succeed; retain the old signing key for deliveries from tasks submitted with it.
  3. Wait for batches created with the old key to finish, then revoke that key.
Dashboard rotation issues a new key with the same settings and revokes the old key immediately. Requests using the old key then return 401; clients must switch to the new key to resume.
Use the key only from server-side code. Anyone holding the key can spend your credits. Do not ship it in a browser app, a mobile app, or a public repository.

Key settings

Each key has optional settings you set in the dashboard: See Credits and limits for account-wide limits.

Which endpoints need a key

Errors

A missing, malformed, revoked or expired key returns 401. On task, batch and research endpoints the code is MISSING_API_KEY:
In a batch created with POST /v1/batches, items not yet started are rejected with API_KEY_INACTIVE if the batch’s key is revoked or expires while the batch runs. Full error reference: Errors.