godo.HostedAgentTriggers.Get()
Generated on 25 Nov 2026
from godo version
v1.246.0
Usage
client.HostedAgentTriggers.Get(ctx context.Context, triggerID string) (*godo.HostedAgentTrigger, *godo.Response, error)Description
Get returns a single trigger by ID.
This method sends a GET request to /v2/harness-runtime/triggers/{}.
Parameters
triggerIDstring required
Returns
- *godo.HostedAgentTrigger
- *godo.Response
The HTTP response, with pagination
Links,Meta, andRatelimit information.- error
Non-nil when the request fails. API errors are returned as
*godo.ErrorResponse.
Fields of godo.HostedAgentTrigger
HostedAgentTrigger is a webhook or cron automation bound to an agent/session.
TriggerIDstringTeamIDint64Kindgodo.HostedAgentTriggerKindNamestringStatusgodo.HostedAgentTriggerStatusSessionModegodo.HostedAgentTriggerSessionModeAgentKindgodo.HostedAgentKindPromptTemplatestringOutput*godo.HostedAgentTriggerOutputReadSessionTemplatestringBoundSessionIDstringKeepSessionAwakeboolKeepSessionAwake(reuse only) lets the trigger run while its bound
session is awake and leaves the session awake after the run, for a
session a user keeps open in Agent Canvas.Webhook*godo.HostedAgentWebhookConfigCron*godo.HostedAgentCronConfigCreatedAtgodo.TimestampUpdatedAtgodo.Timestamp
Request Sample
More Information
See GET /v2/harness-runtime/triggers/{} in the API reference for additional detail on responses, headers, parameters, and more.
See the Go package documentation for the source of this method.