Skip to content
Get started

Get consumed OpenAPI spec

tool_sets.get_openapi_spec(tool_set_id, **kwargs) -> ToolSetGetOpenAPISpecResponse { 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
tool_set_id: String
ReturnsExpand Collapse
class ToolSetGetOpenAPISpecResponse { spec }
spec: String

The consumed OpenAPI specification as a JSON string.

Get consumed OpenAPI spec

require "cadenya"

cadenya = Cadenya::Client.new(api_key: "My API Key")

response = cadenya.tool_sets.get_openapi_spec("toolSetId", workspace_id: "workspaceId")

puts(response)
{
  "spec": "spec"
}
Returns Examples
{
  "spec": "spec"
}