Fetch Webhook Secret and Run a Webhook Prediction
A 3-step recipe with Replicate. We can help you get access.
Recipe · 3 steps
Fetch Webhook Secret and Run a Webhook Prediction
with Replicate · Artificial Intelligence Management
Get the default webhook secret, then run a prediction that posts to a webhook.
- Retrieve the signing secret for the default webhook endpoint so the consumer can verify that callbacks originate from Replicate.
- Create a prediction configured with a webhook URL and a completed event filter so Replicate posts to the webhook when the prediction finishes.
- Retrieve the prediction state, repeating via the retry branch until the prediction reaches a terminal status. The webhook will also fire on completion.
What you'll need to have ready
- apiToken: Replicate API token used as a Bearer credential.
- version: The ID of the model version that you want to run.
- input: The model's input as a JSON object matching the version's input schema.
- webhook: HTTPS URL that will receive the prediction webhook callbacks.
For your developer
Arazzo workflow replicate:webhook-secured-predict, 3 operations: webhooks.default.secret.get → predictions.create → predictions.get. Specs on APIs.io.