APIs

API tools list, inspect, create, update, and delete the APIs of the API Designer. Saves run through the same validation pipeline and edit-lock checks as the Cockpit.

Required access: the API Designer tool (apidesigner) in one of your roles. The Hub API Designer tool grants the same access. Display access is enough to list and read APIs. Saving and deleting require Edit access.

If none of your roles includes this tool with the required access, the tool fails immediately with an access denied error. Contact an administrator to request access, or see Access control for more information on how access is enforced.

Available tools

Tool Description

list_apis

List APIs. Returns a summary per API. The auth, endpoints, paths, and definitions of an API are never included in the list, even if you select them. Use get_api to read them. Supports filtering, field selection, and sorting through listOptions.

get_api

Return an API by its ID, including its endpoints, paths, and definitions.

save_api

Create or update an API. Omit id to create a new API. On update, send only the keys that you change. Omitted keys keep their values, and arrays are replaced as a whole. On create, set apiFormat to 0 (Swagger 2.0) for table APIs or to 1 (OpenAPI 3.0) for script and external APIs. Definition properties are stored as a flat list in which a nested property points to its parent property through parent. You can also send nested properties as children arrays, which are converted to parent links on save. The request and response content of a path nests through children. System fields, such as createdBy, changedBy, and ver, cannot be set. The response contains the saved API with its name and package, and created, which is true if a new API was created.

delete_api

Delete an API by its ID.

Was this page helpful?

What made the biggest difference for you?
What went wrong? (Your feedback helps us fix it.)

Please don't include personal or sensitive data.