CLI First
Tools
| Tool | Type | Description |
|---|---|---|
connections_list | Core | List apps available to a user (filtered by their Account Kit) with connection status |
connections_connected | Core | List the user’s active/expired connections (from the mirror) |
connections_connect | Core | Start a connect flow — returns a hosted redirect link |
connections_tools | Core | List the tools an app exposes |
connections_execute | Core | Execute a specific tool for the user |
connections_disconnect | Management | Disconnect (optionally purge) an app for the user |
Connecting an App
connect returns a hosted redirectUrl. Send the user there; once they finish auth the
connection becomes ACTIVE. This is a sensitive action and may require
approval depending on the Account Kit.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
toolkit | string | Yes | App slug (e.g. gmail, slack, stripe) — see GET /v1/toolkits |
callback_url | string | No | Where the user is returned after auth |
Executing a Tool
Once connected, execute any of the app’s tools:Listing & Status
Connection status is read from Naive’s local mirror;
INITIATED rows older than ~10s are
refreshed before responding. See Connection status.Error Handling
| Error | Cause | Recovery |
|---|---|---|
feature_not_configured | 3rd-party connections aren’t enabled on the workspace | Contact support to enable them |
forbidden | The user’s Account Kit doesn’t permit this app | Adjust the kit’s allow/block list |
pending_approval (202) | The connect was gated for human approval | Approve via the Approvals queue |
not_found | Invalid user_id | Use GET /v1/users for valid ids |