Skip to main content
POST
Import tools from an OpenAPI document

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Body

application/json
document

The OpenAPI 3.0 or 3.1 document, as JSON or YAML text or as a JSON object. Send this or url.

Required string length: 1 - 2000000
url
string<uri>

An HTTPS address to fetch the document from. Private, loopback and link-local addresses are refused, redirects to them too; at most 2 MB and 15 seconds.

Maximum string length: 2048
serverUrl
string

The HTTPS base URL the tools call. Defaults to the document's first server.

Maximum string length: 2048
operations
string[]

The operations to create, each as its key (GET /pets/{id}) or its operationId. Defaults to every operation that can be a tool.

Required array length: 1 - 300 elements
Required string length: 1 - 2200
dryRun
boolean
default:true

true (the default) only maps the operations. false creates a tool for each selected one.

Response

Success.

data
object
required