Skip to content
Get started

Get consumed OpenAPI spec

$ cadenya tool-sets get-openapi-spec
GET/v1/workspaces/{workspaceId}/tool_sets/{toolSetId}/openapi_spec

Retrieves the current OpenAPI specification JSON that has been consumed by the tool set. Only applicable to tool sets using the OpenAPI adapter.

ParametersExpand Collapse
--workspace-id: string

Workspace ID.

--tool-set-id: string

Tool set ID. Accepts the canonical ts_… form or the external_id: form.

ReturnsExpand Collapse
ToolSetGetOpenAPISpecResponse: object { spec }
spec: optional string

The consumed OpenAPI specification as a JSON string.

Get consumed OpenAPI spec

cadenya tool-sets get-openapi-spec \
  --api-key 'My API Key' \
  --workspace-id workspaceId \
  --tool-set-id toolSetId
{
  "spec": "spec"
}
Returns Examples
{
  "spec": "spec"
}