Webhooks
Models
interface BetaWebhookAgentArchivedEventData { type: "agent.archived"; id; organization_id; workspace_id }
ID of the agent that triggered the event.
interface BetaWebhookAgentCreatedEventData { type: "agent.created"; id; organization_id; workspace_id }
ID of the agent that triggered the event.
interface BetaWebhookAgentDeletedEventData { type: "agent.deleted"; id; organization_id; workspace_id }
ID of the agent that triggered the event.
interface BetaWebhookAgentUpdatedEventData { type: "agent.updated"; id; organization_id; workspace_id }
ID of the agent that triggered the event.
interface BetaWebhookDeploymentArchivedEventData { type: "deployment.archived"; id; organization_id; workspace_id }
ID of the deployment that triggered the event.
interface BetaWebhookDeploymentCreatedEventData { type: "deployment.created"; id; organization_id; workspace_id }
ID of the deployment that triggered the event.
interface BetaWebhookDeploymentDeletedEventData { type: "deployment.deleted"; id; organization_id; workspace_id }
ID of the deployment that triggered the event.
interface BetaWebhookDeploymentPausedEventData { type: "deployment.paused"; id; organization_id; workspace_id }
ID of the deployment that triggered the event.
interface BetaWebhookDeploymentRunFailedEventData { type: "deployment_run.failed"; id; organization_id; workspace_id }
ID of the deployment run that triggered the event.
interface BetaWebhookDeploymentRunStartedEventData { type: "deployment_run.started"; id; organization_id; workspace_id }
ID of the deployment run that triggered the event.
interface BetaWebhookDeploymentRunSucceededEventData { type: "deployment_run.succeeded"; id; organization_id; workspace_id }
ID of the deployment run that triggered the event.
interface BetaWebhookDeploymentUnpausedEventData { type: "deployment.unpaused"; id; organization_id; workspace_id }
ID of the deployment that triggered the event.
interface BetaWebhookDeploymentUpdatedEventData { type: "deployment.updated"; id; organization_id; workspace_id }
ID of the deployment that triggered the event.
interface BetaWebhookEnvironmentArchivedEventData { type: "environment.archived"; id; organization_id; workspace_id }
ID of the environment that triggered the event.
interface BetaWebhookEnvironmentCreatedEventData { type: "environment.created"; id; organization_id; workspace_id }
ID of the environment that triggered the event.
interface BetaWebhookEnvironmentDeletedEventData { type: "environment.deleted"; id; organization_id; workspace_id }
ID of the environment that triggered the event.
interface BetaWebhookEnvironmentUpdatedEventData { type: "environment.updated"; id; organization_id; workspace_id }
ID of the environment that triggered the event.
interface BetaWebhookEvent { type: "event"; id; created_at; data }
Object type. Always event for webhook payloads.
Unique event identifier for idempotency.
created_at: stringRFC 3339 timestamp when the event occurred.
RFC 3339 timestamp when the event occurred.
data: BetaWebhookEventData
type BetaWebhookEventData = BetaWebhookSessionCreatedEventData | BetaWebhookSessionPendingEventData | BetaWebhookSessionRunningEventData | 41 more
interface BetaWebhookMemoryStoreArchivedEventData { type: "memory_store.archived"; id; organization_id; workspace_id }
ID of the memory store that triggered the event.
interface BetaWebhookMemoryStoreCreatedEventData { type: "memory_store.created"; id; organization_id; workspace_id }
ID of the memory store that triggered the event.
interface BetaWebhookMemoryStoreDeletedEventData { type: "memory_store.deleted"; id; organization_id; workspace_id }
ID of the memory store that triggered the event.
interface BetaWebhookSessionArchivedEventData { type: "session.archived"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionBudgetReachedEventData { type: "session.budget_reached"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionCreatedEventData { type: "session.created"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionDeletedEventData { type: "session.deleted"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionIdledEventData { type: "session.idled"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionOutcomeEvaluationEndedEventData { type: "session.outcome_evaluation_ended"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionPendingEventData { type: "session.pending"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionRequiresActionEventData { type: "session.requires_action"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionRunningEventData { type: "session.running"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionStatusIdledEventData { type: "session.status_idled"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionStatusRescheduledEventData { type: "session.status_rescheduled"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionStatusRunStartedEventData { type: "session.status_run_started"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookSessionStatusTerminatedEventData { type: "session.status_terminated"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface 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.
interface 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.
interface 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.
interface BetaWebhookSessionUpdatedEventData { type: "session.updated"; id; organization_id; workspace_id }
ID of the session that triggered the event.
interface BetaWebhookVaultArchivedEventData { type: "vault.archived"; id; organization_id; workspace_id }
ID of the vault that triggered the event.
interface BetaWebhookVaultCreatedEventData { type: "vault.created"; id; organization_id; workspace_id }
ID of the vault that triggered the event.
interface 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.
interface 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.
interface 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.
interface 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.
interface BetaWebhookVaultDeletedEventData { type: "vault.deleted"; id; organization_id; workspace_id }
ID of the vault that triggered the event.