Skip to main content
GET
/
api
/
tools
curl --request GET \
  --url 'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0' \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "tools": [
    {
      "id": "tool_123",
      "name": "Data Validator",
      "description": "Validates input data",
      "language": "javascript",
      "enabled": true,
      "createdAt": "2024-01-15T10:30:00Z"
    },
    {
      "id": "tool_456",
      "name": "Email Parser",
      "description": "Parses email content",
      "language": "python",
      "enabled": true,
      "createdAt": "2024-01-14T09:20:00Z"
    }
  ],
  "total": 42,
  "hasMore": true,
  "nextOffset": 20,
  "message": "Tools retrieved successfully"
}

Query Parameters

projectId
string
required
Project ID
limit
number
default:"20"
Number of results per page
offset
number
default:"0"
Pagination offset

Response

success
boolean
Indicates if the operation was successful
tools
array
Array of tool objects
total
number
Total number of tools
hasMore
boolean
Indicates if there are more results
nextOffset
number
Offset for the next page
message
string
Response message
curl --request GET \
  --url 'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0' \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "tools": [
    {
      "id": "tool_123",
      "name": "Data Validator",
      "description": "Validates input data",
      "language": "javascript",
      "enabled": true,
      "createdAt": "2024-01-15T10:30:00Z"
    },
    {
      "id": "tool_456",
      "name": "Email Parser",
      "description": "Parses email content",
      "language": "python",
      "enabled": true,
      "createdAt": "2024-01-14T09:20:00Z"
    }
  ],
  "total": 42,
  "hasMore": true,
  "nextOffset": 20,
  "message": "Tools retrieved successfully"
}