Skip to main content
curl -X POST https://api.thinnest.ai/v2/tools/{agent_id} \
  -H "Authorization: Bearer $THINNESTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "check_inventory",
  "type": "function",
  "description": "Check product inventory levels",
  "parameters": {
    "type": "object",
    "properties": {
      "product_id": {
        "type": "string",
        "description": "The product SKU"
      }
    },
    "required": [
      "product_id"
    ]
  },
  "endpoint_url": "https://api.example.com/inventory",
  "method": "GET",
  "headers": {
    "Authorization": "Bearer {{API_KEY}}"
  }
}'
POST /v2/tools

Request Body

{
  "name": "check_inventory",
  "type": "function",
  "description": "Check product inventory levels",
  "parameters": {
    "type": "object",
    "properties": {
      "product_id": {"type": "string", "description": "The product SKU"}
    },
    "required": ["product_id"]
  },
  "endpoint_url": "https://api.example.com/inventory",
  "method": "GET",
  "headers": {
    "Authorization": "Bearer {{API_KEY}}"
  }
}

Response

{
  "id": "tool_abc123",
  "name": "check_inventory",
  "type": "function",
  "description": "Check product inventory levels",
  "created_at": "2026-03-25T10:00:00Z"
}