Skip to main content
POST
Preview an OpenAPI document as tools

Authorizations

X-Api-Key
string
header
required

Personal or workspace LangSmith API key. Personal keys identify the user. Workspace keys are limited to server listing and MCP calls and must also supply the end user's OIDC token or X-LangSmith-Identity.

X-Tenant-Id
string
header
required

Workspace UUID. This header selects a workspace; it does not authenticate the caller.

Body

application/json

An OpenAPI document to preview. Set openapi or openapi_url.

openapi
string

OpenAPI 3.0 or 3.1 document, as JSON or YAML text or a JSON object, up to 10 MB.

openapi_url
string

HTTPS URL to fetch the document from.

Example:

"https://api.example.com/openapi.json"

Response

OK

An OpenAPI document and the tools its operations can become.

auth_options
object[]

Ways the operations accept credentials, most used first, to pre-fill the connection.

document_sha256
string

SHA-256 of the document text.

openapi_version
string

OpenAPI version, 3.0.x or 3.1.x.

operations
object[]

Every operation, including those that cannot become tools.

servers
string[]

Absolute HTTPS server URLs the document declares. The first is the default base URL.

title
string

Document title.

version
string

Document version.