AISA_BASE=https://api.aisa.one/apis/v1/connector and your key in AISA_API_KEY, as set up in the Quickstart.
List connections
- Without filters, the list has every connection of your AIsa account, across all end users.
externalUserIdis matched exactly, including case.- Deleted (
disconnected) connections are not listed. - The list is not paginated: it returns all matching connections in one response.
Read one connection
Delete a connection
"status": "disconnected". After that, reading it returns 404 not_found, and deleting it again also returns 404 not_found.
Deleting removes the authorized account from AIsa’s app integration, so AIsa can no longer act with it. A run that names the deleted connection in connectionId returns 404 not_found. A run without connectionId uses another active connection of that end user for the app, or fails with 409 connection_required when there is none.
Connection status
A connection becomes
needs_reconnect when the app refuses its authorization during a run (the run fails with 409 reconnect_required), or when the user signs in to a different account while reconnecting. If the app reports that the account no longer exists, AIsa marks the connection disconnected and the run fails with 409 connection_required.
AIsa updates a connection’s status only when it uses the connection: during a run, a reconnect or a delete. There is no background check, so GET /connections/{connectionId} shows the last known status. To confirm that a connection still works, run a read action with it.
Reconnect
Reconnectoauth2 connections through the hosted page with connectionId, so the connection keeps its ID. See Reconnect a connection.
For credential-based apps, connect again with new credentials, then delete the old connection.
Several end users and several connections
- Each end user’s connections are separate. A run for one
externalUserIdnever uses another end user’s connection. - One end user can connect many apps, each with its own connection.
- If an end user has more than one connection to the same app, a run without
connectionIduses the newestactiveone. PassconnectionIdto choose. - Connecting an app again without
connectionIdcan add another connection instead of replacing the old one. Delete connections you no longer need.
Connection limit
By default an AIsa account can have 100 active connections, counted across all of your end users. Beyond that, connecting returns403 user_quota_exceeded. Delete connections you no longer use, or contact us to raise the limit. Connections in needs_reconnect count toward the limit until you delete them.
Keep your own records
Store at least these fields in your backend for each connection:
AIsa holds the app tokens and credentials; you never need to store them.