RaylightAPI

Webhooks

Redeliver an event

Queues a copy of a delivery's event with a new id and redeliveryOf set to the original event's id.

POST/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver

API key with the productions scope.

Parameters

FieldInTypeDescription
idrequiredpathuuidThe endpoint id.
deliveryIdrequiredpathuuidThe delivery to copy.

Responses

202The new delivery.
400Invalid request.
401Missing, invalid or revoked key.
403The key lacks the productions scope (code api_key_missing_scope), or its owner has view-only access to the workspace (code forbidden).
404No such endpoint or workspace for this key (code not_found).
409The endpoint is switched off (code endpoint_disabled), or points at localhost on a server that cannot reach it (code wrong_server).
429Rate limited, or a monthly cap reached.
503Webhooks are not switched on for this server (code disabled). Every webhook route answers this while they are off.

202 response body

FieldTypeDescription
deliveryrequiredobject
delivery.idrequireduuid
delivery.endpointIdrequireduuid
delivery.productionIdrequireduuid | null
delivery.eventrequiredenumOne of: production.pitch_ready, production.skipped, production.greenlit, production.progress, production.delivered, production.failed, production.declined, production.cancelled, ping
delivery.statusrequiredenumOne of: pending, succeeded, exhausted
delivery.attemptsrequiredinteger
delivery.nextAttemptAtrequireddatetime | null
delivery.lastResponseStatusrequiredinteger | null
delivery.lastResponseBodyrequiredstring | null
delivery.lastErrorrequiredstring | null
delivery.lastAttemptAtrequireddatetime | null
delivery.deliveredAtrequireddatetime | null
delivery.createdAtrequireddatetime

Example

curl
curl -X POST https://api.raylight.app/v1/webhooks/$ID/deliveries/$DELIVERY_ID/redeliver \  -H "Authorization: Bearer $RAYLIGHT_API_KEY"