POST
/
v1
/
workflows
/
{workflow_id}
/
workflow_tasks
curl --request POST \
  --url https://api.rootly.com/v1/workflows/%7Bworkflow_id%7D/workflow_tasks \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/vnd.api+json'
{
  "data": {
    "id": "92a52c9e-3d9a-4a80-81e5-e2af44938b14",
    "type": "workflow_tasks",
    "attributes": {
      "workflow_id": "9da6de8c-bec2-4930-b8e1-5696233dd818",
      "task_params": {
        "task_type": "send_email",
        "from": "Rootly <no-reply@rootly.com>",
        "to": [
          "test@example.com"
        ],
        "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-03-05T15:07:44.285-08:00",
      "updated_at": "2025-03-05T15:07:44.285-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

201
application/vnd.api+json
workflow task created
data
object
required