Tools API
API endpoints for managing agentic tools in the Kubiya platform
Tools API
The Tools API allows you to manage executable functions that can be used by AI Teammates (agents) in the Kubiya platform. Tools enable your AI agents to perform specific actions or retrieve information from external systems.
This playground makes API calls to Kubiya API through a secure server-side proxy. Your requests never expose your API token directly to the browser.
List Tools
Retrieve all available tools in your organization.
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | No | application/json |
Query Parameters
Name | Type | Required | Description |
---|---|---|---|
source_id | string | No | Filter tools by source ID |
Response
Get Tool Details
Retrieve detailed information about a specific tool.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
tool_id | string | Yes | ID of the tool |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | No | application/json |
Response
Create Tool
Create a new tool for your teammates to use.
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | Yes | application/json |
Request Body
Response
The response will contain the newly created tool's ID which you'll need to reference it in future API calls.
Update Tool
Update an existing tool.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
tool_id | string | Yes | ID of the tool to update |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Content-Type | Yes | application/json |
Request Body
Response
Delete Tool
Delete a tool.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
tool_id | string | Yes | ID of the tool to delete |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Response
A successful delete operation returns an HTTP 200 status with no response body.
Get Source Tools
Retrieve all tools belonging to a specific source.
Path Parameters
Name | Type | Required | Description |
---|---|---|---|
source_id | string | Yes | ID of the source |
Headers
Name | Required | Description |
---|---|---|
Authorization | Yes | UserKey YOUR_API_KEY |
Response
Example Usage
Create a Tool
Update a Tool
Delete a Tool
Common Errors
HTTP Status | Description |
---|---|
400 | Bad Request - The request was invalid, often due to missing required fields |
401 | Unauthorized - API key is missing or invalid |
403 | Forbidden - The API key doesn't have permission to perform this action |
404 | Not Found - The specified tool was not found |
409 | Conflict - A tool with the same name already exists in the source |
500 | Internal Server Error - An unexpected error occurred on the server |
Next Steps
After creating tools, you can:
- Assign them to AI Teammates to use in conversations
- Monitor Tool Executions to track usage and performance
- Set up Webhooks to handle events from tool executions