godo.HostedAgentTriggers.Get()
Generated on 5 Nov 2026
from godo version
v1.236.0
Usage
client.HostedAgentTriggers.Get(ctx context.Context, triggerID string) (*godo.HostedAgentTrigger, *godo.Response, error)Description
Get returns a single trigger by ID.
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.HostedAgentTriggerOutputReadSessionTemplatestringBoundSessionIDstringWebhook*godo.HostedAgentWebhookConfigCron*godo.HostedAgentCronConfigCreatedAtgodo.TimestampUpdatedAtgodo.Timestamp
Request Sample
More Information
See the Go package documentation for the source of this method.