Skip to main content
GET
/
v1
/
workflows
/
{id}
Retrieves a workflow
curl --request GET \
  --url https://api.rootly.com/v1/workflows/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "e10bc5c4-2de6-4abd-b69a-4dfa93693170",
    "type": "workflows",
    "attributes": {
      "name": "Monty Python and the Holy Grail",
      "slug": "monty-python-and-the-holy-grail",
      "description": null,
      "command": "incident-monty-python-and-the-holy-grail",
      "command_feedback_enabled": true,
      "repeat_every_duration": null,
      "repeat_condition_duration_since_first_run": "",
      "repeat_condition_number_of_repeats": 0,
      "continuously_repeat": false,
      "repeat_on": [],
      "wait": null,
      "enabled": true,
      "locked": false,
      "position": 1,
      "workflow_group_id": null,
      "trigger_params": {
        "trigger_type": "alert",
        "triggers": [],
        "incident_visibilities": [],
        "incident_kinds": [
          "normal"
        ],
        "incident_statuses": [],
        "incident_inactivity_duration": null,
        "incident_condition": "ALL",
        "incident_condition_visibility": "ANY",
        "incident_condition_kind": "IS",
        "incident_condition_status": "ANY",
        "incident_condition_sub_status": "ANY",
        "incident_condition_environment": "ANY",
        "incident_condition_severity": "ANY",
        "incident_condition_incident_type": "ANY",
        "incident_condition_incident_roles": "ANY",
        "incident_condition_service": "ANY",
        "incident_condition_functionality": "ANY",
        "incident_condition_group": "ANY",
        "incident_condition_cause": "ANY",
        "incident_condition_summary": null,
        "incident_condition_started_at": null,
        "incident_condition_detected_at": null,
        "incident_condition_acknowledged_at": null,
        "incident_condition_mitigated_at": null,
        "incident_condition_resolved_at": null,
        "incident_conditional_inactivity": null,
        "incident_post_mortem_condition_cause": "ANY",
        "alert_condition": "ALL",
        "alert_condition_source": "ANY",
        "alert_condition_source_use_regexp": false,
        "alert_sources": [],
        "alert_condition_label": "ANY",
        "alert_condition_label_use_regexp": false,
        "alert_condition_status": "ANY",
        "alert_condition_status_use_regexp": false,
        "alert_statuses": [],
        "alert_labels": [],
        "alert_condition_payload": "ANY",
        "alert_condition_payload_use_regexp": false,
        "alert_payload": [],
        "alert_query_payload": null
      },
      "severity_ids": [],
      "environment_ids": [],
      "incident_type_ids": [],
      "incident_role_ids": [],
      "service_ids": [],
      "functionality_ids": [],
      "group_ids": [],
      "updated_at": "2025-12-18T16:49:11.378-08:00",
      "created_at": "2025-12-18T16:49:11.007-08:00"
    },
    "relationships": {
      "custom_field_selections": {
        "data": []
      },
      "workflow_tasks": {
        "data": []
      },
      "workflow_runs": {
        "data": []
      },
      "alert_field_conditions": {
        "data": [
          {
            "id": "3eb84e63-c390-44f0-8e17-9059a501934c",
            "type": "workflow_alert_field_conditions"
          },
          {
            "id": "d325b99f-21c6-4247-b31c-ad3ff98f277d",
            "type": "workflow_alert_field_conditions"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "3eb84e63-c390-44f0-8e17-9059a501934c",
      "type": "workflow_alert_field_conditions",
      "attributes": {
        "alert_field_id": "106de76a-85da-4bc2-9b61-de9915ed9d99",
        "condition_type": "IS",
        "values": [
          "staging"
        ]
      }
    },
    {
      "id": "d325b99f-21c6-4247-b31c-ad3ff98f277d",
      "type": "workflow_alert_field_conditions",
      "attributes": {
        "alert_field_id": "106de76a-85da-4bc2-9b61-de9915ed9d99",
        "condition_type": "ANY",
        "values": [
          "test",
          "dev"
        ]
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
required

Resource UUID

Query Parameters

include
enum<string>

comma separated if needed. eg: form_field_conditions,alert_field_conditions

Available options:
form_field_conditions,
alert_field_conditions,
genius_tasks,
genius_workflow_runs

Response

does not serialize alert field conditions

data
object
required