Markdown
All docs

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.

Do not ship a key in browser or mobile app code, and do not commit it to a repository. Anyone who has the key can spend your balance.

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.

SettingWhat it doesWhen exceeded
Spending limitA cap per day, per month and in total. Days and months follow UTC, and money on hold countskey_budget_exceeded
ScopesOnly the listed data endpoints, or collection on listed platforms (written as answers. plus the platform ID)key_scope_denied
ExpiryThe key stops working at that timeunauthorized

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

ErrorMeaningWhat to do
unauthorizedNo key was sent, or it is invalid, disabled or expiredCheck the header, or use another key
account_suspendedThe account is suspendedContact us
key_scope_deniedThis key may not use that endpoint or platformUse another key, or widen its scopes in the console
key_budget_exceededThe key's spending limit does not cover the requestRaise the limit, or wait for the next day or month

None of these is charged. Every code is explained in Errors and charges.