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": {
      "task_params": {
        "priority": "high",
        "summary": "<string>",
        "status": "open",
        "task_type": "add_action_item",
        "attribute_to_query_by": "jira_issue_id",
        "query_value": "<string>",
        "incident_role_id": "<string>",
        "assigned_to_user_id": "<string>",
        "assigned_to_user": {
          "id": "<string>",
          "name": "<string>"
        },
        "kind": "<string>",
        "description": "<string>",
        "post_to_incident_timeline": true,
        "custom_fields_mapping": "<string>",
        "post_to_slack_channels": [
          {
            "id": "<string>",
            "name": "<string>"
          }
        ]
      },
      "name": "<string>",
      "position": 123,
      "skip_on_failure": true,
      "enabled": true
    }
  }
}
'
{
  "data": {
    "id": "f8debbf8-e47c-435a-bf0e-53fc1c866356",
    "type": "workflow_tasks",
    "attributes": {
      "workflow_id": "1b01cb33-2f9f-421b-84de-91718847609e",
      "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-22T14:53:54.763-08:00",
      "updated_at": "2025-12-22T14:53:54.763-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