Webhook
Defined in: v1/schemas.ts:747
A single webhook registered on the Teachable school.
Remarks
Section titled “Remarks”Important behavioural notes observed from the live API:
-
Deleted webhooks are not filtered out — the
/webhooksendpoint 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_statevalues — observed values arefailed,pending, andverified. Note thatverifieddoes 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.
Extends
Section titled “Extends”output<typeofWebhookSchema>
Properties
Section titled “Properties”event_trigger?
Section titled “event_trigger?”
optionalevent_trigger?:string
Defined in: v1/schemas.ts:723
Inherited from
Section titled “Inherited from”z.infer.event_trigger
id:
number
Defined in: v1/schemas.ts:720
Inherited from
Section titled “Inherited from”z.infer.id
optionalurl?:string
Defined in: v1/schemas.ts:722
Inherited from
Section titled “Inherited from”z.infer.url
webhook_events_count?
Section titled “webhook_events_count?”
optionalwebhook_events_count?:number
Defined in: v1/schemas.ts:724
Inherited from
Section titled “Inherited from”z.infer.webhook_events_count
workflow_state?
Section titled “workflow_state?”
optionalworkflow_state?:string
Defined in: v1/schemas.ts:721
Inherited from
Section titled “Inherited from”z.infer.workflow_state