Connect, Disconnect, and Toggle require an authenticated session (workspace owner or admin) — they’re designed for the AI Suite web app’s settings UI, not machine-to-machine API key access. List works with either a session or an API key.
List Connectors
Connect
authorizeUrl; after they approve, the provider redirects to AI Suite’s OAuth callback, which completes the connection and redirects the user to returnTo.
Where to send the user after the OAuth flow completes. Defaults to the workspace’s agent settings page. Unsafe/external paths are ignored.
Redirect the user’s browser here to start OAuth.
Tokens are never returned to the client — they’re exchanged server-side and stored encrypted. On completion, the user lands back on
returnTo with ?connected={connectorId} appended so your UI can refresh.Disconnect
disconnected. Idempotent.
Enable / Disable
Errors
| Status | Error | Cause |
|---|---|---|
| 400 | enabled boolean is required | Toggle: missing/invalid enabled |
| 401 / 403 | Only workspace owners and admins can manage skills | Connect/Disconnect/Toggle by a non-admin |
| 404 | Connector not found | Unknown connectorId |
| 500 | Failed to start OAuth / Failed to disconnect connector / Failed to update connector | Server error |