Skip to main content

Schema

kobana schema shows, as JSON, everything the specification says about an endpoint: HTTP method and path, path, query and header parameters, body and responses.

# All products and resources
kobana schema --list

# One endpoint — the path has the shape of the command
kobana schema banking.charge.pix.create
kobana schema finance.payables.list
kobana schema kadu.tasks.run

The path is <product>.<resource>.<method>. For commands that run by name, the method can be omitted: kobana schema banking.me.

What comes out​

FieldContent
method, pathHTTP verb and path, with the API version
summary, descriptionText from the specification, in the CLI's language
path_paramsPath identifiers, in the order of the arguments
parametersQuery parameters, with type, whether required, and accepted values
header_paramsHeaders, such as X-Workspace-Id
request_bodyBody schema
responsesResponse codes and their schemas
deprecatedtrue when the endpoint is retired

For agents​

The schema is the shortest way for an agent to find out how to call an endpoint without reading the whole documentation. See Scripts and AI agents. The same information, already formatted, is in the Manual.