> This page is for Itential Platform Cloud.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itential.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server.

# List triggers

GET https://example.itential.io/trigger-service/triggers

Returns one card for each trigger set the caller can read, showing its derived origin trigger. Optionally returns only the trigger sets under an automationId.

Reference: https://docs.itential.com/itential-cloud/api-reference/trigger-service/triggers-search-automation-triggers

## Authentication

- `Authorization` header (basic auth, required) — Basic authentication of the form `Basic <base64(username:password)>`.

## Request

### Query parameters

- `automationId` (string, optional) — When given, lists only the TriggerSets under this automation. When omitted, lists every TriggerSet the caller may read.
- `kind` (enum, optional) — Filters to TriggerSets whose derived origin Trigger is of this kind.
  - Allowed values: `on_demand`, `schedule`, `event`
- `name` (string, optional) — Filters to Triggers whose owning TriggerSet's name contains this value.
- `sort` (enum, optional) — The field to sort by.
  - Allowed values: `name`
- `order` (enum, optional) — The sort direction.
  - Allowed values: `asc`, `desc`
- `skip` (double, optional) — Number of items to skip. Defaults to 0.
- `limit` (double, optional) — Number of items to return (1-1000). Defaults to 25.

## Response

### 200

result

- `data` (list of TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItems, required)
- `total` (double, required)

## Errors

### 500 Internal Server Error

Error response from API

- `any`

## Types

### TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItems

- `triggerSetId` (string, required)
- `asset` (TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsAsset, required)
- `id` (string, required)
- `kind` (enum, required)
  - Allowed values: `on_demand`, `schedule`, `event`
- `name` (string, required)
- `description` (string, required)
- `createdBy` (TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsCreatedBy, required) — The user who created the trigger. `principalId` is `Pronghorn` when no creator is recorded.
- `createdAt` (string, required)
- `updatedAt` (string, required)
- `lastExecuted` (string, optional) — When the trigger last fired, whatever fired it. Absent if it never has.
- `variant` (enum, optional) — Always present when kind === on_demand; absent for every other kind.
  - Allowed values: `manual`, `api`
- `routeName` (string, optional) — Present only when variant === api.
- `jst` (string, optional) — Present only when variant === api.
- `bodySchema` (TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsBodySchema, optional) — The JSON schema stored for the POST body callers send, exactly as saved. Present only when variant === api and one was given.
- `formId` (string, optional) — Present only when variant === manual, or kind === schedule, and the Trigger has a form.
- `inputs` (TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsInputs, optional) — Present only when variant === manual. Exactly as stored.
- `legacyWrapper` (boolean, optional) — Legacy field, kept only to support workflows written for the old input shape: before July 2023, Operations Manager passed form values to the workflow inside one variable named `formData`. Present for a manual on-demand, schedule or event trigger; absent when variant === api.
- `subscription` (TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsSubscription, optional) — Present only when kind === event.
- `nextRunAt` (string, optional) — Present only when kind === schedule.
- `lastRunAt` (string, optional) — Present only when kind === schedule.
- `status` (enum, optional) — Present only when kind === schedule.
  - Allowed values: `active`, `paused`, `completed`, `expired`
- `serviceId` (string, optional) — Present only when a linked Service exists.

### TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsAsset

- `id` (string, required)
- `type` (enum, required)
  - Allowed values: `workflows`, `agents`, `ucm_compliance_plans`, `resource_models`

### TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsCreatedBy

The user who created the trigger. `principalId` is `Pronghorn` when no creator is recorded.

- `principalId` (string, required) — Identifier of the account.
- `displayName` (string, optional) — The account's username. Absent when the account no longer exists, or when it could not be looked up.
- `inactive` (boolean, optional) — Whether the account has been deactivated. Present only when the account was found: `true` for a deactivated account, `false` for an active one. Absent, like `displayName`, when the account no longer exists or could not be looked up; treat absence as not deactivated.
- `email` (string, optional) — The account's email address. Present only when the account was found and has an email recorded; absent, like `displayName`, when the account no longer exists, could not be looked up, or has no email.

### TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsBodySchema

The JSON schema stored for the POST body callers send, exactly as saved. Present only when variant === api and one was given.

### TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsInputs

Present only when variant === manual. Exactly as stored.

### TriggerServiceTriggersGetResponsesContentApplicationJsonSchemaDataItemsSubscription

Present only when kind === event.

- `topic` (string, required)

## Examples

**Response**

```json
{
  "data": [
    {
      "triggerSetId": "string",
      "asset": {
        "id": "string",
        "type": "workflows"
      },
      "id": "string",
      "kind": "on_demand",
      "name": "string",
      "description": "string",
      "createdBy": {
        "principalId": "string",
        "displayName": "string",
        "inactive": true,
        "email": "string"
      },
      "createdAt": "string",
      "updatedAt": "string",
      "lastExecuted": "string",
      "variant": "manual",
      "routeName": "string",
      "jst": "string",
      "bodySchema": {},
      "formId": "string",
      "inputs": {},
      "legacyWrapper": true,
      "subscription": {
        "topic": "string"
      },
      "nextRunAt": "string",
      "lastRunAt": "string",
      "status": "active",
      "serviceId": "string"
    }
  ],
  "total": 1.1
}
```

**SDK Code**

```python
import requests

url = "https://example.itential.io/trigger-service/triggers"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://example.itential.io/trigger-service/triggers';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://example.itential.io/trigger-service/triggers"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://example.itential.io/trigger-service/triggers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://example.itential.io/trigger-service/triggers")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://example.itential.io/trigger-service/triggers');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://example.itential.io/trigger-service/triggers");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://example.itential.io/trigger-service/triggers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```