Authentication
Every request carries an API key. This page covers creating a key, sending it, and limiting what a single key can spend and call.
Create a key
Sign in and create one in the console. Keys start with ac_. The full key is shown once, when it is created; afterwards only its first characters are visible. If you lose it, replace it with a new one.
Signing up requires a verified email address. New accounts get $0.20 of trial credit; the rules are in Billing, holds and settlement.
Send the key
Put it in the Authorization header after Bearer. The key is only accepted in this header, so never put it in a URL.
curl https://api.askcrawl.com/v1/account \ -H "Authorization: Bearer $API_KEY"
This endpoint is free. It returns your balance, the amount on hold, this key's limits and the account's limits, which makes it a quick way to check that a key works.
Limit a key
Each key has its own settings. Give every product, client or AI assistant a separate key, so that a problem only means disabling one of them.
| Setting | What it does | When exceeded |
|---|---|---|
| Spending limit | A cap per day, per month and in total. Days and months follow UTC, and money on hold counts | key_budget_exceeded |
| Scopes | Only the listed data endpoints, or collection on listed platforms (written as answers. plus the platform ID) | key_scope_denied |
| Expiry | The key stops working at that time | unauthorized |
A key can be disabled, re-enabled, rotated or revoked for good at any time. If a key is revoked or expires after a job was submitted, answers that have not been sent yet are not collected and not charged.
OAuth for AI assistants
AI assistants that support OAuth do not need a key pasted in. After you add the MCP URL, the assistant opens a sign-in page where you pick a key with the MCP purpose or create one with a limit. See Connect an AI assistant.
- The access token the assistant receives starts with
aca_and stands for that key: balance, limits and scopes are all the key's. - Access tokens work only on the MCP URL, not on the REST API.
- Disable the key in the console and the assistant loses access.
When authentication fails
| Error | Meaning | What to do |
|---|---|---|
unauthorized | No key was sent, or it is invalid, disabled or expired | Check the header, or use another key |
account_suspended | The account is suspended | Contact us |
key_scope_denied | This key may not use that endpoint or platform | Use another key, or widen its scopes in the console |
key_budget_exceeded | The key's spending limit does not cover the request | Raise the limit, or wait for the next day or month |
None of these is charged. Every code is explained in Errors and charges.