Skip to content

Webhook

Defined in: v1/schemas.ts:747

A single webhook registered on the Teachable school.

Important behavioural notes observed from the live API:

  • Deleted webhooks are not filtered out — the /webhooks endpoint returns all webhooks regardless of their state, including ones that have been deleted. There is no way to distinguish a deleted webhook from an inactive one via this API.

  • workflow_state values — observed values are failed, pending, and verified. Note that verified does not necessarily mean the webhook is active or published — it only indicates the endpoint URL was successfully verified at some point.

  • webhook_events_count — represents the total number of times this webhook has been triggered, across its entire lifetime.

  • Read-only — there are no POST or PATCH endpoints for webhooks in the Teachable v1 API. Webhooks can only be managed through the Teachable dashboard.

  • output<typeof WebhookSchema>

optional event_trigger?: string

Defined in: v1/schemas.ts:723

z.infer.event_trigger


id: number

Defined in: v1/schemas.ts:720

z.infer.id


optional url?: string

Defined in: v1/schemas.ts:722

z.infer.url


optional webhook_events_count?: number

Defined in: v1/schemas.ts:724

z.infer.webhook_events_count


optional workflow_state?: string

Defined in: v1/schemas.ts:721

z.infer.workflow_state