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.harness.get_trigger_by_session(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
)
Returns JSON
Raises HttpResponseError
Description
Returns the trigger that produced (fresh) or binds (reuse) the given session. Resolves to the row even after the trigger is soft-deleted.
Parameters
session_id string required
Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
The session UUID.
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/by-session/{session_id} in the API reference for additional detail on responses, headers, parameters, and more.