interface WebhookCreateParams {
    api_version?: string;
    name?: string;
    subscribed_events: (
        | string & {}
        | "interaction.completed"
        | "batch.succeeded"
        | "batch.expired"
        | "batch.failed"
        | "interaction.requires_action"
        | "interaction.failed"
        | "video.generated"
    )[];
    uri: string;
}

Properties

api_version?: string

Path param: Which version of the API to use.

name?: string

Body param: Optional. The user-provided name of the webhook.

subscribed_events: (
    | string & {}
    | "interaction.completed"
    | "batch.succeeded"
    | "batch.expired"
    | "batch.failed"
    | "interaction.requires_action"
    | "interaction.failed"
    | "video.generated"
)[]

Body param: Required. The events that the webhook is subscribed to. Available events:

  • batch.succeeded
  • batch.expired
  • batch.failed
  • interaction.requires_action
  • interaction.completed
  • interaction.failed
  • video.generated
uri: string

Body param: Required. The URI to which webhook events will be sent.