Skip to main content

Error shape

Apart from the unavailable-service 404 and the reservation 402 below, every error has this shape:
Two responses use other bodies:
  • If every AIsa Connect path returns 404 with {"error":"api endpoint not found"}, AIsa Connect is temporarily unavailable in that environment. Contact developer@aisa.one.
  • A 402 from the run’s balance reservation has the body { "error": { "code": "insufficient_wallet_balance", "message": "...", "retryable": false } }, or insufficient_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’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 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.
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.
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.
A required field is missing or a field name is not one the app takes. Check field names and spelling; see Connect with credentials.
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.
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.
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 error code, and the runId when there is one. Never include API keys, end user credentials or the connectUrl secret.