End users
externalUserId is the ID of the end user in your system. AIsa uses it to keep your end users apart.
- Format: 1–250 printable ASCII characters, with no leading or trailing spaces. Use a stable ID that contains no personal data, such as
store_8812. Do not use an email address. - Where it is required: starting a connection and running an action. When listing connections it is an optional filter, matched exactly (case-sensitive).
- Isolation: a connection belongs to your AIsa account and one
externalUserId. When user A runs an action, AIsa never uses user B’s connection. - No registration. AIsa keeps no end user record of its own; the ID is stored on each connection. There is no endpoint to create, list or delete end users; list their connections instead.
Apps
An app is something an end user can connect, such asshopify, github, gmail or google_search_console. App keys are lowercase letters, digits, _ and -.
The catalog leaves out apps that need no user account, and platforms that AIsa serves through its own APIs, such as X (Twitter), Instagram, LinkedIn, Reddit, YouTube, Meta, TikTok for Business and Google Ads. Use the Unified APIs for those.
Actions
An action is one operation an app offers, keyed<app>.<action name>, for example shopify.list_orders or gmail.search_threads.
The catalog lists every action an app offers. Whether a run succeeds also depends on what the connected account allows. See Running actions.
Connections
A connection is one app account that one end user connected. You get it back from a credential connect, or asconnectionId on a completed connect session.
statusisactive,needs_reconnectordisconnected. See Managing connections.scopeslists the permissions the app reported for the authorization. It can be empty, for example for credential-based apps.- An end user can have connections to several apps. If an end user has more than one connection to the same app, a run without
connectionIduses the newestactiveone.
Connect sessions
A connect session (cs_…) is one run of the hosted OAuth flow for one end user and one app. You start it, send the user to its connectUrl, and poll it until it ends. It expires after 30 minutes. See Authorizing end users.
Hosted OAuth vs credentials
Some apps support more than one auth type.
authTypes on the app tells you which.
Ownership
Everything in AIsa Connect belongs to the AIsa account that owns the API key:- All API keys of the same account see the same connections, and so does an MCP or CLI client signed in with OAuth as that account.
- Accounts are fully separate: one AIsa account can never see or use another account’s connections.
- Connections you make in the Console belong to the same account, under the end user ID
console-user-<your user id>. - There is no team sharing or per-member permission model for connections yet.
Authentication
Send one of these on every request:Authorization: Bearer YOUR_AISA_API_KEY, orx-api-key: YOUR_AISA_API_KEY. See Authentication for creating, limiting and rotating keys.- An OAuth access token from MCP or CLI sign-in, sent the same way as on social and other MCP-backed routes. MCP clients that signed in with OAuth do not need a key.
Scopes
AIsa Connect has two scopes:
By default an API key has both. To limit a key to read-only Connect access, contact developer@aisa.one; there is no Console setting for it yet. A request without the scope it needs fails with
403 insufficient_scope, and error.details.requiredScope names the scope. A personal MCP or CLI sign-in has the same Connect scopes as your account’s MCP key, so both by default. An OAuth sign-in for an organization can always read, but runs actions, starts connections and deletes connections only when its token was granted connector:write.
Scopes are AIsa’s permissions for the API. They are different from the app permissions an end user grants during OAuth, which decide what the app lets a run do.