## Get consumed OpenAPI spec `client.ToolSets.GetOpenAPISpec(ctx, workspaceID, toolSetID) (*ToolSetGetOpenAPISpecResponse, error)` **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. ### Parameters - `workspaceID string` - `toolSetID string` ### Returns - `type ToolSetGetOpenAPISpecResponse struct{…}` - `Spec string` The consumed OpenAPI specification as a JSON string. ### Example ```go package main import ( "context" "fmt" "github.com/cadenya/cadenya-go" "github.com/cadenya/cadenya-go/option" ) func main() { client := cadenya.NewClient( option.WithAPIKey("My API Key"), ) response, err := client.ToolSets.GetOpenAPISpec( context.TODO(), "workspaceId", "toolSetId", ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Spec) } ``` #### Response ```json { "spec": "spec" } ```