API Reference
The FlockSoft REST API gives you programmatic access to agents, tasks, webhooks, and account management. All responses are JSON.
Base URL
api.flocksoft.com/v1Auth
Bearer tokenVersion
v1.0 — StableAuthentication
Bearer token auth
All API requests must include an Authorization header with a valid API key. Keys are generated in your account settings and can be scoped to specific permissions.
API keys are prefixed with fs_live_ for production and fs_test_ for sandbox.
Keys are shown only once at creation. Store them securely — they cannot be retrieved after the initial display.
Example Request
curl https://api.flocksoft.com/v1/agents \ -H "Authorization: Bearer fs_live_••••••••" \ -H "Content-Type: application/json"
Response
{
"data": [...],
"meta": {
"total": 12,
"page": 1
}
}Endpoints
All available
endpoints.
Agents
GET
/v1/agentsList all agents in your accountPOST
/v1/agentsCreate a new agentGET
/v1/agents/{id}Retrieve a specific agentPATCH
/v1/agents/{id}Update agent configurationDELETE
/v1/agents/{id}Archive an agentPOST
/v1/agents/{id}/runTrigger an agent executionTasks
GET
/v1/tasksList all tasks across agentsGET
/v1/tasks/{id}Retrieve a specific taskGET
/v1/tasks/{id}/logsRetrieve execution logs for a taskPOST
/v1/tasks/{id}/cancelCancel a running taskWebhooks
GET
/v1/webhooksList all configured webhooksPOST
/v1/webhooksRegister a new webhook endpointDELETE
/v1/webhooks/{id}Remove a webhookPOST
/v1/webhooks/{id}/testSend a test event to a webhookAccount
GET
/v1/accountRetrieve account details and usageGET
/v1/account/api-keysList API keysPOST
/v1/account/api-keysGenerate a new API keyDELETE
/v1/account/api-keys/{id}Revoke an API keyRate Limits
Limits by plan
Starter
Requests
1,000 / hour
Agents
5 agents
Tasks
10,000 / month
Growth
Requests
10,000 / hour
Agents
25 agents
Tasks
250,000 / month
Enterprise
Requests
Custom
Agents
Unlimited
Tasks
Unlimited