Skip to Content
Tara Docs

Keys and errors

How to sign in from code, what each status means, and how to retry safely.

Two ways to sign in

API keySigned-in session
Get itSettings → API keysSigning in on the web, tara login, or MCP's sign-in
Can callModels API, sandboxesEverything, including app actions
Pays withAdded credit onlyYour whole balance
LastsUntil you revoke itA short time; clients renew it

An API key is shown once, when you make it. Keep it out of code you share and out of the browser. Revoke one in Settings → API keys and it stops working at once. One key in the list, made by TaraSpace for its own chat, is locked and cannot be revoked.

The error body

{"error": {"message": "Insufficient credit", "type": "tara_error", "code": 402}}

message is a sentence meant for people. code repeats the HTTP status.

Status codes

StatusMeaningWhat to do
400The request is not rightRead the message and fix the input
401Not signed in, or the key is wrongCheck the key or sign in again
402Not enough creditAdd credit; API keys need added credit
403Not allowed this way, such as an API key on an app actionSign in instead
404Does not exist, or is not yours to seeCheck the id; TaraSpace never says which
428The action needs the person's yesAsk, then retry with tara-confirm: yes
429BusyWait a moment, then retry with the same idempotency key

Retrying safely

Send an idempotency-key (up to 100 characters) with any action that changes something. If the network fails and you send the same request with the same key again, the work is done once. Use a new key for new work.