> ## 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 常见问题

> 关于 AIsa Connect 的常见问题：开通方式、应用、终端用户、权限、测试，以及暂不支持的功能。

> [accordion] 需要单独注册或购买套餐吗？
>
> 不需要。所有 AIsa 账户都可以直接使用 AIsa Connect，用的就是现有的 API Key 和余额。见[价格与限制](https://aisa.one/docs/zh/resources/aisa-connect/pricing-and-limits.md)。

> [accordion] 我的用户可以连接哪些应用？
>
> 用 `GET /apps`、[aisa.one/catalog/connectors](https://aisa.one/catalog/connectors) 或[控制台](https://aisa.one/docs/zh/resources/aisa-connect/console.md)查看实时目录。不需要用户账号的应用，以及 AIsa 通过自有 [Unified API](https://aisa.one/docs/zh/resources/unified-apis.md) 提供的平台，不在 Connect 目录里。想申请接入某个应用，在控制台点 **申请接入应用**，或写信到 [developer@aisa.one](mailto:developer@aisa.one)。

> [accordion] 可以从浏览器或移动端应用调用 AIsa Connect 吗？
>
> 带 API Key 不行。请从你的后端调用，只把托管会话的 `connectUrl` 发给终端用户。用 OAuth 登录的 MCP 客户端不需要 key。

> [accordion] 没有真实用户，怎么测试？
>
> 在[控制台](https://aisa.one/docs/zh/resources/aisa-connect/console.md)连接你自己的账号，或者选一个测试用的 `externalUserId`（例如 `test_user_1`），按[快速开始](https://aisa.one/docs/zh/resources/aisa-connect/quickstart.md)走一遍。测试连接也计入连接数上限，用完请删除。

> [accordion] 一个终端用户能连接同一个应用的两个账号吗？
>
> 不带 `connectionId` 再次连接同一个应用，可能会为同一个终端用户新增一个连接。不传 `connectionId` 的执行会使用这个应用下最新的 `active` 连接；传 `connectionId` 可以指定某一个。如果只是想刷新已有连接，请带 `connectionId` [重新连接](https://aisa.one/docs/zh/resources/aisa-connect/authorize-users.md#重新连接)。

> [accordion] 用户在应用里撤销了授权会怎样？
>
> 应用报告这个连接的授权已失效时，执行返回 `409 reconnect_required`，连接变成 `needs_reconnect`，请让用户重新连接。如果应用只是拒绝这个账号执行某一个动作，执行会返回 `400 invalid_request`，连接仍是 `active`。AIsa 不在后台检查连接，所以要到下一次执行才会知道变化。

> [accordion] 能拿到终端用户的 token，自己去调用应用吗？
>
> 不能。没有任何接口会返回终端用户的令牌或密钥，也没有可以透传任意应用 API 调用的接口。请使用应用的动作。

> [accordion] 能用我自己的 OAuth 应用，或者给托管页换品牌吗？
>
> 暂时不能。托管 OAuth 使用 AIsa 注册的应用和 AIsa 的托管页。

> [accordion] 有触发器或 webhook 吗？
>
> 暂时没有。应用里发生的事件、连接会话结束，AIsa 都不会通知你。连接结果请轮询 `GET /connect/sessions/{sessionId}`。

> [accordion] 能把智能体限制为只执行只读动作吗？
>
> 可以，有三种方式：只把 `operationType` 为 `read` 的动作交给模型；找我们申请只有 Connect 只读权限（`connector:read`）的 API Key；另外，生产环境里 Google 应用本来就以只读权限连接。见[防护措施](https://aisa.one/docs/zh/resources/aisa-connect/agents.md#防护措施)。

> [accordion] 为什么写操作返回 400 invalid\_request？
>
> 提示 "the app refused this action for the connected account"，说明账号缺少这个动作需要的权限。生产环境的 Google 应用是只读的；其他应用请检查用户授予的权限，或者他们 key 的权限。

> [accordion] 团队成员能共享连接吗？
>
> 连接归属于 API Key 所在的 AIsa 账户。这个账户的每个 key，以及以这个账户身份的 OAuth 登录，看到的都是同一批连接。目前还没有按成员或按连接分配的权限。

> [accordion] AIsa 会重试失败的执行吗？
>
> 不会。每次执行只发给应用一次。要安全重试，请带上 `Idempotency-Key`；见[重试和幂等](https://aisa.one/docs/zh/resources/aisa-connect/actions.md#重试和幂等)。

> [accordion] 有分页吗？
>
> Connect API 本身没有分页：列表一次返回全部结果，`GET /apps` 的 `limit` 最大 5000。会分页读取应用数据的动作，在 `inputSchema` 里有自己的分页字段。

> [accordion] 一个连接能用多久？
>
> 连接会一直保持 `active`，直到你删除它，或者应用不再接受它的授权；那时它会变成 `needs_reconnect`。

还有问题？见[错误与排查](https://aisa.one/docs/zh/resources/aisa-connect/errors.md)，或写信到 [developer@aisa.one](mailto:developer@aisa.one)。


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