File size: 602 Bytes
53ef5b1 8a27419 d167ba5 53ef5b1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/bin/bash
DAILY_API_KEY="pk_3a112ff0-26d7-4bd0-aebd-7f713c31972a" # Replace with your Daily.co API key
WEBHOOK_URL="https://deadmon-pipecat.hf.space/webhook" # Replace with your endpoint
WEBHOOK_SECRET="eW91ci1zZWNyZXQtc3RyaW5n" # Base64-encoded secret
curl --request POST \
--url https://api.daily.co/v1/webhooks \
--header "Authorization: Bearer $DAILY_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"endpoint": "'"$WEBHOOK_URL"'",
"eventTypes": ["dialin.connected", "dialin.stopped"],
"hmac": "'"$WEBHOOK_SECRET"'",
"retryType": "circuit-breaker"
}' |