AI
Anthropic (Claude)
target_app: "anthropic" · endpoint /v1/messaging/execute · Bring your own credentials
Setup
Create an API key at console.anthropic.com/settings/keys.
Credentials needed on your Connections page
Actions
chat_completion
Get a chat completion. Pass either prompt or your own messages array.
Request body:
{
"user_id": "...",
"action": "chat_completion",
"payload": { "prompt": "Explain photosynthesis briefly", "model": "claude-3-5-sonnet-20241022", "maxTokens": 1024 },
"target_app": "anthropic"
}provider_response.result shape:
{ "content": [{"type":"text","text":"..."}] }Anticipated errors & fixes
401 "authentication_error"
Cause: Key is wrong or was revoked.
Fix: Generate a new key at console.anthropic.com/settings/keys.
429 "rate_limit_error" (inside provider_response)
Cause: You've hit your own Anthropic account's usage tier limit — separate from eConnect's rate limits.
Fix: Wait, or request a higher usage tier from Anthropic.
401 "Unauthorized: Invalid API key."
Cause: Your eConnect Authorization header is missing, malformed, or the key was regenerated/revoked.
Fix: Copy your api_key fresh from the eConnect dashboard and confirm the header reads exactly "Authorization: Bearer <key>".
429 "Too many requests"
Cause: You've exceeded your plan's per-minute rate limit.
Fix: Wait a minute and retry, or upgrade your plan for a higher per-minute limit.
429 "Monthly API limit exceeded"
Cause: You've used your plan's full monthly request allowance.
Fix: Wait for your next billing cycle reset, or upgrade to a plan with a higher monthly limit.