|
#!/bin/bash |
|
|
|
DAILY_API_KEY="pk_3a112ff0-26d7-4bd0-aebd-7f713c31972a" |
|
WEBHOOK_URL="https://deadmon-pipecat.hf.space/webhook" |
|
WEBHOOK_SECRET=$(echo -n "eW91ci1zZWNyZXQtc3RyaW5n" | base64) |
|
|
|
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" |
|
}' |