Create task
Creates a new AI task. Use trigger_type to schedule it: immediate runs once right away, cron runs on a cron expression, interval runs every N seconds, once runs at a specific scheduled_at, event runs in response to account events, including another task finishing: event_conditions: {event_type: "task_run.completed", after_task_id: "task_..."} runs it after each real run of that task completes, so a step that depends on another never needs a polling schedule. For recurring tasks (cron/interval), add an optional condition_script — a cheap JavaScript gate that runs before each fire (no LLM, no credits) and skips the run unless its last expression is truthy, so the agent only wakes when there's work to do.
Request
- Base URL: https://api.crevio.co/v1
- URL: https://api.crevio.co/v1/tasks
- Auth: API key in header Authorization
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
Response
Task created
Changes
No recorded changes to this operation across all 2 revisions of this API.