---
title: godo.HostedAgentTriggers.List()
description: List enumerates the calling team&#39;s triggers.
product: Reference
url: https://docs.digitalocean.com/reference/godo/reference/hosted-agent-triggers/hosted-agent-triggers-list/
last_updated: "2026-11-05"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# godo.HostedAgentTriggers.List()

Generated on 5 Nov 2026 from godo version [`v1.236.0`](https://github.com/digitalocean/godo/releases/tag/v1.236.0)

## Usage

```go
client.HostedAgentTriggers.List(ctx context.Context, opt *godo.HostedAgentTriggerListOptions) (*godo.HostedAgentTriggersListResponse, *godo.Response, error)
```

## Description

`List` enumerates the calling team’s triggers.

## Parameters

`opt` \*godo.HostedAgentTriggerListOptions

### Fields of `godo.HostedAgentTriggerListOptions`

`HostedAgentTriggerListOptions` specifies optional list filters and pagination.

`PageSize` int

`PageToken` string

`Kind` godo.HostedAgentTriggerKind

`Status` godo.HostedAgentTriggerStatus

## Returns

\*godo.HostedAgentTriggersListResponse

\*godo.Response

The HTTP response, with pagination `Links`, `Meta`, and `Rate` limit information.

error

Non-nil when the request fails. API errors are returned as `*godo.ErrorResponse`.

### Fields of `godo.HostedAgentTriggersListResponse`

`HostedAgentTriggersListResponse` is returned by List.

`Triggers` \[]godo.HostedAgentTrigger

JSON key: `triggers`

`NextPageToken` string

Omitted from JSON when empty. JSON key: `next_page_token`

## Request Sample

## Show Request Sample

```go
package main

import (
	"context"
	"fmt"
	"log"
	"os"

	"github.com/digitalocean/godo"
)

func main() {
	client := godo.NewFromToken(os.Getenv("DIGITALOCEAN_TOKEN"))
	ctx := context.TODO()

	result, _, err := client.HostedAgentTriggers.List(ctx, &godo.HostedAgentTriggerListOptions{
		PageSize: 1234567,
		PageToken: "<your-page-token>",
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", result)
}
```

## More Information

See the [Go package documentation](https://pkg.go.dev/github.com/digitalocean/godo#HostedAgentTriggersServiceOp.List) for the source of this method.