Create a task
Creates a task bound to a workflow. By default the task is placed in the workflow's initial state; passing state places it directly in that named state instead — an alternate entry point for starting a task mid-flow (e.g. "a new recorte for an existing theme by id"), rather than re-submitting from the initial state and hoping a guard or similarity gate recognizes it. Entering the resulting state, initial or named, behaves identically: that state's on_enter automation fires and its stalled_after clock arms.
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/tasks
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Headers
The request's deduplication key. Equivalent to idempotency_key in the request body; sending both with different values is 400 VALIDATION_FAILED. A non-empty string of at most 255 characters.
Request body
Example request
{
"metadata": {
"author": "John",
"revision": 2
}
}Response
The idempotency key already names a task created by the same request; that task is returned as it is now and no second task is created
Example response
{
"workflow_version": 1,
"metadata": {
"author": "John",
"revision": 2
}
}Changes
No recorded changes to this operation across all 1 revision of this API.