Implement Bird gate IVR flow

This commit is contained in:
Jeppe Bundgaard
2026-03-09 11:03:45 +01:00
parent 682bf8151c
commit d82c7d88ec
21 changed files with 4616 additions and 3251 deletions
+11
View File
@@ -0,0 +1,11 @@
### POST request to /auth/2fa/setup
POST http://localhost/api/auth/2fa/setup
Accept: application/json
Content-Type: application/json
Authorization: Bearer 9ed711260d58165ee7601060bf7463f6e201481edd16c8ee4fc4a5f04b79a232
X-Customer-Number: 42331128
{
"phone": 42331128,
"country_code": 45
}
+27 -1
View File
@@ -26,9 +26,35 @@ Accept: application/json
Content-Type: application/json
Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8
### POST /bird/voice/calls/webhook/inbound
POST http://localhost/bird/voice/calls/webhook/inbound
Accept: application/json
content-type: application/json
{
"service": "channels",
"event": "voice.inbound",
"url": "https://yoururl.com",
"signingKey": "mysecretkey",
"eventFilters": [
{
"key": "channelId",
"value": "b827924e-9789-4c2f-a4d5-b352175354f6"
},
{
"key": "status",
"value": "completed"
},
{
"key": "status",
"value": "starting"
}
]
}
### POST request to /subusers/setup
POST https://api.truckwash.dk:4433/subusers/setup
POST http://localhost/api/subusers/setup
Accept: application/json
Content-Type: application/json
Authorization: Bearer e9d4359673de64f6a9bc4231bf50ac9f5726ad5b3ee6fcad5f8ebbb20647c3b8