vq_key_ bearer key.
For what the API covers, see the API overview.
API keys
All requests require an API key in theAuthorization header:
vq_key_ prefix and are tied to your account.
Get your API key
1
Sign in
Go to app.vaquill.ai/settings.
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 ownvq_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.
- The agent calls
POST https://api.vaquill.ai/api/v1/agent/signupwith{"email": "<its own inbox, or its human's email>", "agentName": "Claude Code", "agentVendor": "anthropic", "purpose": "short reason"}.agentNameis 1 to 60 characters.agentVendoris optional, up to 40.purposeis optional, up to 280. - The 201 response carries
apiKey(starts withvq_key_, shown once, so store it),keyPrefix,keyId,scopes,docsUrl,openapiUrlandmcpUrl. The key works immediately.trialis{credits: 100, expiresAt}: 100 trial credits on the key now, before anyone verifies the email.trial.creditsis 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 secretclaimTokenthat starts withvq_claim_,verifyUrl,codeEmailed,userCode(likeWDJB-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}) andinstructions. The agent keeps theclaimTokenprivate and never shows it to anyone, including its human. - 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 carriesverified: true,keyId,keyPrefix,scopes,claimedViaandcreditsGranted. It does not returnapiKey: 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 answersverified: true, and so does verify after the human approved at app.vaquill.ai/claim. - The agent sends the key as
Authorization: Bearer vq_key_....GET /api/v1/credits/balanceis free and shows the remaining balance.
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
IfcodeEmailed is false or the email does not arrive, the human can verify in the browser instead.
- The human opens app.vaquill.ai/claim, signs in or creates an account with that same email, enters
userCodeand approves.userCodeonly works for the account with that email. A human signed in with a different email getsemail_mismatchand must sign in with the address the agent used at signup. - The agent sends
POST {tokenUrl}with{"claimToken": "vq_claim_..."}everyintervalseconds until it returnsverified: true,keyId,keyPrefix,scopesandclaimedVia. It does not returnapiKey: the agent keeps using the key from signup.
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
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.
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.Rotating a key
Rotating a key
Create the new key, deploy it, then revoke the old one.
Related
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.
