# Create an endpoint subscribed to a set of event types
curl https://roughy-api-staging.fly.dev/v1/webhook-endpoints \
-H "Authorization: Bearer $ROUGHY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/hooks/roughy",
"event_types": ["cut.completed", "render.completed"]
}'
# List your endpoints
curl https://roughy-api-staging.fly.dev/v1/webhook-endpoints \
-H "Authorization: Bearer $ROUGHY_API_KEY"
# Remove one
curl -X DELETE https://roughy-api-staging.fly.dev/v1/webhook-endpoints/{endpoint_id} \
-H "Authorization: Bearer $ROUGHY_API_KEY"