Documentation

Webhooks

Webhooks

Webhooks

Default

Webhooks.Default

Webhooks.Default.Secret

Methods

get():
get/webhooks/default/secret

Get the signing secret for the default webhook endpoint. This is used to verify that webhook requests are coming from Replicate.

Example cURL request:

curl -s \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  https://api.replicate.com/v1/webhooks/default/secret

The response will be a JSON object with a key property:

{
  "key": "..."
}