Skip to main content
POST
Create Connection

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace
string
required

Slug of the workspace the request acts in

Maximum string length: 120
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

Body

application/json

Payload for creating an OpenAPI connection.

The connection ties a base URL (where requests are sent) to an OpenAPI 3.x specification (which is parsed eagerly into a tool list). Provide either spec_url or spec_content — not both required.

base_url
string
required

Base URL for API requests, e.g. 'https://api.example.com'. The path may hold '{name}' placeholders filled from url_variables, e.g. 'https://api.telegram.org/bot{token}'.

Maximum string length: 500
name
string
required

Display name for the connection (unique per workspace).

Required string length: 1 - 255
auth_config_id
string<uuid> | null

Optional MCPAuthConfig UUID for OAuth2 token rotation. When set, tokens are minted/refreshed on the connection's behalf.

custom_headers
HeaderInput · object[] | null

Custom HTTP headers attached to every request. Non-safe headers (e.g. Authorization) are stored encrypted in the secret manager.

custom_query_params
QueryParamInput · object[] | null

Query parameters attached to every request, e.g. an API key the upstream takes as '?api_key='. Secret values are stored encrypted in the secret manager.

description
string | null

Optional human-readable summary of what this API exposes.

spec_content
Spec Content · object | null

Inline OpenAPI 3.x spec as a JSON object. Use instead of spec_url when the spec host is unreachable from the API.

spec_url
string | null

URL to an OpenAPI 3.x JSON or YAML spec. The spec is fetched and parsed eagerly at create time so the connection is ready for use.

url_variables
UrlVariableInput · object[] | null

Secret values for the '{name}' placeholders in the base URL path, one per placeholder. Stored encrypted in the secret manager.

Response

Successful Response

available_tools
OpenAPIToolResponse · object[]
required
base_url
string | null
required
created_at
string<date-time>
required
id
string<uuid>
required
name
string
required
status
string
required
updated_at
string<date-time>
required
auth_config_id
string<uuid> | null
cost
Cost · object | null
custom_headers
HeaderOutput · object[] | null
custom_query_params
QueryParamOutput · object[] | null
description
string | null
last_dispatch
Last Dispatch · object | null
managed_by
string | null
registry_item_id
string<uuid> | null
spec_url
string | null
url_variables
string[] | null