active set to true. The response status is 201. The body does not include runCount.
Base URL
Required scopes
This endpoint requires theAUTOMATION_API scope (Scheduled Tasks API) on a workspace API key, or on a personal API key after your admin allows that scope.
A workspace can hold 10 tasks for this owner. The next create returns 400 with AUTOMATION_LIMIT_REACHED. An expired trial returns 403 with TRIAL_EXPIRED.
Parameters
Send a JSON body. Unknown fields are rejected. Schedule rules are on the Scheduled Tasks API Overview.Example
Response format
Success response (201 Created)
automation matches the scheduled task object without runCount.
Error handling
An invalid body returns
400 with message Invalid request and an errors array. Missing clock fields use timeOfDay is required for scheduled automations, dayOfWeek is required for weekly automations, dayOfMonth is required for monthly automations, or daysOfWeek is required for selected weekday automations. An invalid timezone uses timezone must be a valid IANA identifier. modelMode EXPLICIT without modelId uses modelId is required for explicit model selection. An expired trial returns 403 with code TRIAL_EXPIRED and message Your trial has expired. Upgrade to continue.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.