Webhook Meldingen

Configureer een webhook-URL om automatisch een POST-terugroep te ontvangen wanneer een render is voltooid (succes of falen). Je kunt de URL instellen in de Render Console of programmatisch.

Stel of Werk Webhook URL Bij

set-webhook.sh
curl -X POST https://render-api.chillin.online/user/webhook \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"url": "https://your-domain.com/webhook"}'

Trigger een Testlevering

test-webhook.sh
curl -X POST https://render-api.chillin.online/user/webhook/test \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"url": "https://your-domain.com/webhook"}'

Webhook Payload

webhook_payload.json
{
"render_id": 123,
"user_id": 456,
"status": "success",
"video_url": "https://cloud.chillin.online/video_xxx.mp4",
"json_url": "https://cloud.chillin.online/project_xxx.json",
"error_message": "",
"error_log_url": "",
"cost": 0.05,
"duration": 10.5,
"finished_at": "2024-01-01T12:00:00Z"
}
  • De terugroep is een JSON POST verzoek dat onmiddellijk wordt verzonden nadat de render is voltooid.
  • Reageer binnen 5 seconden; time-outs worden niet opnieuw geprobeerd.
  • Gebruik het status veld (success of failed) samen met error_message/error_log_url om mislukkingen op een elegante manier af te handelen.