웹훅
Unwrap
beta.webhooks.unwrap(payload, headers, key) -> BetaWebhookEventVerifies the webhook signature from the webhook-id, webhook-timestamp and webhook-signature
headers using your webhook signing key, then parses the payload into an event. Fails if the
signature is missing or invalid.
Parse Unverified
beta.webhooks.parse_unverified(payload) -> BetaWebhookEventParses a webhook payload into an event without verifying its signature. Prefer unwrap() unless
you have already verified the signature yourself.
Models
class BetaWebhookAgentArchivedEventData: type: "agent.archived"; id; organization_id; workspace_id
ID of the agent that triggered the event.
class BetaWebhookAgentCreatedEventData: type: "agent.created"; id; organization_id; workspace_id
ID of the agent that triggered the event.
class BetaWebhookAgentDeletedEventData: type: "agent.deleted"; id; organization_id; workspace_id
ID of the agent that triggered the event.
class BetaWebhookAgentUpdatedEventData: type: "agent.updated"; id; organization_id; workspace_id
ID of the agent that triggered the event.
class BetaWebhookDeploymentArchivedEventData: type: "deployment.archived"; id; organization_id; workspace_id
ID of the deployment that triggered the event.
class BetaWebhookDeploymentCreatedEventData: type: "deployment.created"; id; organization_id; workspace_id
ID of the deployment that triggered the event.
class BetaWebhookDeploymentDeletedEventData: type: "deployment.deleted"; id; organization_id; workspace_id
ID of the deployment that triggered the event.
class BetaWebhookDeploymentPausedEventData: type: "deployment.paused"; id; organization_id; workspace_id
ID of the deployment that triggered the event.
class BetaWebhookDeploymentRunFailedEventData: type: "deployment_run.failed"; id; organization_id; workspace_id
ID of the deployment run that triggered the event.
class BetaWebhookDeploymentRunStartedEventData: type: "deployment_run.started"; id; organization_id; workspace_id
ID of the deployment run that triggered the event.
class BetaWebhookDeploymentRunSucceededEventData: type: "deployment_run.succeeded"; id; organization_id; workspace_id
ID of the deployment run that triggered the event.
class BetaWebhookDeploymentUnpausedEventData: type: "deployment.unpaused"; id; organization_id; workspace_id
ID of the deployment that triggered the event.
class BetaWebhookDeploymentUpdatedEventData: type: "deployment.updated"; id; organization_id; workspace_id
ID of the deployment that triggered the event.
class BetaWebhookEnvironmentArchivedEventData: type: "environment.archived"; id; organization_id; workspace_id
ID of the environment that triggered the event.
class BetaWebhookEnvironmentCreatedEventData: type: "environment.created"; id; organization_id; workspace_id
ID of the environment that triggered the event.
class BetaWebhookEnvironmentDeletedEventData: type: "environment.deleted"; id; organization_id; workspace_id
ID of the environment that triggered the event.
class BetaWebhookEnvironmentUpdatedEventData: type: "environment.updated"; id; organization_id; workspace_id
ID of the environment that triggered the event.
class BetaWebhookEvent: type: "event"; id; created_at; data
Object type. Always event for webhook payloads.
Unique event identifier for idempotency.
created_at: datetimeRFC 3339 timestamp when the event occurred.
RFC 3339 timestamp when the event occurred.
data: BetaWebhookEventData
type BetaWebhookEventData = ...
class BetaWebhookMemoryStoreArchivedEventData: type: "memory_store.archived"; id; organization_id; workspace_id
ID of the memory store that triggered the event.
class BetaWebhookMemoryStoreCreatedEventData: type: "memory_store.created"; id; organization_id; workspace_id
ID of the memory store that triggered the event.
class BetaWebhookMemoryStoreDeletedEventData: type: "memory_store.deleted"; id; organization_id; workspace_id
ID of the memory store that triggered the event.
class BetaWebhookSessionArchivedEventData: type: "session.archived"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionBudgetReachedEventData: type: "session.budget_reached"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionCreatedEventData: type: "session.created"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionDeletedEventData: type: "session.deleted"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionIdledEventData: type: "session.idled"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionOutcomeEvaluationEndedEventData: type: "session.outcome_evaluation_ended"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionPendingEventData: type: "session.pending"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionRequiresActionEventData: type: "session.requires_action"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionRunningEventData: type: "session.running"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionStatusIdledEventData: type: "session.status_idled"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionStatusRescheduledEventData: type: "session.status_rescheduled"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionStatusRunStartedEventData: type: "session.status_run_started"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionStatusTerminatedEventData: type: "session.status_terminated"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookSessionThreadCreatedEventData: type: "session.thread_created"; id; organization_id; ... # 2 more
ID of the session that triggered the event.
ID of the session thread this event refers to.
class BetaWebhookSessionThreadIdledEventData: type: "session.thread_idled"; id; organization_id; ... # 2 more
ID of the session that triggered the event.
ID of the session thread this event refers to.
class BetaWebhookSessionThreadTerminatedEventData: type: "session.thread_terminated"; id; organization_id; ... # 2 more
ID of the session that triggered the event.
ID of the session thread this event refers to.
class BetaWebhookSessionUpdatedEventData: type: "session.updated"; id; organization_id; workspace_id
ID of the session that triggered the event.
class BetaWebhookUserProfileEnforcementActionOpenedEventData: type: "user_profile.enforcement_action_opened"; id; enforcement_action_id; organization_id
ID of the user profile the enforcement action is on.
ID (enac_...) of the enforcement action that was opened or resolved.
class BetaWebhookUserProfileEnforcementActionResolvedEventData: type: "user_profile.enforcement_action_resolved"; id; enforcement_action_id; organization_id
ID of the user profile the enforcement action is on.
ID (enac_...) of the enforcement action that was opened or resolved.
class BetaWebhookVaultArchivedEventData: type: "vault.archived"; id; organization_id; workspace_id
ID of the vault that triggered the event.
class BetaWebhookVaultCreatedEventData: type: "vault.created"; id; organization_id; workspace_id
ID of the vault that triggered the event.
class BetaWebhookVaultCredentialArchivedEventData: type: "vault_credential.archived"; id; organization_id; ... # 2 more
ID of the vault credential that triggered the event.
ID of the vault that owns this credential.
class BetaWebhookVaultCredentialCreatedEventData: type: "vault_credential.created"; id; organization_id; ... # 2 more
ID of the vault credential that triggered the event.
ID of the vault that owns this credential.
class BetaWebhookVaultCredentialDeletedEventData: type: "vault_credential.deleted"; id; organization_id; ... # 2 more
ID of the vault credential that triggered the event.
ID of the vault that owns this credential.
class BetaWebhookVaultCredentialRefreshFailedEventData: type: "vault_credential.refresh_failed"; id; organization_id; ... # 2 more
ID of the vault credential that triggered the event.
ID of the vault that owns this credential.
class BetaWebhookVaultDeletedEventData: type: "vault.deleted"; id; organization_id; workspace_id
ID of the vault that triggered the event.