Agent CapabilitiesError Codes

Error Codes

All errors return JSON with error (string) and code (integer).

HTTP Status Codes

CodeMeaningWhen
200OKSuccessful request
400Bad RequestInvalid parameters (wrong enum value, invalid combination)
401UnauthorizedMissing/invalid Authorization: Bearer <key> header
403ForbiddenAPI key’s plan does not include this endpoint (reason: "plan_required")
404Not FoundResource does not exist
429Too Many RequestsOver the key’s per-minute limit (reason: "minute_limit"), or a Free account past its 10,000 calls this month (reason: "month_limit")
500Internal Server ErrorDatabase query failure or unexpected server error
503Service UnavailableAuthentication or another required backend is temporarily unavailable; /ready also uses 503 while dependencies are down

Successful identity no-match states

Not every absence is a 404. These Layer 2 identity requests return HTTP 200 when the input is syntactically accepted but no active association exists:

EndpointStable no-match body
/v1/wallet/:addr/identity{"wallet_address":"...","chain":"solana","primary":null,"aliases":[],"person":null,"tier":null,"reason":null,"conflict":false,"tags":[],"receipts":{},"denials":[]}
/v1/kol-wallets/:username{"username":"nobody_here","wallets":[],"person":null,"matches":[]}

The /kol-wallets body is an unknown handle’s. A known handle with no wallet on the asked chain or platform keeps its person, with empty wallets and matches; try chain=all.

Keep these distinct from a 400 invalid input and from a 500/503 dependency failure. Do not reinterpret either successful empty body as proof that a wallet is anonymous, safe, or not publicly associated outside the current registry.

Error Response Format

{"error": "Human-readable description", "code": 400}

Refusal bodies

Every refusal keeps error and code, and a 403 keeps required_tier and resolved_tier. reason tells the kinds apart. upgrade_url opens the plan that unlocks the call: checkout for a Free key, the API tab of the app for a key already on a paid plan.

403, the endpoint needs a higher plan (reason: "plan_required"). A Free key on a Layer 2 route:

{"code":403,"error":"Endpoint requires Layer 2 tier (resolved: Free)","reason":"plan_required","required_tier":"Layer 2","resolved_tier":"Free","upgrade_url":"https://conyr.ai/app/profile?tab=api&plan=L2&utm_source=api&utm_medium=refusal&utm_content=plan-l2"}

A Layer 2 key on a Layer 3 route gets the tab without plan=:

{"code":403,"error":"Endpoint requires Layer 3 tier (resolved: Layer 2)","reason":"plan_required","required_tier":"Layer 3","resolved_tier":"Layer 2","upgrade_url":"https://conyr.ai/app/profile?tab=api&utm_source=api&utm_medium=refusal&utm_content=plan-l3"}

429, over the per-minute limit (reason: "minute_limit"), with Retry-After: 6. Layer 3 and Enterprise keys get no upgrade_url:

{"code":429,"error":"rate limit exceeded","limit_per_minute":10,"reason":"minute_limit","retry_after_seconds":6,"upgrade_url":"https://conyr.ai/app/profile?tab=api&plan=L1&utm_source=api&utm_medium=refusal&utm_content=minute-limit"}

429, the Free plan’s monthly limit (reason: "month_limit"), with Retry-After set to the seconds until the 1st and the three X-Conyr-Month-* headers. From Dec 1, 2026:

{"code":429,"error":"Monthly free limit reached","limit":10000,"reason":"month_limit","resets_at":"2026-12-01T00:00:00Z","retry_after_seconds":1131712,"upgrade_url":"https://conyr.ai/app/profile?tab=api&plan=L1&utm_source=api&utm_medium=refusal&utm_content=month-limit","used":10004}

Tell the two 429s apart by reason: after minute_limit, wait retry_after_seconds; after month_limit, calls are answered again from resets_at.

On the MCP server

A refused tool call is a tool result with isError: true and a text line an agent can read out:

RefusalFieldsText line
The tool needs a higher planerror: "tier_insufficient", tool, requiredTier, yourTier, upgradeUrlTool 'query_wallet_xray' requires Layer 2 tier; your key is Free. Upgrade: https://conyr.ai/app/profile?tab=api&plan=L2&utm_source=mcp&utm_medium=refusal&utm_content=plan-l2
The Free plan’s monthly limiterror: "month_limit", tool, limit, used, resetsAt (RFC 3339 in UTC, whole seconds, e.g. 2026-12-01T00:00:00Z), upgradeUrlTool 'query_buyer_quality' did not run: this account has used 10004 of its 10000 free calls this month. They start again on 2026-12-01 (UTC). Upgrade: https://conyr.ai/app/profile?tab=api&plan=L1&utm_source=mcp&utm_medium=refusal&utm_content=month-limit

Connecting and listing tools are never stopped. The per-minute limit on the MCP server is the HTTP 429 above.

Specific 400 Errors

EndpointTriggerError Message
/v1/wallet/:addr/performanceInvalid window"Invalid window. Use 1d, 7d, or 30d"
/v1/wallet/:addr/positionsInvalid status"Invalid status. Use open, closed, or all"
/v1/kol-wallets/:usernameInvalid username grammar"Invalid username"
/v1/kol-wallets/:usernameInvalid platform"Invalid platform. Use x or telegram"
/v1/kol-wallets/:usernameInvalid chain"Invalid chain. Use solana, evm or all"
/v1/leaderboardInvalid window"Invalid window. Use 1d, 7d, or 30d"
/v1/leaderboardInvalid sort"Invalid sort. Use pnl_usd, roi, or win_rate"
/v1/token/:mint/ohlcvInvalid timeframe/view"Invalid timeframe/view combination. Use timeframe=1s|1m|5m|15m|1h and view=full|filtered"

WebSocket Errors

⚠️

Sent as {"op": "error", "message": "..."}. Do not close the connection.

TriggerMessage
Malformed JSON"Invalid message format"
Too many subscriptions"Subscription limit reached (max 50)"
Invalid channel name"Invalid channel '...'. Expected: token:<mint>:trades|ticks|ohlcv:<view>:<tf>|security|campaign|bundles|dump_alert or wallet:<address>:pnl|positions|labels|security|follow|entity"
Invalid OHLCV view"Invalid OHLCV view '...'. Use 'full' or 'filtered'"
Invalid OHLCV timeframe"Invalid OHLCV timeframe '...'. Use 1s, 1m, 5m, 15m, or 1h"
Empty key"Empty key in channel"
Invalid key chars"Invalid characters in key '...'"
Key too long"Key too long (max 64 chars)"