Webhooks
Models
type BetaWebhookAgentArchivedEventData struct { Type: "agent.archived"; ID; OrganizationID; WorkspaceID }
ID of the agent that triggered the event.
type BetaWebhookAgentCreatedEventData struct { Type: "agent.created"; ID; OrganizationID; WorkspaceID }
ID of the agent that triggered the event.
type BetaWebhookAgentDeletedEventData struct { Type: "agent.deleted"; ID; OrganizationID; WorkspaceID }
ID of the agent that triggered the event.
type BetaWebhookAgentUpdatedEventData struct { Type: "agent.updated"; ID; OrganizationID; WorkspaceID }
ID of the agent that triggered the event.
type BetaWebhookDeploymentArchivedEventData struct { Type: "deployment.archived"; ID; OrganizationID; WorkspaceID }
ID of the deployment that triggered the event.
type BetaWebhookDeploymentCreatedEventData struct { Type: "deployment.created"; ID; OrganizationID; WorkspaceID }
ID of the deployment that triggered the event.
type BetaWebhookDeploymentDeletedEventData struct { Type: "deployment.deleted"; ID; OrganizationID; WorkspaceID }
ID of the deployment that triggered the event.
type BetaWebhookDeploymentPausedEventData struct { Type: "deployment.paused"; ID; OrganizationID; WorkspaceID }
ID of the deployment that triggered the event.
type BetaWebhookDeploymentRunFailedEventData struct { Type: "deployment_run.failed"; ID; OrganizationID; WorkspaceID }
ID of the deployment run that triggered the event.
type BetaWebhookDeploymentRunStartedEventData struct { Type: "deployment_run.started"; ID; OrganizationID; WorkspaceID }
ID of the deployment run that triggered the event.
type BetaWebhookDeploymentRunSucceededEventData struct { Type: "deployment_run.succeeded"; ID; OrganizationID; WorkspaceID }
ID of the deployment run that triggered the event.
type BetaWebhookDeploymentUnpausedEventData struct { Type: "deployment.unpaused"; ID; OrganizationID; WorkspaceID }
ID of the deployment that triggered the event.
type BetaWebhookDeploymentUpdatedEventData struct { Type: "deployment.updated"; ID; OrganizationID; WorkspaceID }
ID of the deployment that triggered the event.
type BetaWebhookEnvironmentArchivedEventData struct { Type: "environment.archived"; ID; OrganizationID; WorkspaceID }
ID of the environment that triggered the event.
type BetaWebhookEnvironmentCreatedEventData struct { Type: "environment.created"; ID; OrganizationID; WorkspaceID }
ID of the environment that triggered the event.
type BetaWebhookEnvironmentDeletedEventData struct { Type: "environment.deleted"; ID; OrganizationID; WorkspaceID }
ID of the environment that triggered the event.
type BetaWebhookEnvironmentUpdatedEventData struct { Type: "environment.updated"; ID; OrganizationID; WorkspaceID }
ID of the environment that triggered the event.
type UnwrapWebhookEvent struct { Type: "event"; ID; CreatedAt; Data }
Object type. Always event for webhook payloads.
Unique event identifier for idempotency.
CreatedAt TimeRFC 3339 timestamp when the event occurred.
RFC 3339 timestamp when the event occurred.
type BetaWebhookEventDataUnion interface{…}
type BetaWebhookMemoryStoreArchivedEventData struct { Type: "memory_store.archived"; ID; OrganizationID; WorkspaceID }
ID of the memory store that triggered the event.
type BetaWebhookMemoryStoreCreatedEventData struct { Type: "memory_store.created"; ID; OrganizationID; WorkspaceID }
ID of the memory store that triggered the event.
type BetaWebhookMemoryStoreDeletedEventData struct { Type: "memory_store.deleted"; ID; OrganizationID; WorkspaceID }
ID of the memory store that triggered the event.
type BetaWebhookSessionArchivedEventData struct { Type: "session.archived"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionBudgetReachedEventData struct { Type: "session.budget_reached"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionCreatedEventData struct { Type: "session.created"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionDeletedEventData struct { Type: "session.deleted"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionIdledEventData struct { Type: "session.idled"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionOutcomeEvaluationEndedEventData struct { Type: "session.outcome_evaluation_ended"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionPendingEventData struct { Type: "session.pending"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionRequiresActionEventData struct { Type: "session.requires_action"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionRunningEventData struct { Type: "session.running"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionStatusIdledEventData struct { Type: "session.status_idled"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionStatusRescheduledEventData struct { Type: "session.status_rescheduled"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionStatusRunStartedEventData struct { Type: "session.status_run_started"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionStatusTerminatedEventData struct { Type: "session.status_terminated"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookSessionThreadCreatedEventData struct { Type: "session.thread_created"; ID; OrganizationID; /* 2 more */ }
ID of the session that triggered the event.
ID of the session thread this event refers to.
type BetaWebhookSessionThreadIdledEventData struct { Type: "session.thread_idled"; ID; OrganizationID; /* 2 more */ }
ID of the session that triggered the event.
ID of the session thread this event refers to.
type BetaWebhookSessionThreadTerminatedEventData struct { Type: "session.thread_terminated"; ID; OrganizationID; /* 2 more */ }
ID of the session that triggered the event.
ID of the session thread this event refers to.
type BetaWebhookSessionUpdatedEventData struct { Type: "session.updated"; ID; OrganizationID; WorkspaceID }
ID of the session that triggered the event.
type BetaWebhookUserProfileEnforcementActionOpenedEventData struct { Type: "user_profile.enforcement_action_opened"; ID; EnforcementActionID; OrganizationID }
ID of the user profile the enforcement action is on.
ID (enac_...) of the enforcement action that was opened or resolved.
type BetaWebhookUserProfileEnforcementActionResolvedEventData struct { Type: "user_profile.enforcement_action_resolved"; ID; EnforcementActionID; OrganizationID }
ID of the user profile the enforcement action is on.
ID (enac_...) of the enforcement action that was opened or resolved.
type BetaWebhookVaultArchivedEventData struct { Type: "vault.archived"; ID; OrganizationID; WorkspaceID }
ID of the vault that triggered the event.
type BetaWebhookVaultCreatedEventData struct { Type: "vault.created"; ID; OrganizationID; WorkspaceID }
ID of the vault that triggered the event.
type BetaWebhookVaultCredentialArchivedEventData struct { Type: "vault_credential.archived"; ID; OrganizationID; /* 2 more */ }
ID of the vault credential that triggered the event.
ID of the vault that owns this credential.
type BetaWebhookVaultCredentialCreatedEventData struct { Type: "vault_credential.created"; ID; OrganizationID; /* 2 more */ }
ID of the vault credential that triggered the event.
ID of the vault that owns this credential.
type BetaWebhookVaultCredentialDeletedEventData struct { Type: "vault_credential.deleted"; ID; OrganizationID; /* 2 more */ }
ID of the vault credential that triggered the event.
ID of the vault that owns this credential.
type BetaWebhookVaultCredentialRefreshFailedEventData struct { Type: "vault_credential.refresh_failed"; ID; OrganizationID; /* 2 more */ }
ID of the vault credential that triggered the event.
ID of the vault that owns this credential.
type BetaWebhookVaultDeletedEventData struct { Type: "vault.deleted"; ID; OrganizationID; WorkspaceID }
ID of the vault that triggered the event.