For AI agents: The documentation index is at 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).
Usage
client.v2.agents.triggers.byTrigger_id(trigger_id).get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Get_trigger_response>
Description
GetTrigger returns a single trigger by id. Write-only fields (webhook secret, output destination, session_template env values) are never included.
Parameters
trigger_id string required
Example: b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d
The trigger UUID.
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.agents.triggers
.byTrigger_id("b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d").get();
Response Example
Show Response Example
{
"trigger": {
"trigger_id": "b1a0c6de-1f2e-4a3b-9c8d-0e1f2a3b4c5d",
"kind": "webhook",
"name": "nightly-deploy-check",
"status": "active",
"session_mode": "fresh",
"agent_kind": "AGENT_KIND_UNSPECIFIED",
"prompt_template": "Review the latest push and summarize risks.",
"output": {
"mode": "email",
"email_configured": true,
"slack_configured": false
},
"session_template": "",
"bound_session_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"webhook": {
"provider": "github",
"webhook_url": "https://api.digitalocean.com/v2/agents/triggers/b1a0.../webhook"
},
"cron": {
"cron_expr": "0 9 * * 1-5",
"timezone": "America/New_York",
"next_run_at": "2026-07-27T13:00:00Z"
},
"created_at": "2026-07-27T12:00:00Z",
"updated_at": "2026-07-27T12:00:00Z"
}
}
See /v2/agents/triggers/{trigger_id} in the API reference for additional detail on responses, headers, parameters, and more.