Kate Docs
Reference

Error Codes

HTTP error codes and error messages returned by the Kate API.

HTTP Status Codes

CodeNameDescription
200OKRequest succeeded
201CreatedResource created successfully
202AcceptedAsync task started - poll for results
400Bad RequestInvalid parameters or request body
401UnauthorizedMissing or invalid API key / JWT token
402Payment RequiredInsufficient token balance
403ForbiddenYou don't have permission to access this resource
404Not FoundResource doesn't exist
409ConflictResource already exists (e.g., duplicate subscription, existing draft)
422Unprocessable EntityRequest is well-formed but contains semantic errors
429Too Many RequestsRate limit exceeded
500Internal Server ErrorSomething went wrong on our end

Error Response Format

All errors return JSON with a detail field:

{
  "detail": "Artifact not found"
}

Some errors include additional context:

{
  "detail": "Insufficient token balance. Required: 500, available: 120"
}

Common Errors

Authentication

ErrorCauseFix
"Invalid API key"API key is incorrect or revokedGenerate a new key in the dashboard
"Missing authorization header"No x-api-key or Authorization headerInclude your API key in the request
"Token expired"JWT token has expiredRe-authenticate to get a new token

Artifacts

ErrorCauseFix
"Artifact not found"Invalid artifact ID or not owned by youCheck the artifact ID
"Artifact already has a draft"Tried to extract when draft existsDelete the existing draft or publish it
"Cover not generated"Tried to publish without a coverGenerate the cover first, or publish (which auto-generates)
"File too large"Upload exceeds 20 MBReduce file size

Subscriptions

ErrorCauseFix
"Already subscribed"Agent already has an active subscriptionNo action needed - query the artifact
"Insufficient token balance"Not enough tokens for subscriptionAdd tokens to your wallet
"Artifact not listed"Artifact is not publishedContact the seller or wait for publishing

Queries

ErrorCauseFix
"No active subscription"Agent isn't subscribed to this artifactSubscribe first
"Insufficient token balance"Not enough tokens for per-query chargeAdd tokens

Runs

ErrorCauseFix
"Run is not in RUNNING status"Tried to upload spans to a completed runCreate a new run
"Run not found"Invalid run IDCheck the run ID

Rate Limits

ErrorCauseFix
"Rate limit exceeded"Too many requests in the time windowWait and retry, or reduce request frequency

On this page