Claude Platform Docs

Webhooks

Unwrap
client.Beta.Webhooks.Unwrap(ctx) error
Parse Unverified
client.Beta.Webhooks.ParseUnverified(ctx) error
Models
type BetaWebhookAgentArchivedEventData struct{…}
ID string

ID of the agent that triggered the event.

OrganizationID string
Type AgentArchived
WorkspaceID string
type BetaWebhookAgentCreatedEventData struct{…}
ID string

ID of the agent that triggered the event.

OrganizationID string
Type AgentCreated
WorkspaceID string
type BetaWebhookAgentDeletedEventData struct{…}
ID string

ID of the agent that triggered the event.

OrganizationID string
Type AgentDeleted
WorkspaceID string
type BetaWebhookAgentUpdatedEventData struct{…}
ID string

ID of the agent that triggered the event.

OrganizationID string
Type AgentUpdated
WorkspaceID string
type BetaWebhookDeploymentArchivedEventData struct{…}
ID string

ID of the deployment that triggered the event.

OrganizationID string
Type DeploymentArchived
WorkspaceID string
type BetaWebhookDeploymentCreatedEventData struct{…}
ID string

ID of the deployment that triggered the event.

OrganizationID string
Type DeploymentCreated
WorkspaceID string
type BetaWebhookDeploymentDeletedEventData struct{…}
ID string

ID of the deployment that triggered the event.

OrganizationID string
Type DeploymentDeleted
WorkspaceID string
type BetaWebhookDeploymentPausedEventData struct{…}
ID string

ID of the deployment that triggered the event.

OrganizationID string
Type DeploymentPaused
WorkspaceID string
type BetaWebhookDeploymentRunFailedEventData struct{…}
ID string

ID of the deployment run that triggered the event.

OrganizationID string
Type DeploymentRunFailed
WorkspaceID string
type BetaWebhookDeploymentRunStartedEventData struct{…}
ID string

ID of the deployment run that triggered the event.

OrganizationID string
Type DeploymentRunStarted
WorkspaceID string
type BetaWebhookDeploymentRunSucceededEventData struct{…}
ID string

ID of the deployment run that triggered the event.

OrganizationID string
Type DeploymentRunSucceeded
WorkspaceID string
type BetaWebhookDeploymentUnpausedEventData struct{…}
ID string

ID of the deployment that triggered the event.

OrganizationID string
Type DeploymentUnpaused
WorkspaceID string
type BetaWebhookDeploymentUpdatedEventData struct{…}
ID string

ID of the deployment that triggered the event.

OrganizationID string
Type DeploymentUpdated
WorkspaceID string
type BetaWebhookEnvironmentArchivedEventData struct{…}
ID string

ID of the environment that triggered the event.

OrganizationID string
Type EnvironmentArchived
WorkspaceID string
type BetaWebhookEnvironmentCreatedEventData struct{…}
ID string

ID of the environment that triggered the event.

OrganizationID string
Type EnvironmentCreated
WorkspaceID string
type BetaWebhookEnvironmentDeletedEventData struct{…}
ID string

ID of the environment that triggered the event.

OrganizationID string
Type EnvironmentDeleted
WorkspaceID string
type BetaWebhookEnvironmentUpdatedEventData struct{…}
ID string

ID of the environment that triggered the event.

OrganizationID string
Type EnvironmentUpdated
WorkspaceID string
type UnwrapWebhookEvent struct{…}
ID string

Unique event identifier for idempotency.

CreatedAt Time

RFC 3339 timestamp when the event occurred.

formatdate-time
One of the following:
Type Event

Object type. Always event for webhook payloads.

type BetaWebhookEventDataUnion interface{…}
One of the following:
type BetaWebhookMemoryStoreArchivedEventData struct{…}
ID string

ID of the memory store that triggered the event.

OrganizationID string
Type MemoryStoreArchived
WorkspaceID string
type BetaWebhookMemoryStoreCreatedEventData struct{…}
ID string

ID of the memory store that triggered the event.

OrganizationID string
Type MemoryStoreCreated
WorkspaceID string
type BetaWebhookMemoryStoreDeletedEventData struct{…}
ID string

ID of the memory store that triggered the event.

OrganizationID string
Type MemoryStoreDeleted
WorkspaceID string
type BetaWebhookSessionArchivedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionArchived
WorkspaceID string
type BetaWebhookSessionBudgetReachedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionBudgetReached
WorkspaceID string
type BetaWebhookSessionCreatedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionCreated
WorkspaceID string
type BetaWebhookSessionDeletedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionDeleted
WorkspaceID string
type BetaWebhookSessionIdledEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionIdled
WorkspaceID string
type BetaWebhookSessionOutcomeEvaluationEndedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionOutcomeEvaluationEnded
WorkspaceID string
type BetaWebhookSessionPendingEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionPending
WorkspaceID string
type BetaWebhookSessionRequiresActionEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionRequiresAction
WorkspaceID string
type BetaWebhookSessionRunningEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionRunning
WorkspaceID string
type BetaWebhookSessionStatusIdledEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionStatusIdled
WorkspaceID string
type BetaWebhookSessionStatusRescheduledEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionStatusRescheduled
WorkspaceID string
type BetaWebhookSessionStatusRunStartedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionStatusRunStarted
WorkspaceID string
type BetaWebhookSessionStatusTerminatedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionStatusTerminated
WorkspaceID string
type BetaWebhookSessionThreadCreatedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
SessionThreadID string

ID of the session thread this event refers to.

Type SessionThreadCreated
WorkspaceID string
type BetaWebhookSessionThreadIdledEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
SessionThreadID string

ID of the session thread this event refers to.

Type SessionThreadIdled
WorkspaceID string
type BetaWebhookSessionThreadTerminatedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
SessionThreadID string

ID of the session thread this event refers to.

Type SessionThreadTerminated
WorkspaceID string
type BetaWebhookSessionUpdatedEventData struct{…}
ID string

ID of the session that triggered the event.

OrganizationID string
Type SessionUpdated
WorkspaceID string
type BetaWebhookVaultArchivedEventData struct{…}
ID string

ID of the vault that triggered the event.

OrganizationID string
Type VaultArchived
WorkspaceID string
type BetaWebhookVaultCreatedEventData struct{…}
ID string

ID of the vault that triggered the event.

OrganizationID string
Type VaultCreated
WorkspaceID string
type BetaWebhookVaultCredentialArchivedEventData struct{…}
ID string

ID of the vault credential that triggered the event.

OrganizationID string
Type VaultCredentialArchived
VaultID string

ID of the vault that owns this credential.

WorkspaceID string
type BetaWebhookVaultCredentialCreatedEventData struct{…}
ID string

ID of the vault credential that triggered the event.

OrganizationID string
Type VaultCredentialCreated
VaultID string

ID of the vault that owns this credential.

WorkspaceID string
type BetaWebhookVaultCredentialDeletedEventData struct{…}
ID string

ID of the vault credential that triggered the event.

OrganizationID string
Type VaultCredentialDeleted
VaultID string

ID of the vault that owns this credential.

WorkspaceID string
type BetaWebhookVaultCredentialRefreshFailedEventData struct{…}
ID string

ID of the vault credential that triggered the event.

OrganizationID string
Type VaultCredentialRefreshFailed
VaultID string

ID of the vault that owns this credential.

WorkspaceID string
type BetaWebhookVaultDeletedEventData struct{…}
ID string

ID of the vault that triggered the event.

OrganizationID string
Type VaultDeleted
WorkspaceID string