> ## 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 Campaigns

Get a list of campaigns with optional filtering.

<Note>
  External Documentation

  To learn more, visit the [Living Security documentation](https://docs.api.livingsecurity.com/reference/list_campaigns_v1_training_campaigns_get).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                    |
  | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Audience Type    | Filter results by the campaign's audience type.                                                                                                                                                                                                                                                |
  | Campaign ID      | Filter results by the campaign's ID.                                                                                                                                                                                                                                                           |
  | Cursor           | Pagination cursor returned from a previous request. If this value is provided, results continue from the last cursor and any other specified search attributes or terms will be ignored.                                                                                                       |
  | Name             | Filter results by the campaign's name.                                                                                                                                                                                                                                                         |
  | Page             | The page to show results from, defaults to `1`.                                                                                                                                                                                                                                                |
  | Page Size        | The maximum number of results to return, defaults to `20`.                                                                                                                                                                                                                                     |
  | Return All Pages | Automatically fetch all resources, page by page.                                                                                                                                                                                                                                               |
  | Sort             | Sort the returned campaigns by their properties.<br /><br />The format of the sort criteria is: `field\|direction`. Direction can be either `asc` (ascending) or `desc` (descending) order.<br /><br />Defaults to `campaign_id\|asc`. When the direction is not specified, defaults to `asc`. |
  | State            | Filter results by the campaign's state.                                                                                                                                                                                                                                                        |
</div>

## Example Output

```json theme={"dark"}
{
	"data": [
		{
			"campaign_id": "string",
			"accuracy": 0,
			"campaign": {
				"name": "string",
				"description": "string",
				"test": true,
				"created": "2025-04-28T11:47:39.227Z",
				"date_end": "2025-04-28T11:47:39.227Z",
				"date_start": "2025-04-28T11:47:39.227Z",
				"participant_count": 0,
				"audience_type": "string",
				"audience_count": 0,
				"audiences": [
					{
						"participant_count": 0,
						"name": "string",
						"id": "string"
					}
				],
				"modified": "2025-04-28T11:47:39.227Z",
				"state": "string"
			},
			"assignments_completed": 0,
			"audience_count": 0,
			"average_completion_time": 0,
			"completion_rate": 0,
			"assignment_completion_rate": 0,
			"current_participant_count": 0,
			"delinquency_rate": 0,
			"overdue": 0,
			"not_started": 0,
			"underway": 0,
			"completed": 0,
			"total_assignments": 0,
			"total_questions_answered": 0,
			"total_questions_correct": 0
		}
	],
	"meta": {
		"total": 0,
		"returned": 0,
		"pagination": {
			"page_size": 0,
			"page": 0,
			"next": "string"
		}
	}
}
```

## Workflow Library Example

[List Campaigns with Living Security and Send Results Via Email](https://library.blinkops.com/workflows/list-campaigns-with-living-security-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-campaigns-with-living-security-and-send-results-via-email/canvas" />
</div>
