Preview an OpenAPI document as a connector
/v1/mcp-integrations/spec-previewPreview an OpenAPI document as a connector.
Reads an OpenAPI 3.0 or 3.1 document (from spec_url, or given in spec_content) and returns what an OPENAPI connector would make of it: its title, suggested base URLs, the tools, the operations that would be skipped and the security schemes with the auth type each suggests. Nothing is stored.
With workspace_id, requires a key of that workspace (any role) or an organization admin key; without, any organization member. Returns 400 when the document cannot be read or is not OpenAPI 3.0 or 3.1. Returns 402 when the organization's plan does not include the MCP Gateway.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Request body application/json
the document to read
organizationstringrequiredThe organization's identifier (slug).
At least 1 characters
workspace_idstring<uuid>The workspace the connector is for (UUID). Set: any member of that workspace may preview. Absent: any organization member may.
spec_urlstringWhere to fetch the OpenAPI document from, up to 2048 characters. Give this or
spec_content.At least 0 characters · At most 2048 characters
spec_contentstringThe OpenAPI 3.0 or 3.1 document itself. Takes precedence over
spec_url.spec_formatenum<string>The format of
spec_content:JSONorYAML.One of
"JSON","YAML"
Responses
openapi_versionstringThe document's OpenAPI version, for example
3.1.0.titlestringThe document's
info.title.versionstringThe document's
info.version.descriptionstringThe document's
info.description.formatenum<string>The format the document was read as,
JSONorYAML.One of
"JSON","YAML"serversstring[]The document's
servers[].url, as written.toolsobject[]The tools the operations would become.
Child attributes
namestringThe tool's name (from the
operationId, or derived from the method and path).methodstringThe HTTP method.
pathstringThe operation's path.
titlestringThe tool's title (the operation's summary), when it has one.
read_onlybooleantruefor GET and HEAD. The others start privileged when imported.
skippedobject[]Operations that would not become tools, and why.
Child attributes
methodstringThe HTTP method of the operation.
pathstringThe operation's path in the document.
operation_idstringThe operation's
operationId, when it has one.reasonstringWhy it was skipped, for example an unsupported request body type.
truncatedbooleantruewhen the document has more operations than a connector takes; the rest are left out.security_schemesobject[]The document's security schemes, with the auth type each suggests.
Child attributes
namestringThe scheme's name in the document.
typestringThe OpenAPI scheme type:
apiKey,http,oauth2,openIdConnectormutualTLS.instringapiKey: where the key goes,header,queryorcookie.parameter_namestringapiKey: the header or query parameter name.schemestringhttp:bearerorbasic.authorization_urlstringoauth2: the authorization URL.token_urlstringoauth2: the token URL.scopesstring[]oauth2: the scopes the document lists.suggested_auth_typeenum<string>The connector auth type to use. Absent when the gateway cannot use this scheme.
One of
"NONE","HEADERS","OAUTH_AUTO","OAUTH_CLIENT_CREDENTIALS"