Authorization header of every request:
vt_. A key works as soon as you create it.
Get a key
- Sign up at querying.ai. New accounts start with 500 free credits.
- Open API keys in the dashboard and create a key.
- Copy the key when it is shown. Store it in an environment variable or a secrets manager.
- Create an additional key in the dashboard with the required engine scope, daily credit limit and expiry.
- 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.
- Wait for batches created with the old key to finish, then revoke that key.
401; clients must switch to the new key to resume.
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 returns401. 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.