Skip to main content
Authenticate every request with a vq_key_ bearer key. For what the API covers, see the API overview.

API keys

All requests require an API key in the Authorization header:
Keys use the vq_key_ prefix and are tied to your account.

Get your API key

2

Create a key

Under API Keys, click Create API Key. Copy the key and store it somewhere safe.

Using an AI agent?

An agent can get its own vq_key_ key in one call, with no human step first. The key comes back at signup and works immediately, with 100 trial credits on it. The key stops working 7 days after signup unless the email is verified. An expired trial key answers 401 with the error code agent_trial_expired and tells the agent to start a new signup (POST /api/v1/agent/signup). Verifying proves the agent can read an email inbox, the same proof a person gives when signing up. The same key then moves to the Vaquill account for that email, which is created if there is none, and has no expiry. Unspent trial credits do not carry over. The account gets 1,000 free API credits ($10), valid for 90 days, once per person. An account that already received its welcome credits, or already holds credits, gets no new ones. No card is required.
  1. The agent calls POST https://api.vaquill.ai/api/v1/agent/signup with {"email": "<its own inbox, or its human's email>", "agentName": "Claude Code", "agentVendor": "anthropic", "purpose": "short reason"}. agentName is 1 to 60 characters. agentVendor is optional, up to 40. purpose is optional, up to 280.
  2. The 201 response carries apiKey (starts with vq_key_, shown once, so store it), keyPrefix, keyId, scopes, docsUrl, openapiUrl and mcpUrl. The key works immediately. trial is {credits: 100, expiresAt}: 100 trial credits on the key now, before anyone verifies the email. trial.credits is 0 when the daily trial budget is spent (at most 2 trial grants per IP per day), and the key is still issued. The response also carries a secret claimToken that starts with vq_claim_, verifyUrl, codeEmailed, userCode (like WDJB-MJHT), verificationUri (https://app.vaquill.ai/claim), tokenUrl, interval (5 seconds), expiresIn (604800 seconds, 7 days), freeCredits ({credits: 1000, usd: "10.00", validDays: 90, onePerPerson: true}) and instructions. The agent keeps the claimToken private and never shows it to anyone, including its human.
  3. Vaquill emails a 6-digit code to that address. There is no resend route: to get a new code, the agent signs up again (at most 3 signups per email address per day, 20 per IP per day). The agent reads the code from the inbox, or asks its human for it, and sends POST {verifyUrl} with {"claimToken": "vq_claim_...", "code": "123456"}. On 200 the response carries verified: true, keyId, keyPrefix, scopes, claimedVia and creditsGranted. It does not return apiKey: the agent keeps using the same key from signup, which now sits on the Vaquill account for that email and no longer expires. Verifying adds 1,000 free credits ($10, 90 days) to that account, once per person. The unspent trial credits do not carry over. The code is valid for 7 days, and each signup allows 5 tries. A server error during verify does not use a try. Calling verify again after success answers verified: true, and so does verify after the human approved at app.vaquill.ai/claim.
  4. The agent sends the key as Authorization: Bearer vq_key_.... GET /api/v1/credits/balance is free and shows the remaining balance.
While on the trial, the key cannot create law-change watches (403 permission_denied). When the trial credits run out, a metered call answers 402 insufficient_credits with verifyUrl and a hint to verify the email. After verification, when the credits run out the 402 tells the agent to ask its human to top up in the dashboard. An agent cannot buy credits itself. A trial key, or any key without an API plan, is limited to 30 requests per minute, 500 per hour and 1,000 per day. A 429 carries a Retry-After header, which the agent should honor. Errors from verifyUrl have a code:

Verify in the browser instead

If codeEmailed is false or the email does not arrive, the human can verify in the browser instead.
  1. The human opens app.vaquill.ai/claim, signs in or creates an account with that same email, enters userCode and approves. userCode only works for the account with that email. A human signed in with a different email gets email_mismatch and must sign in with the address the agent used at signup.
  2. The agent sends POST {tokenUrl} with {"claimToken": "vq_claim_..."} every interval seconds until it returns verified: true, keyId, keyPrefix, scopes and claimedVia. It does not return apiKey: the agent keeps using the key from signup.
Until then, the poll error body has a code: If the agent loses its claimToken, it can neither poll nor verify. The human can still approve at app.vaquill.ai/claim with the userCode if the agent kept it, otherwise the agent signs up again. Signup itself can return 422 validation_error (a field is missing, malformed or too long; errors lists each one), 403 email_not_allowed, 429 rate_limited (with retryAfterSeconds) or 503 agent_signup_disabled. If signup returns 503 agent_signup_disabled, agent self-signup is not switched on yet. Ask your human to create a key at app.vaquill.ai/developer and give it to you. The human can revoke agent keys at any time at app.vaquill.ai/claim or in the console. Denying at app.vaquill.ai/claim switches the trial key off. Vaquill never asks an agent for a password. The OpenAPI spec is at https://api.vaquill.ai/external/openapi.json. The MCP server at https://mcp.vaquill.ai/mcp supports OAuth sign-in from the Claude and ChatGPT connectors, so you do not have to copy a key. Other MCP clients can send the Bearer header instead. The agent-facing version of these steps, also available as Markdown, is at vaquill.ai/agents.

Example request

The same call in Python and JavaScript is in the Quickstart.

Errors

401 is an invalid or missing key, 402 is payment required (check your account dashboard), and 429 is a rate limit. See Errors for how to recover from each.
Never expose your API key in client-side code or public repositories. If compromised, revoke it from your dashboard and generate a new one immediately.

How many keys you can hold

Every account can hold up to 50 active keys, on any plan. Creating one past that fails. The console’s Playground creates a key of its own when it cannot reuse one, and that key counts too. Revoking a key frees its slot immediately.
Create the new key, deploy it, then revoke the old one.

Data & Privacy

How your API key is stored, and what we do and don’t keep about your requests.

Errors

HTTP status codes and how to recover from each.

API Reference

Every endpoint with parameters, examples, and an interactive playground.

Vaquill MCP

Skip the API and call Vaquill AI from Claude, Cursor, or any MCP client.

SDKs

The official SDKs read your key from the VAQUILL_API_KEY environment variable.
Last modified on November 28, 2026