curl --request GET \
--url 'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "https://api.yourapp.com/api/tools"
headers = {
"Authorization": "Bearer <token>"
}
params = {
"projectId": "proj_123",
"limit": 20,
"offset": 0
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"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"
}
{
"success": false,
"message": "Unauthorized"
}
Tools
List Tools
Retrieves all tools for a project with pagination
GET
/
api
/
tools
curl --request GET \
--url 'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "https://api.yourapp.com/api/tools"
headers = {
"Authorization": "Bearer <token>"
}
params = {
"projectId": "proj_123",
"limit": 20,
"offset": 0
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"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"
}
{
"success": false,
"message": "Unauthorized"
}
Query Parameters
string
required
Project ID
number
default:"20"
Number of results per page
number
default:"0"
Pagination offset
Response
boolean
Indicates if the operation was successful
array
Array of tool objects
number
Total number of tools
boolean
Indicates if there are more results
number
Offset for the next page
string
Response message
curl --request GET \
--url 'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0' \
--header 'Authorization: Bearer <token>'
const response = await fetch(
'https://api.yourapp.com/api/tools?projectId=proj_123&limit=20&offset=0',
{
method: 'GET',
headers: {
'Authorization': 'Bearer <token>'
}
}
);
const data = await response.json();
import requests
url = "https://api.yourapp.com/api/tools"
headers = {
"Authorization": "Bearer <token>"
}
params = {
"projectId": "proj_123",
"limit": 20,
"offset": 0
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
{
"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"
}
{
"success": false,
"message": "Unauthorized"
}
⌘I

