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
state (art.<runtime_id>.<random>):
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/mcpaccepts 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 plusx-allternit-user-id.
Connector object
Endpoints
List connectors
Example response
Get a connector
Connect a connector
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: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.
default: true makes this the only default for the user and connector. label is a display name.
DELETE /:id/disconnect still removes every account of the connector.
Execute a connector action
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
Example response
MCP proxy
/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.