Skip to main content
AIsa Connect has a small object model. Your end users create connections to apps, through a connect session or with credentials, and you run an app’s actions with those connections.

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.
GET /connections/{connectionId} and DELETE /connections/{connectionId} only check that the connection belongs to your AIsa account. They do not check the end user. Keep the mapping from connection to end user in your backend, and never let an end user pass in an arbitrary connection ID.

Apps

An app is something an end user can connect, such as shopify, 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 as connectionId on a completed connect session.
  • status is active, needs_reconnect or disconnected. See Managing connections.
  • scopes lists 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 connectionId uses the newest active one.

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, or x-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.
Use an API key only from your backend. Never put an API key in a browser or mobile app.

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.