pipecat / create_webhook.sh
Deadmon's picture
Update create_webhook.sh
d167ba5 verified
raw
history blame contribute delete
602 Bytes
#!/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"
}'