Skip to content

document how to use (and validate) webhooks #195

@zeke

Description

@zeke

We should update the README with an example of how to set a webhook.

This page has some prior art: https://replicate.com/docs/webhooks#setting-webhooks

await replicate.predictions.create({
  version: "d55b9f2d...",
  input: { prompt: "call me later maybe" },
  webhook: "https://example.com/replicate-webhook",
  webhook_events_filter: ["completed"], // optional
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions