> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# AIsa Connect

> Let your end users connect their own Shopify, WooCommerce, GitHub, Google and other app accounts, then browse the app catalog and run app actions on their behalf with one AIsa API key.

AIsa Connect lets your end users, for example the merchants you serve, connect their own app accounts such as Shopify, WooCommerce, GitHub or Google to AIsa. With one AIsa API key you then browse the app catalog and run app actions for those users: read orders, update products, list repositories and so on. AIsa's app integration holds the end users' tokens and keys, so your system does not store them and cannot read them back.

All AIsa accounts can use AIsa Connect with their existing API key and balance. No separate sign-up is needed.

## When to use it

* Your product acts inside apps that **your users** own, and you do not want to build and maintain an OAuth app or a credential vault for each one.
* You want one catalog of apps and actions, each with a JSON Schema for its input, instead of one SDK per app.
* You want to pay only for actions that succeed, from the same balance as your models and data APIs.
* Your AI agent needs to read or act in a user's account, for example their Gmail, Search Console or Shopify store, through tools it can discover at run time.

To read public data that needs no user account, such as marketplace listings, use the [Data APIs](https://aisa.one/docs/resources/data-apis.md) instead. For one request shape across social and ad platforms, see [Unified APIs](https://aisa.one/docs/resources/unified-apis.md).

## Example use cases

| You are building | What AIsa Connect does |
| - | - |
| An operations assistant for Shopify merchants | Each merchant connects their store once; your agent lists unfulfilled orders with `shopify.list_orders` and checks stock with `shopify.get_inventory_quantities` |
| An SEO reporting tool | Each customer authorizes Google Search Console; your backend reads performance data for their properties |
| An inbox or support copilot | Each user authorizes Gmail; your agent searches their threads with `gmail.search_threads` |
| An internal agent in Claude Code, Cursor or Codex | You connect your own accounts in the Console and the agent runs actions through the AIsa MCP server |

## How it works

```mermaid theme={null}
flowchart LR
  U["End user"] -->|"1. Authorizes an app<br/>(hosted page or credentials)"| A["AIsa Connect"]
  Y["Your backend or agent"] -->|"2. Runs an action<br/>actionKey + externalUserId"| A
  A -->|"3. Calls the app with<br/>the user's connection"| P["Shopify, Gmail, GitHub, ..."]
  A -->|"4. Returns output<br/>charges successful runs"| Y
```

**1. Pick an app and an action**

Search the catalog for the app, read its `authTypes`, and look up the action's `inputSchema`. Browsing is free. See [Running actions](https://aisa.one/docs/resources/aisa-connect/actions.md#discover-apps-and-actions).

**2. Connect the end user's account**

For `api_key` and `custom_credential` apps, collect the fields in your UI and send them to AIsa. For `oauth2` apps, send the user to the AIsa hosted page and poll the session. See [Authorizing end users](https://aisa.one/docs/resources/aisa-connect/authorize-users.md).

**3. Run actions**

Call `POST /actions/run` with the action key, the `externalUserId` and an `input` that matches the schema. See [Running actions](https://aisa.one/docs/resources/aisa-connect/actions.md).

## Key concepts

| Concept | Meaning |
| - | - |
| **End user** (`externalUserId`) | A user in **your** system, identified by your own ID. You do not register it with AIsa first. |
| **App** | An app your end users can connect, such as `shopify` or `github`. `authTypes` says how it connects. |
| **Action** | Something an app can do, keyed `<app>.<action name>`, such as `shopify.get_shop`. Each action has an `operationType` and an `inputSchema`. |
| **Connection** (`con_…`) | One app account that one end user connected. It belongs to your AIsa account plus that `externalUserId`. |
| **Connect session** (`cs_…`) | One run of the hosted OAuth flow. It expires after 30 minutes. |
| **Run** (`run_…`) | One execution of an action for an end user. Only successful runs are charged. |

[Concepts](https://aisa.one/docs/resources/aisa-connect/concepts.md) explains each one, including who owns a connection and how scopes work.

## API at a glance

Paths are relative to `https://api.aisa.one/apis/v1/connector`. Authenticate with `Authorization: Bearer YOUR_AISA_API_KEY` (or `x-api-key`), or with an MCP or CLI OAuth sign-in.

| Endpoint | Reference | Charge |
| - | - | - |
| `GET /apps` | [List apps](https://aisa.one/docs/api-reference/aisa-connector/get_aisa_connector_apis_v1_connector_apps.md) | Free |
| `GET /apps/{app}/actions` | [List the actions of an app](https://aisa.one/docs/api-reference/aisa-connector/get_aisa_connector_apis_v1_connector_apps_app_actions.md) | Free |
| `GET /actions/{actionKey}` | [Get an action](https://aisa.one/docs/api-reference/aisa-connector/get_aisa_connector_apis_v1_connector_actions_actionkey.md) | Free |
| `POST /connect/{app}/credentials` | [Connect an app account with credentials](https://aisa.one/docs/api-reference/aisa-connector/post_aisa_connector_apis_v1_connector_connect_app_0fbeef.md) | Free |
| `GET /connect/{app}` | [Start a hosted connect](https://aisa.one/docs/api-reference/aisa-connector/get_aisa_connector_apis_v1_connector_connect_app.md) | Free |
| `GET /connect/sessions/{sessionId}` | [Get a connect session](https://aisa.one/docs/api-reference/aisa-connector/get_aisa_connector_apis_v1_connector_connect_sess_bfc4e5.md) | Free |
| `GET /connections` | [List connections](https://aisa.one/docs/api-reference/aisa-connector/get_aisa_connector_apis_v1_connector_connections.md) | Free |
| `GET /connections/{connectionId}` | [Get a connection](https://aisa.one/docs/api-reference/aisa-connector/get_aisa_connector_apis_v1_connector_connections__b41217.md) | Free |
| `DELETE /connections/{connectionId}` | [Disconnect a connection](https://aisa.one/docs/api-reference/aisa-connector/delete_aisa_connector_apis_v1_connector_connectio_b41217.md) | Free |
| `POST /actions/run` | [Run an action](https://aisa.one/docs/api-reference/aisa-connector/post_aisa_connector_apis_v1_connector_actions_run.md) | Successful runs only |

## What is not available yet

AIsa Connect covers the flows on these pages. The following are **not** available today:

* **Triggers and webhooks.** AIsa does not notify you when something happens in an app, or when a connect session finishes. Poll the session instead.
* **Your own OAuth app.** Hosted OAuth always uses AIsa's app registration; you cannot bring your own client ID or brand the consent screen.
* **Custom branding of the hosted page.**
* **Per-action permissions.** A key can be limited to read-only Connect access (see [Concepts](https://aisa.one/docs/resources/aisa-connect/concepts.md#scopes)), but not to individual apps or actions.
* **Team sharing.** Connections belong to the AIsa account that owns the API key; there is no separate sharing model.
* **Write access to Google apps.** Google apps connect with read-only access in production. See [Security & data handling](https://aisa.one/docs/resources/aisa-connect/security.md#app-permissions).

If you need one of these, tell us at [developer@aisa.one](mailto:developer@aisa.one).

## Next steps

> [card] [Quickstart](https://aisa.one/docs/resources/aisa-connect/quickstart.md)
>
> Connect a test account and run your first action in about five minutes.

> [card] [Use with agents](https://aisa.one/docs/resources/aisa-connect/agents.md)
>
> Call Connect from MCP clients, or turn actions into tools for OpenAI, Anthropic, Vercel AI SDK and LangChain.

> [card] [Authorizing end users](https://aisa.one/docs/resources/aisa-connect/authorize-users.md)
>
> The hosted OAuth page, credential-based apps and reconnecting.

> [card] [Pricing & limits](https://aisa.one/docs/resources/aisa-connect/pricing-and-limits.md)
>
> What is charged, the connection limit and rate limits.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.