curl -X POST "https://portal.intellixent.ai/api/user/tools" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "check_order_status", "description": "Use this tool to check the status of a customer order when they ask about it.", "endpoint": "https://api.yourstore.com/orders/status", "method": "GET", "timeout": 10, "headers": [ {"name": "Authorization", "value": "Bearer sk_..."} ], "schema": [ { "name": "order_id", "type": "string", "description": "The customer order ID to check" } ] }'
201 Created
{ "message": "Tool created successfully", "data": { "id": 1, "name": "check_order_status", "description": "Use this tool to check the status of a customer order when they ask about it.", "endpoint": "https://api.yourstore.com/orders/status", "method": "GET", "timeout": 10, "headers": [ { "name": "Authorization", "value": "Bearer sk_..." } ], "schema": [ { "name": "order_id", "type": "string", "description": "The customer order ID to check" } ], "created_at": "2025-10-10T12:00:00.000000Z", "updated_at": "2025-10-10T12:00:00.000000Z" }}
422 Invalid name format
{ "message": "The name field must contain only lowercase letters and underscores, and start with a letter.", "errors": { "name": ["Tool name must contain only lowercase letters and underscores, and start with a letter."] }}