Skip to content

Getting Started with Connectors ​

Connectors are integrations that let your AI agents interact with external services -- Slack, Gmail, Google Drive, Notion, Asana, Airtable, Vercel, Stripe, and more. Each connector provides a set of tools that agents can call during workflows or that you can invoke directly via the API and CLI.

Think of connectors as bridges between your Chainabit workspace and the services your team already uses.


How Connectors Work ​

Mermaid diagram
Diagram source
graph LR
    A[Install Connector] --> B[Authenticate]
    B --> C[Enable Tools]
    C --> D[Use in Workflows]
    C --> E[Call via API]
    C --> F[Run from CLI]
  1. Install a connector instance in your workspace
  2. Authenticate by linking your account on the external service (OAuth, API key, etc.)
  3. Enable tools that the connector provides
  4. Use tools in agent workflows, call them from the API, or run them from the CLI

Each connection has an explicit owner: an individual for Personal connections, or the active Business workspace for Team connections. Personal workspaces never expose Team connections. A Business workspace keeps its type even with one member.

An individual manages their own Personal connection. Owners and admins manage connections owned by their Business workspace. Personal use in Business requires an administrator policy and explicit owner consent for that workspace. Plan access and tool permissions remain enforced. See Who can manage an instance.

Runtime identity and agent access ​

A connector definition (for example, Google Drive), a connected instance (for example, Company Drive), and a tool (for example, list_files) are different identities. When more than one instance of a connector exists, Chainabit resolves an exact connection; it never chooses the first matching account.

Agents receive access through a separate, workspace-scoped attachment to an exact connection. Publishing, cloning, or versioning an agent never transfers a user's connector credentials.

If a requested connection is missing, stale, ambiguous, or not attached to an agent, the runtime emits a structured requirement. Clients perform the requested interaction, then resume the original run. They must not replace the requested connector with a generic search result.

Tool Access modes ​

ModeRuntime behavior
on_demand (default)Tool schemas remain unloaded until an exact connector connection is required. Expansion remains scoped to that connection.
eagerAuthorized connector catalogs are prepared at run start. The model receives schemas within its tool/context budget; remaining catalog entries stay discoverable and can be expanded without loading unrelated connectors.

The saved Tool Access preference belongs to the account settings. Selected connection instances belong to the chat session or current run, not global preferences.

Mermaid diagram
Diagram source
sequenceDiagram
  participant Client
  participant Runtime as Connector runtime
  participant Connection
  Client->>Runtime: Use Company Drive
  Runtime->>Connection: Resolve exact connection and catalog
  alt prerequisite needed
    Runtime-->>Client: Run requirement (connect/select/attach)
    Client->>Connection: Complete requested action
    Client->>Runtime: Resume requirement
    Runtime->>Runtime: Revalidate and continue once
  else ready
    Runtime-->>Client: Scoped tool bindings
  end

Quick Start ​

Prerequisites ​

  • A Chainabit account with a valid access token
  • An active workspace
  • Ownership of a Personal connection, or the owner or admin role in an activated Business workspace for a Team connection (Steps 2 and 3), with the required plan access

See Prerequisites for authentication and shared environment setup.

Step 1 -- Choose a Connector ​

Browse the available connectors:

curl "https://api.chainabit.com/api/v1/connectors" \
  -H "Authorization: Bearer $TOKEN"

Step 2 -- Install a Connector Instance ​

Create a Personal connection in your active workspace. Set WORKSPACE_ID to its identifier:

curl -X POST "https://api.chainabit.com/api/v1/connectors/instances" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-Workspace-Id: $WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{"connectorKey":"slack","displayName":"My Slack","scope":"personal"}'

Response 201 Created

The instance object in the response includes ownership and permissions. Identifiers below are illustrative.

json
{
  "data": {
    "id": "00000000-0000-4000-8000-000000000001",
    "connectorKey": "slack",
    "displayName": "My Slack",
    "status": "pending_auth",
    "enabled": true,
    "scope": "personal",
    "workspaceId": null,
    "availableInWorkspaceId": "00000000-0000-4000-8000-000000000002",
    "ownership": {
      "ownerChainerId": "00000000-0000-4000-8000-000000000003",
      "ownerWorkspaceId": null
    },
    "permissions": {
      "canRead": true,
      "canManage": true,
      "canExecute": false
    },
    "authorizationState": "authorization_required",
    "config": {},
    "lastHealthCheck": null,
    "healthMessage": null,
    "createdAt": "2026-10-02T10:00:00.000Z",
    "updatedAt": "2026-10-02T10:00:00.000Z"
  }
}

Save the instance id -- you will need it for authentication and tool execution.

Step 3 -- Authenticate ​

Most connectors use OAuth. Start the authorization flow:

curl -X POST "https://api.chainabit.com/api/v1/connectors/instances/inst_abc123/oauth/initiate" \
  -H "Authorization: Bearer $TOKEN"

Follow the returned URL to authorize access on the external service. Chainabit handles the token exchange automatically.

For connectors that use API keys or connection strings, store credentials directly:

curl -X POST "https://api.chainabit.com/api/v1/connectors/instances/inst_abc123/credentials" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "credType": "api_key",
    "credentials": { "apiKey": "your-key" }
  }'

Step 4 -- Test the Connection ​

curl -X POST "https://api.chainabit.com/api/v1/connectors/instances/inst_abc123/test" \
  -H "Authorization: Bearer $TOKEN"

Step 5 -- Use in Workflows or Call Directly ​

Once authenticated, the connector's tools are available to your agents. You can also execute tools that do not require approval directly:

curl -X POST "https://api.chainabit.com/api/v1/connectors/instances/inst_abc123/tools/tool_list_channels/execute" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "limit": 20
    }
  }'

Tools that change data in the external service, such as Slack send_message, require approval. Direct execution refuses them with 403; ask Chao to run them instead, which applies its approval rules before acting.


Connector Catalog ​

The full catalog is grouped by family and mirrored in English and Turkish. Start with the Connector Catalog, then open the connector-specific pages you need.

ConnectorKeyCategoryAuth MethodDescription
SlackslackCommunicationOAuthSend messages, manage channels, search
GmailgmailCommunicationOAuthSend email after you approve it
Google Drivegoogle-driveProductivityOAuthCreate files and read the files Chainabit created
Google Calendargoogle-calendarProductivityOAuthManage calendar events
NotionnotionProductivityOAuth / API keySearch and manage pages, databases
CanvacanvaDesignOAuthCreate and export designs
SQL Databasesql-databaseDatabaseConnection stringQuery PostgreSQL or MySQL
MCP Servermcp-genericProtocolAPI key / BearerConnect to any MCP-compatible server

Connector Lifecycle ​

Mermaid diagram
Diagram source
graph TD
    A[Pending] -->|Authenticate| B[Active]
    B -->|Health check fails| C[Error]
    C -->|Re-authenticate| B
    B -->|Disable| D[Inactive]
    D -->|Enable| B
  • Pending -- Connector is installed but not yet authenticated
  • Active -- Connector is authenticated and ready to use
  • Error -- Health check failed or credentials expired
  • Inactive -- Connector has been manually disabled

Security ​

  • Credentials are encrypted at rest and never returned in API responses
  • OAuth tokens are refreshed automatically before they expire
  • Team connections belong to their owning Business workspace. Personal connections require an explicit owner binding to each destination workspace.
  • All tool executions are logged in the audit trail
  • You can revoke credentials at any time

Next Steps ​

Built with purpose. chainabit.com