shopify.list_orders or gmail.search_threads. You discover actions in the catalog, then run them for an end user who has a connection to the app.
Examples on this page use AISA_BASE=https://api.aisa.one/apis/v1/connector and your key in AISA_API_KEY, as set up in the Quickstart.
Discover apps and actions
Reading the catalog is free.List apps
qis a case-insensitive substring match on the app’s key, name, aliases and category IDs and names.- There is no pagination. Raise
limit(up to 5000) to get more apps in one response. Alimitoutside 1–5000 returns400 invalid_requestwithparam: "limit". - To browse the catalog without code, use aisa.one/catalog/connectors or the Console.
List the actions of an app
data, without pagination. An unknown app returns 404 not_found.
Get one action
key, app, name, description, operationType (read, write or destructive), requiredScopes, inputSchema and outputSchema. An unknown action returns 404 not_found with param: "actionKey".
Read the input schema
inputSchema is a JSON Schema (draft 2020-12) object. Build input from it:
- Fill every property listed in
required. - Respect
type,enum, formats and thedescriptionof each property; the descriptions explain the app-specific values. - If the schema sets
"additionalProperties": false, send no other properties. Otherwise, properties the schema does not declare are passed through.
inputSchema and outputSchema; the Connect API adds no pagination of its own.
Operation types
The catalog lists every action an app offers, but the connected account decides what a run may do. For example, Google apps connect with read-only access in production, so their
write and destructive actions are refused by the app. See App permissions.
Run an action
The
Idempotency-Key header is optional; see Retries and idempotency. Unknown body fields are rejected with 400 invalid_request, and the body can be at most 1 MiB.
- Which connection. The response tells you which connection the run used. A
connectionIdof another end user returns404 not_found; one of another app returns400 invalid_request; one that is notactivereturns409 reconnect_required. - Input validation.
inputis checked against the action’sinputSchemabefore anything is sent. A mismatch returns422 validation_failed, withpathandmessagefor up to 10 problems inerror.details.errors. Aninputthat is not a JSON object also returns422 validation_failed. - The app can still refuse. If the app rejects the input, the run returns
422 validation_failed(“the app integration refused the input”). If the app finds nothing for the input, such as an unknown order ID, it returns404 not_foundwithparam: "input". If the connected account lacks the permission the action needs, it returns400 invalid_request. - No automatic retries. Each run is sent to the app once. AIsa never retries it for you.
- Run ID. Errors that happen after the run was sent carry
error.details.runId. Include it when you contact us.
Retries and idempotency
AIsa sends each run once and never retries it. To retry safely after a timeout or a dropped connection, send anIdempotency-Key header (1–191 characters) that is unique to the run:
- A retry with the same key and the same request, within 24 hours, gets the stored answer of the first run with the header
Idempotent-Replayed: true. This applies to runs that reached the app: successes,app_errorandoutcome_unknown. The run is not sent again and not charged again. - If the first run is still in progress, a retry returns
409 idempotency_conflict. Wait briefly and retry. - The same key with a different request returns
409 idempotency_conflictwithparam: "Idempotency-Key". - A run that never reached the app, for example because it was rate limited, the connection needed reconnecting or the service was unavailable, stores no answer. Retrying with the same key runs it.
- Keys are scoped to your API key.
Idempotency-Key, every request is a new run.
Typical run errors
The full list is in Errors & troubleshooting.
Billing
Only successful runs are charged, at USD 0.0003 per run, and theX-AISA-Customer-Cost-Micros-USD header reports the charge. Failed runs and everything else in AIsa Connect are free. See Pricing & limits.