API ReferenceApi claw
Create API Agent scheduled task
API documentation for Create API Agent scheduled task
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication.
In: header
Path Parameters
agentId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/api-agents/string/scheduled-tasks" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "scheduleType": "cron" }'{ "id": "string", "name": "string", "agentId": "string", "taskTemplate": { "property1": null, "property2": null }, "scheduleType": "string", "cronExpression": "string", "intervalMinutes": 0, "scheduledAt": "string", "maxRuns": 0, "timezone": "string", "isEnabled": true, "nextRunAt": "string", "totalRuns": 0, "createdAt": "string", "updatedAt": "string", "scheduleDescription": "string", "agent": { "name": "string", "emoji": "string" }, "runs": [ { "id": "string", "scheduledTaskId": "string", "status": "string", "startedAt": "string", "completedAt": "string", "error": "string", "sessionId": "string", "createdAt": "string" } ]}