Overview

The Connectors API is Allternit’s owned connector standard. It exposes a unified catalog plus connection engine for third-party services. Curated connectors (GitHub, Notion, Slack) execute in-process using owned auth methods such as local CLI tokens, API keys, OAuth2 PKCE/loopback, and device flow. All other catalog entries are served by the vendored open-connector sidecar (services/open-connector), which holds credentials in its own encrypted SQLite store while the gateway keeps only an index row. The API also exposes a unified MCP surface at /api/v1/connectors/mcp so any MCP-capable agent host can call sidecar-backed connectors through JSON-RPC.

Base URL

These routes are served by the Allternit API data-plane node. The hosted Cloud API does not relay the connectors namespace. OAuth callbacks are redirect targets on the same node:
A node paired with the cloud uses cloud-api return URLs instead, so a sign-in started from a phone or another computer can finish. cloud-api relays them to the callbacks above, picking the node from the OAuth state (art.<runtime_id>.<random>):
When a connector has no way to issue a sign-in and the vendor runs an official MCP server with dynamic client registration or CIMD, POST /connectors/:id/connect signs in to that server instead and answers {"status": "authorization_required", "authorize_url": "...", "backend": "official_mcp", "mcp_connector_id": "..."}. See Connectors › For developers.

Authentication

  • Connector management routes require a valid bearer token via the platform auth middleware.
  • /api/v1/connectors/mcp accepts the same bearer token.
  • The internal MCP proxy (/internal/connectors/mcp) accepts a cloud-issued runtime-device token (Authorization: Bearer allternit_runtime_...) or the internal service token plus x-allternit-user-id.
See Authentication.

Connector object

Endpoints

List connectors

Returns the merged catalog: Allternit’s in-process catalog plus any sidecar-only providers. The response includes per-user connection status and sidecar health.

Example response

Get a connector

Returns the merged connector entry, including live connection status. If the id is sidecar-only and not in the legacy catalog, the entry is synthesized from the sidecar provider summary.

Connect a connector

Starts a connection flow. The request body and response shape depend on the connector’s auth type.

Request body

Local CLI example (GitHub)

OAuth2 example

Managed example

When the caller’s org turned on managed authorization for the connector, connect finishes with no browser:
A refusal is 409 with a plain message and, when the connector has a normal sign-in, the button to offer:

API key example

Accounts

A user can have several connections of one connector. Each is one row with its own id; one row per user and connector is the default. The first connected row becomes the default. When a sign-in completes, the row’s key is set from the provider’s identity (email or login). Signing in again with an account that already exists updates that row and drops the pending one, so re-authorizing never makes a duplicate. The identity comes from the token response when the provider includes it (Notion’s owner, Slack’s workspace), otherwise from the provider’s own profile endpoint (GitHub /user, or the connector’s userinfo_url). An API-key connector has no identity to read, so each added key stays a separate, unnamed account until you rename it.
Both fields are optional. default: true makes this the only default for the user and connector. label is a display name.
Removes that one account. If it was the default, the most recently updated remaining account becomes the default. DELETE /:id/disconnect still removes every account of the connector.

Execute a connector action

Executes a tool or action against a connected connector.

Request body

The account is chosen in this order: connection_id or account if given, else the default, else the most recently used. An account that matches nothing returns 404 with { "error": "account_not_found", "accounts": [...] }; it never falls back to another account. The model-facing connector tools take the same optional account string (“Which connected account to use, by email or name. Omit for the default.”). A bot’s connector binding may carry a connectionId; a tool call with no explicit account uses it (a bot runtime sends the binding’s id in the x-allternit-connection-id header of its MCP requests). Some sidecar actions take a value the connection already saved: a field entered at connect time or an account id recorded when the credential was checked. These inputs are optional in the action schema. Leave them out of input and the sidecar uses the saved value of the chosen account; a value you pass wins. If the input is neither passed nor saved, the call fails with invalid_input. Current list (provider, input): googleads developerToken and customerId; sentry organizationIdOrSlug; agility guid; personal_ai domainName; aws_s3 and aliyun_oss bucket (on list_objects); bugsnag organizationId; callrail accountId; bird workspaceId; devin orgId; sling orgId; roboflow workspace; beeminder username; calendly organizationUri (on actions that required it); wit_ai appId. Providers declare these with withSavedConnectionInputs in services/open-connector/src/core/provider-definition.ts.

Example request

Example response

Disconnect a connector

Clears the connection row. For sidecar-backed connectors, the sidecar credential is removed first.

Example response

MCP proxy

Proxies a single JSON-RPC request to the open-connector sidecar’s /mcp endpoint. Curated connectors are not reachable through this surface. Both /api/v1/connectors/mcp and /internal/connectors/mcp are MCP servers in their own right and speak both eras: initialize, server/discover (MCP 2026-07-28), ping and notifications are answered by the API, every other request is forwarded through the shared dual-era MCP client (2026-07-28 first, initialize fallback). tools/list comes back sorted by tool name, with the in-process allternit_mail.* and phone tools merged in on the internal endpoint. A modern request’s version, header-mismatch and unknown-method errors use HTTP 400 / 404 as the spec requires. Toward the sidecar the client sets MCP-Protocol-Version, Mcp-Method and Mcp-Name itself for the era the sidecar speaks (so a modern sidecar gets them on every request, matching the _meta the client adds), and it reads either a JSON or an SSE (text/event-stream) reply.

Example request

Error codes