Error shape
Apart from the unavailable-service404 and the reservation 402 below, every error has this shape:
Two responses use other bodies:
- If every AIsa Connect path returns
404with{"error":"api endpoint not found"}, AIsa Connect is temporarily unavailable in that environment. Contact developer@aisa.one. - A
402from the run’s balance reservation has the body{ "error": { "code": "insufficient_wallet_balance", "message": "...", "retryable": false } }, orinsufficient_api_key_balance. See Balance checks.
Error codes
A request with a method a path does not support returns
405 with an Allow header.
Troubleshooting
The run returns 409 connection_required, but the user connected
The run returns 409 connection_required, but the user connected
The run’s
externalUserId must match the connect call exactly, including case. List the end user’s connections with GET /connections?externalUserId=... and check app and status. If the hosted session ended failed or expired, no connection was created.The run returns 400 invalid_request: the app refused this action for the connected account
The run returns 400 invalid_request: the app refused this action for the connected account
The connected account does not have the permission the action needs. Google apps connect with read-only access in production, so their
write and destructive actions fail this way. For other apps, check what the user granted, and reconnect with an account that has the access.The hosted page says the link is incomplete or has expired
The hosted page says the link is incomplete or has expired
The
connectUrl lost the part after #, or the session is older than 30 minutes. Send the complete URL, and start a new session for each attempt.The user lands on AIsa's result page instead of my app
The user lands on AIsa's result page instead of my app
No
redirectUrl was sent, or it was refused when the session started. Check that it is HTTPS and on your allowlist. See Return to your app.redirectUrl is refused with 400 invalid_request
redirectUrl is refused with 400 invalid_request
It must be an absolute HTTPS URL without a fragment, and start with a prefix on your account’s allowlist. Send the prefix to developer@aisa.one to add it.
Credential connect returns 400 invalid_request with param credentials
Credential connect returns 400 invalid_request with param credentials
A required field is missing or a field name is not one the app takes. Check field names and spelling; see Connect with credentials.
Credential connect returns 400 connect_failed
Credential connect returns 400 connect_failed
The app rejected the values: a wrong token, a shop domain that is not a myshopify.com domain, or a WooCommerce address that is not HTTPS. Ask the user to check what they entered.
A write returned app_error or outcome_unknown
A write returned app_error or outcome_unknown
The change may already have happened. Check the result in the app before you retry. Use an
Idempotency-Key so a retry of the same request returns the stored answer instead of running again.My MCP client gets 401 or 403
My MCP client gets 401 or 403
401 means the sign-in or key is missing or invalid: sign in again, or check the Authorization header. 403 insufficient_scope means the token or key lacks a Connect scope. See Use with agents.Contact support
When you contact developer@aisa.one, include the approximate UTC time, the method and path, the status, the errorcode, and the runId when there is one. Never include API keys, end user credentials or the connectUrl secret.