Pular para o conteúdo principal

Error Reference

All Alana API endpoints return errors in a consistent JSON envelope:
{
  "error": {
    "code": "AUTH_001",
    "message": "Missing API key",
    "request_id": "req_abc123"
  }
}
Use the request_id when contacting support to help us quickly locate your request in our logs.

Authentication Errors

CodeHTTPMessageDescriptionResolutionChannels
AUTH_001401Missing API keyThe request did not include an API key.Include your API key via X-API-Key header or Authorization: Bearer <key>.All
AUTH_002401Invalid API keyThe API key is not recognized or has been revoked.Verify your key in Settings → API Keys. Generate a new key if needed.All
AUTH_003403Insufficient permissionsThe key does not have the required scopes.Update API key permissions in Settings → API Keys.All
AUTH_004403Workspace access deniedThe key does not have access to this workspace.Contact your workspace owner to grant access.Canal 2

Rate Limit Errors

CodeHTTPMessageDescriptionResolutionChannels
RATE_001429Rate limit exceededPer-key rate limit exceeded.Check X-RateLimit-Reset header and slow down requests. Consider batching.All
RATE_002429Concurrent request limitToo many concurrent requests from same IP.Implement request queuing or distribute over longer windows.Canal 2
Rate limit headers are included on every response: X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset.

Search Errors

CodeHTTPMessageDescriptionResolutionChannels
SEARCH_001400Invalid query parametersOne or more search parameters failed validation.Review the error detail in the response body.Canal 2
SEARCH_002400Query too longThe query string exceeds 512 characters.Shorten the query.Canal 2

Feed Errors

CodeHTTPMessageDescriptionResolutionChannels
FEED_001400Unsupported platformThe platform is not supported or not configured.Check GET /api/mcp/feed for supported platforms.Canal 1, Canal 3
FEED_002404Feed not foundNo published catalog found for this workspace + platform.Publish a catalog in the Alana dashboard first.Canal 1
FEED_003422Feed validation failedFeed content failed platform-specific validation.Review validation errors. Use Optimization Score to fix data gaps.Canal 1

Catalog / Data Errors

CodeHTTPMessageDescriptionResolutionChannels
DATA_001404Product not foundNo product with the given ID in the workspace.Verify the product UUID. It may have been deleted.All
DATA_002404Catalog not foundNo catalog with the given ID in this workspace.Verify the catalog UUID in the dashboard.Canal 2, Canal 3
DATA_003409Duplicate entityAn entity with the same unique ID already exists.Use the update endpoint instead of create.Canal 2, Canal 3
DATA_004422Invalid product dataProduct data failed schema or business rule validation.Review the details array in the error response.Canal 3

MCP Errors

CodeHTTPMessageDescriptionResolutionChannels
MCP_001400Unknown toolThe MCP tool name does not exist or is filtered out.Use GET /api/v1/manifest to list available tools.Canal 3
MCP_002400Invalid tool parametersTool parameters failed schema validation.Check the tool’s input schema in the MCP manifest.Canal 3

Server Errors

CodeHTTPMessageDescriptionResolutionChannels
SERVER_001500Internal server errorUnexpected server error.Retry with exponential backoff. Contact support with request_id.All
SERVER_002503Service unavailableService temporarily unavailable.Check status.alana.shopping. Retry with backoff.All

NDJSON Error Lines

When using Accept: application/x-ndjson for streaming responses, errors mid-stream are emitted as a final NDJSON line:
{"error":"Upstream catalog service unavailable","code":"STREAM_ERROR"}
The stream closes after this line. Your client should check each line for an error key.
Last modified on March 17, 2026