> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Playbook Runs

Retrieve a paginated list of playbook runs.

<Note>
  External Documentation

  To learn more, visit the [Mattermost documentation](https://developers.mattermost.com/api-documentation/#/operations/listPlaybookRuns).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                           |
  | ---------------- | --------------------------------------------------------------------- |
  | Channel ID       | The ID of the channel that the returned runs must be associated with. |
  | Direction        | The sort direction for the returned runs.                             |
  | Page             | The page number to retrieve, starting at `0`.                         |
  | Per Page         | The maximum number of items to retrieve per page.                     |
  | Return All Pages | Automatically fetch all resources, page by page.                      |
  | Search Term      | The search term to filter the playbook name by.                       |
  | Sort             | The field to sort the returned runs by.                               |
  | Statuses         | The status to filter the returned runs by.                            |
  | Team ID          | The ID of the team. Can be obtained from the `List All Teams` action. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter      | Description                                                                                                                              |
  | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
  | Omit Ended     | Select to return only active runs.                                                                                                       |
  | Owner User ID  | The ID of the user to filter runs by owner. Use `me` to filter by the authenticated user. Can be obtained using the `List Users` action. |
  | Participant ID | The ID of a user that must be a participant in the returned runs. Use `me` to filter by the authenticated user.                          |
  | Since          | The date and time of the created or modified to filter the playbook runs since.                                                          |
</div>

## Example Output

```json theme={"dark"}
{
	"total_count": 305,
	"page_count": 2,
	"has_more": true,
	"items": [
		{
			"id": "mx3xyzdojfgyfdx8sc8of1gdme",
			"name": "Server down in EU cluster",
			"summary": "There is one server in the EU cluster that is not responding since April 12.",
			"is_active": true,
			"owner_user_id": "bqnbdf8uc0a8yz4i39qrpgkvtg",
			"team_id": "61ji2mpflefup3cnuif80r5rde",
			"channel_id": "hwrmiyzj3kadcilh3ukfcnsbt6",
			"create_at": 1606807976289,
			"end_at": 0,
			"delete_at": 0,
			"active_stage": 1,
			"active_stage_title": "Triage issue",
			"post_id": "b2ntfcrl4ujivl456ab4b3aago",
			"playbook_id": "0y4a0ntte97cxvfont8y84wa7x",
			"checklists": [
				{
					"id": "6f6nsgxzoq84fqh1dnlyivgafd",
					"title": "Triage issue",
					"items": [
						{
							"id": "6f6nsgxzoq84fqh1dnlyivgafd",
							"title": "Gather information from customer.",
							"state": "closed",
							"state_modified": 1607774621321,
							"assignee_id": "pisdatkjtdlkdhht2v4inxuzx1",
							"assignee_modified": 1608897821125,
							"command": "/opsgenie on-call",
							"command_last_run": 1608552221019,
							"description": "Ask the customer for more information in [Zendesk](https://www.zendesk.com/).",
							"delete_at": 1607774621321,
							"due_date": 1607774621321,
							"task_actions": [
								{
									"trigger": {},
									"actions": [
										{}
									]
								}
							],
							"update_at": 1607774621321,
							"condition_id": "6f6nsgxzoq84fqh1dnlyivgafd",
							"condition_action": "hidden",
							"condition_reason": "Severity is Critical AND Status is not Closed"
						}
					]
				}
			]
		}
	]
}
```

## Workflow Library Example

[List Playbook Runs with Mattermost and Send Results Via Email](https://library.blinkops.com/workflows/list-playbook-runs-with-mattermost-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-playbook-runs-with-mattermost-and-send-results-via-email/canvas" />
</div>
