Skip to main content
POST
/
v1
/
workflows
/
{workflow_id}
/
workflow_tasks
Creates a workflow task
curl --request POST \
  --url https://api.rootly.com/v1/workflows/{workflow_id}/workflow_tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "workflow_tasks",
    "attributes": {
      "name": "<string>",
      "position": 123,
      "skip_on_failure": true,
      "enabled": true,
      "task_params": "<any>"
    }
  }
}'
{
  "data": {
    "id": "aad40332-2cdb-4c50-bfb2-f2c841d1387d",
    "type": "workflow_tasks",
    "attributes": {
      "workflow_id": "b9709bad-110c-46ae-8f15-3d123eff6a15",
      "task_params": {
        "task_type": "send_email",
        "from": "Rootly <[email protected]>",
        "to": [
          "[email protected]"
        ],
        "cc": [],
        "bcc": [],
        "subject": "Hello from Rootly",
        "preheader": null,
        "body": "Hello from Rootly",
        "include_header": true,
        "include_footer": true,
        "custom_logo_url": null
      },
      "name": "My Custom Name",
      "position": 2,
      "skip_on_failure": false,
      "enabled": true,
      "created_at": "2025-12-02T11:52:01.898-08:00",
      "updated_at": "2025-12-02T11:52:01.898-08:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workflow_id
string
required

Body

application/vnd.api+json
data
object
required

Response

workflow task created

data
object
required