{"openapi":"3.1.0","info":{"title":"TalkIP API","version":"1","description":"De API van een organisatie op TalkIP. Maak een sleutel in het dashboard onder Instellingen en dan API, en stuur hem mee als Bearer-token. De sleutel hoort bij één organisatie, dus er staat geen organisatie in de paden. Een reseller gebruikt zijn eigen sleutel met de header TalkIP-Tenant-Id."},"externalDocs":{"url":"https://api.talkip.nl/reseller/v1/openapi.json","description":"De reseller-API, voor resellers"},"servers":[{"url":"https://api.talkip.nl/v1"}],"security":[{"apiKey":[]}],"tags":[{"name":"Sleutel"},{"name":"Leden"},{"name":"Toestellen"},{"name":"Nummers"},{"name":"Gesprekken"},{"name":"Opnames"},{"name":"Voicemail"},{"name":"Routering"},{"name":"Workflows"},{"name":"Media"},{"name":"Adresboek"},{"name":"Organisatie"},{"name":"Webhooks"},{"name":"Agents"},{"name":"Bellen"}],"paths":{"/me":{"get":{"operationId":"getMe","tags":["Sleutel"],"summary":"De organisatie van de sleutel en wat hij mag","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/members":{"get":{"operationId":"getMembers","tags":["Leden"],"summary":"Leden en openstaande uitnodigingen","description":"Vraagt `read` op `members`.","x-access":{"feature":"members","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postMembers","tags":["Leden"],"summary":"Iemand uitnodigen","description":"Vraagt `write` op `members`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"members","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"roleId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]}},"required":["email"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/members/{memberId}/resend":{"post":{"operationId":"postMembersMemberIdResend","tags":["Leden"],"summary":"Een uitnodiging opnieuw versturen","description":"Vraagt `write` op `members`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"members","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"memberId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/members/{memberId}/role":{"put":{"operationId":"putMembersMemberIdRole","tags":["Leden"],"summary":"De rol van een lid zetten, niet van een eigenaar","description":"Vraagt `write` op `members`.","x-access":{"feature":"members","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"memberId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roleId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]}},"required":["roleId"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/members/{memberId}":{"delete":{"operationId":"deleteMembersMemberId","tags":["Leden"],"summary":"Een lid verwijderen of een uitnodiging intrekken, geen eigenaar","description":"Vraagt `write` op `members`.","x-access":{"feature":"members","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"memberId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/roles":{"get":{"operationId":"getRoles","tags":["Leden"],"summary":"Rollen","description":"Vraagt `read` op `members`.","x-access":{"feature":"members","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/devices":{"get":{"operationId":"getDevices","tags":["Toestellen"],"summary":"Alle toestellen","description":"Vraagt `read` op `devices`.","x-access":{"feature":"devices","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postDevices","tags":["Toestellen"],"summary":"Een toestel maken; het SIP-wachtwoord staat alleen in dit antwoord","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"callerId":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]}},"required":["name","userId"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/devices/{deviceId}":{"patch":{"operationId":"patchDevicesDeviceId","tags":["Toestellen"],"summary":"Een toestel wijzigen","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"deviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"enabled":{"type":"boolean"},"callerId":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteDevicesDeviceId","tags":["Toestellen"],"summary":"Een toestel verwijderen","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"deviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/devices/{deviceId}/password":{"post":{"operationId":"postDevicesDeviceIdPassword","tags":["Toestellen"],"summary":"Een nieuw SIP-wachtwoord","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"deviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/devices/{deviceId}/join-code":{"post":{"operationId":"postDevicesDeviceIdJoinCode","tags":["Toestellen"],"summary":"Een koppelcode voor de app","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"deviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/extensions":{"get":{"operationId":"getExtensions","tags":["Toestellen"],"summary":"Alle toestelnummers met hun bestemming","description":"Vraagt `read` op `devices`.","x-access":{"feature":"devices","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postExtensions","tags":["Toestellen"],"summary":"Een toestelnummer maken","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"extension":{"type":"string","pattern":"^[0-9]{2,8}$"},"destination":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["extension","destination"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/extensions/{extensionId}/destination":{"put":{"operationId":"putExtensionsExtensionIdDestination","tags":["Toestellen"],"summary":"De bestemming van een toestelnummer","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"extensionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["destination"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/extensions/{extensionId}":{"delete":{"operationId":"deleteExtensionsExtensionId","tags":["Toestellen"],"summary":"Een toestelnummer verwijderen","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"extensionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/numbers":{"get":{"operationId":"getNumbers","tags":["Nummers"],"summary":"De nummers van de organisatie met hun bestemming","description":"Vraagt `read` op `numbers`.","x-access":{"feature":"numbers","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postNumbers","tags":["Nummers"],"summary":"Een nummer kopen","description":"Vraagt `write` op `numbers`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"numbers","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"numberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"destination":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["numberId","destination"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/numbers/available":{"get":{"operationId":"getNumbersAvailable","tags":["Nummers"],"summary":"Nummers die te koop zijn","description":"Vraagt `write` op `numbers`.","x-access":{"feature":"numbers","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":20}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/numbers/{numberId}/destination":{"put":{"operationId":"putNumbersNumberIdDestination","tags":["Nummers"],"summary":"De bestemming van een nummer","description":"Vraagt `write` op `numbers`.","x-access":{"feature":"numbers","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"numberId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["destination"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/numbers/{numberId}/caller-rules":{"put":{"operationId":"putNumbersNumberIdCallerRules","tags":["Nummers"],"summary":"De bellerregels van een nummer, die vóór zijn bestemming beslissen","description":"Vraagt `write` op `numbers`.","x-access":{"feature":"numbers","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"numberId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"callerRules":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"match":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"anonymous"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"numbers"},"numbers":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":32}}},"required":["type","numbers"]}]},"destination":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","match","destination"]}}},"required":["callerRules"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/numbers/{numberId}":{"delete":{"operationId":"deleteNumbersNumberId","tags":["Nummers"],"summary":"Een nummer opgeven","description":"Vraagt `write` op `numbers`.","x-access":{"feature":"numbers","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"numberId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/number-requests":{"get":{"operationId":"getNumberRequests","tags":["Nummers"],"summary":"Aanvragen voor nummers","description":"Vraagt `read` op `numbers`.","x-access":{"feature":"numbers","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postNumberRequests","tags":["Nummers"],"summary":"Nummers aanvragen","description":"Vraagt `write` op `numbers`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"numbers","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["additional","custom"]},"quantity":{"type":"integer","minimum":1,"maximum":100},"areaCode":{"anyOf":[{"type":"string","pattern":"^0[1-9][0-9]{0,3}$"},{"type":"null"}]},"details":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["kind","quantity","areaCode","details"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/number-requests/{requestId}":{"delete":{"operationId":"deleteNumberRequestsRequestId","tags":["Nummers"],"summary":"Een aanvraag intrekken","description":"Vraagt `write` op `numbers`.","x-access":{"feature":"numbers","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"requestId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/limits":{"get":{"operationId":"getLimits","tags":["Nummers"],"summary":"De limieten voor belminuten en het verbruik nu","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"put":{"operationId":"putLimits","tags":["Nummers"],"summary":"De limieten voor belminuten zetten","description":"Vraagt `write` op `settings`.","x-access":{"feature":"settings","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maxMinutesPerCall":{"anyOf":[{"type":"integer","minimum":1,"maximum":525600},{"type":"null"}]},"maxMinutesPerDay":{"anyOf":[{"type":"integer","minimum":1,"maximum":525600},{"type":"null"}]},"maxMinutesPerMonth":{"anyOf":[{"type":"integer","minimum":1,"maximum":525600},{"type":"null"}]}},"required":["maxMinutesPerCall","maxMinutesPerDay","maxMinutesPerMonth"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/calls/live":{"get":{"operationId":"getCallsLive","tags":["Gesprekken"],"summary":"Wie er nu belt","description":"Vraagt `read` op `live-calls`.","x-access":{"feature":"live-calls","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/calls":{"get":{"operationId":"getCalls","tags":["Gesprekken"],"summary":"De gesprekshistorie; opname- en transcriptievelden alleen met Gespreksopnames lezen","description":"Vraagt `read` op `call-history`.","x-access":{"feature":"call-history","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":20}},{"name":"status","in":"query","required":false,"schema":{"default":"all","type":"string","enum":["all","answered","missed"]}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["internal","inbound","outbound"]}},{"name":"tag","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":32}},{"name":"transcribed","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"text","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postCalls","tags":["Bellen"],"summary":"Klik-om-te-bellen: het toestel gaat over en belt dan de bestemming","description":"Vraagt `write` op `live-calls`.","x-access":{"feature":"live-calls","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"destination":{"type":"string","pattern":"^\\+?[0-9*#]{2,32}$"},"autoAnswer":{"default":false,"type":"boolean"}},"required":["deviceId","destination"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/calls/{callRecordId}/flow":{"get":{"operationId":"getCallsCallRecordIdFlow","tags":["Gesprekken"],"summary":"Waar het gesprek heen ging, stap voor stap","description":"Vraagt `read` op `call-history`.","x-access":{"feature":"call-history","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/calls/{callRecordId}/ai-conversations":{"get":{"operationId":"getCallsCallRecordIdAiConversations","tags":["Gesprekken"],"summary":"Wat een AI-agent in het gesprek noteerde","description":"Vraagt `read` op `recordings`.","x-access":{"feature":"recordings","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/calls/{callRecordId}/transcript":{"get":{"operationId":"getCallsCallRecordIdTranscript","tags":["Gesprekken"],"summary":"De transcriptie","description":"Vraagt `read` op `recordings`.","x-access":{"feature":"recordings","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postCallsCallRecordIdTranscript","tags":["Gesprekken"],"summary":"Een transcriptie laten maken, voor AI-credits","description":"Vraagt `write` op `recordings`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"recordings","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteCallsCallRecordIdTranscript","tags":["Gesprekken"],"summary":"De transcriptie verwijderen","description":"Vraagt `write` op `recordings`.","x-access":{"feature":"recordings","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/calls/{callRecordId}/summary":{"get":{"operationId":"getCallsCallRecordIdSummary","tags":["Gesprekken"],"summary":"De samenvatting","description":"Vraagt `read` op `recordings`.","x-access":{"feature":"recordings","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postCallsCallRecordIdSummary","tags":["Gesprekken"],"summary":"Een samenvatting laten maken, voor AI-credits","description":"Vraagt `write` op `recordings`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"recordings","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteCallsCallRecordIdSummary","tags":["Gesprekken"],"summary":"De samenvatting verwijderen","description":"Vraagt `write` op `recordings`.","x-access":{"feature":"recordings","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/recordings":{"get":{"operationId":"getRecordings","tags":["Opnames"],"summary":"Opnames","description":"Vraagt `read` op `recordings`.","x-access":{"feature":"recordings","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/recordings/{recordingId}/audio":{"get":{"operationId":"getRecordingsRecordingIdAudio","tags":["Opnames"],"summary":"Een opname als stereo-WAV: de beller links","description":"Vraagt `read` op `recordings`.","x-access":{"feature":"recordings","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"recordingId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"channel","in":"query","required":false,"schema":{"default":"both","type":"string","enum":["both","caller","callee"]}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}}},"/recordings/{recordingId}":{"delete":{"operationId":"deleteRecordingsRecordingId","tags":["Opnames"],"summary":"Een opname verwijderen","description":"Vraagt `write` op `recordings`.","x-access":{"feature":"recordings","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"recordingId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/recording-settings":{"get":{"operationId":"getRecordingSettings","tags":["Opnames"],"summary":"Wat standaard wordt opgenomen, getranscribeerd en samengevat","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"put":{"operationId":"putRecordingSettings","tags":["Opnames"],"summary":"Die standaard zetten","description":"Vraagt `write` op `settings`.","x-access":{"feature":"settings","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"recordCalls":{"type":"boolean"},"transcribeCalls":{"type":"boolean"},"summarizeCalls":{"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/voicemail-boxes":{"get":{"operationId":"getVoicemailBoxes","tags":["Voicemail"],"summary":"Voicemailboxen","description":"Vraagt `read` op `voicemail`.","x-access":{"feature":"voicemail","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postVoicemailBoxes","tags":["Voicemail"],"summary":"Een voicemailbox maken","description":"Vraagt `write` op `voicemail`.","x-access":{"feature":"voicemail","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"greetingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"maxSeconds":{"type":"integer","minimum":10,"maximum":600}},"required":["name","userId","greetingMediaId","maxSeconds"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/voicemail-boxes/{boxId}":{"put":{"operationId":"putVoicemailBoxesBoxId","tags":["Voicemail"],"summary":"Een voicemailbox wijzigen","description":"Vraagt `write` op `voicemail`.","x-access":{"feature":"voicemail","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"boxId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"greetingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"maxSeconds":{"type":"integer","minimum":10,"maximum":600}},"required":["name","userId","greetingMediaId","maxSeconds"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteVoicemailBoxesBoxId","tags":["Voicemail"],"summary":"Een voicemailbox verwijderen","description":"Vraagt `write` op `voicemail`.","x-access":{"feature":"voicemail","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"boxId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/voicemail/messages":{"get":{"operationId":"getVoicemailMessages","tags":["Voicemail"],"summary":"Voicemailberichten","description":"Vraagt `read` op `voicemail`.","x-access":{"feature":"voicemail","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/voicemail/messages/{messageId}/audio":{"get":{"operationId":"getVoicemailMessagesMessageIdAudio","tags":["Voicemail"],"summary":"Een bericht als WAV","description":"Vraagt `read` op `voicemail`.","x-access":{"feature":"voicemail","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"messageId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}}},"/voicemail/messages/{messageId}/read":{"put":{"operationId":"putVoicemailMessagesMessageIdRead","tags":["Voicemail"],"summary":"Een bericht als gelezen markeren","description":"Vraagt `read` op `voicemail`.","x-access":{"feature":"voicemail","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"messageId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/voicemail/messages/{messageId}":{"delete":{"operationId":"deleteVoicemailMessagesMessageId","tags":["Voicemail"],"summary":"Een bericht verwijderen","description":"Vraagt `write` op `voicemail`.","x-access":{"feature":"voicemail","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"messageId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/workflows":{"get":{"operationId":"getWorkflows","tags":["Workflows"],"summary":"Workflows","description":"Vraagt `read` op `workflows`.","x-access":{"feature":"workflows","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postWorkflows","tags":["Workflows"],"summary":"Een workflow maken; vraagt de module Workflows","description":"Vraagt `write` op `workflows`.","x-access":{"feature":"workflows","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100}},"required":["name"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/workflows/{workflowId}":{"get":{"operationId":"getWorkflowsWorkflowId","tags":["Workflows"],"summary":"Eén workflow met de hele tekening","description":"Vraagt `read` op `workflows`.","x-access":{"feature":"workflows","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"put":{"operationId":"putWorkflowsWorkflowId","tags":["Workflows"],"summary":"Een workflow opslaan; nieuwe vragen kosten AI-credits","description":"Vraagt `write` op `workflows`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"workflows","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"graph":{"type":"object","properties":{"nodes":{"minItems":1,"maxItems":100,"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"start"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{}}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"timer"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"seconds":{"type":"integer","minimum":1,"maximum":3600}},"required":["seconds"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"webhook"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"method":{"type":"string","enum":["GET","POST"]}},"required":["url","method"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"play"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"loop":{"default":false,"type":"boolean"}},"required":["mediaId"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"digits"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"format":{"type":"string","pattern":"^[0-9X*#]{1,32}$"}},"required":["variable","format"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"condition"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"operator":{"type":"string","enum":["equals","notEquals","startsWith","greaterThan","lessThan","isSet"]},"value":{"type":"string","maxLength":64}},"required":["variable","operator","value"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"transfer"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"destination":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["user","device","workflow","ringGroup","ivr","voicemail","businessHours","aiAgent","queue","conferenceRoom","directory","announcement"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","id"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]}},"required":["destination"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"hangup"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"reason":{"type":"string","enum":["busy","unavailable","declined"]}},"required":["reason"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"connect"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"destination":{"type":"object","properties":{"type":{"type":"string","enum":["user","device","ringGroup"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","id"]},"ringSeconds":{"type":"integer","minimum":5,"maximum":120}},"required":["destination","ringSeconds"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"route"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"destination":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["user","device","workflow","ringGroup","ivr","voicemail","businessHours","aiAgent","queue","conferenceRoom","directory","announcement"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","id"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]}},"required":["destination"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"hours"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["businessHoursId"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"contact"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"source":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"}},"required":["source"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"record"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"action":{"type":"string","enum":["start","stop","abort"]}},"required":["action"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"switch"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"cases":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9_-]+$"},"value":{"type":"string","minLength":1,"maxLength":64}},"required":["id","value"]}}},"required":["variable","cases"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"assign"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"operation":{"type":"string","enum":["set","increment","clear"]},"value":{"type":"string","maxLength":64}},"required":["variable","operation","value"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"split"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"branches":{"minItems":2,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9_-]+$"},"weight":{"type":"integer","minimum":1,"maximum":100}},"required":["id","weight"]}}},"required":["branches"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"tag"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"tag":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[^\\p{Cc}]+$"}},"required":["tag"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"notify"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"userIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"message":{"type":"string","maxLength":1000}},"required":["userIds","message"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"message"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"maxSeconds":{"type":"integer","minimum":5,"maximum":600},"beep":{"default":true,"type":"boolean"},"transcribe":{"default":null,"anyOf":[{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"summaryVariable":{"default":null,"anyOf":[{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},{"type":"null"}]}},"required":["variable"]},{"type":"null"}]}},"required":["voicemailBoxId","maxSeconds"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"mcp"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"tool"},"serverId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"tool":{"type":"string","pattern":"^[A-Za-z0-9_./-]{1,128}$"},"arguments":{"maxItems":32,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"type":{"type":"string","enum":["string","number","integer","boolean","json"]},"value":{"type":"string","maxLength":2000,"pattern":"^(?:[^\\p{Cc}]|\\n)*$"}},"required":["name","type","value"]}},"results":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","maxLength":200,"pattern":"^[A-Za-z0-9_-]+(?:\\.[A-Za-z0-9_-]+)*$"},"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"}},"required":["path","variable"]}},"resultVariable":{"default":null,"anyOf":[{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},{"type":"null"}]}},"required":["mode","serverId","tool","arguments","results"]},{"type":"object","properties":{"mode":{"type":"string","const":"ai"},"serverId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},"instructions":{"type":"string","maxLength":2000,"pattern":"^(?:[^\\p{Cc}]|\\n)*$"},"input":{"type":"string","maxLength":2000,"pattern":"^(?:[^\\p{Cc}]|\\n)*$"},"tools":{"maxItems":32,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_./-]{1,128}$"}},"resultVariable":{"default":null,"anyOf":[{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},{"type":"null"}]}},"required":["mode","serverId","instructions","input","tools"]}]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"listen"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"maxSeconds":{"type":"integer","minimum":3,"maximum":60},"language":{"type":"string","enum":["nl","en","de","fr","auto"]},"languageVariable":{"default":null,"anyOf":[{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},{"type":"null"}]},"beep":{"default":false,"type":"boolean"},"question":{"default":null,"anyOf":[{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"voiceId":{"type":"string","enum":["EXAVITQu4vr4xnSDxMaL","XrExE9yKIg1WjnnlVkGX","FGY2WhTYpPnrIDTdsKH5","Xb7hH8MSUJpSbSDYk0k2","JBFqnCBsd6RMkjVDRZzb","nPczCjzI2devNBz1zQrb","onwK4e9ZLuTAKqWW03F9","TX3LPaxmHKxFdv7VOQHJ"]},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["text","voiceId"]},{"type":"null"}]}},"required":["variable","maxSeconds","language"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"say"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":1000,"pattern":"^(?:[^\\p{Cc}]|\\n)*$"},"voiceId":{"type":"string","enum":["EXAVITQu4vr4xnSDxMaL","XrExE9yKIg1WjnnlVkGX","FGY2WhTYpPnrIDTdsKH5","Xb7hH8MSUJpSbSDYk0k2","JBFqnCBsd6RMkjVDRZzb","nPczCjzI2devNBz1zQrb","onwK4e9ZLuTAKqWW03F9","TX3LPaxmHKxFdv7VOQHJ"]},"language":{"type":"string","enum":["nl","en","de","fr"]}},"required":["text","voiceId","language"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"converse"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"voiceId":{"type":"string","enum":["EXAVITQu4vr4xnSDxMaL","XrExE9yKIg1WjnnlVkGX","FGY2WhTYpPnrIDTdsKH5","Xb7hH8MSUJpSbSDYk0k2","JBFqnCBsd6RMkjVDRZzb","nPczCjzI2devNBz1zQrb","onwK4e9ZLuTAKqWW03F9","TX3LPaxmHKxFdv7VOQHJ"]},"language":{"type":"string","enum":["nl","en","de","fr"]},"firstMessage":{"type":"string","minLength":1,"maxLength":500},"instructions":{"type":"string","minLength":1,"maxLength":5000},"fields":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["text","date","time","number","boolean","choice"]},"description":{"type":"string","maxLength":300},"required":{"type":"boolean"},"options":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["key","label","type","description","required","options"]}},"maxMinutes":{"type":"integer","minimum":1,"maximum":30},"handoff":{"default":false,"type":"boolean"}},"required":["voiceId","language","firstMessage","instructions","fields","maxMinutes"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"decide"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"instructions":{"type":"string","maxLength":500,"pattern":"^(?:[^\\p{Cc}]|\\n)*$"},"options":{"minItems":2,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9_-]+$"},"label":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[^\\p{Cc}]+$"},"description":{"type":"string","maxLength":500,"pattern":"^(?:[^\\p{Cc}]|\\n)*$"}},"required":["id","label","description"]}},"result":{"default":null,"anyOf":[{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},{"type":"null"}]}},"required":["variable","instructions","options"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"extract"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"source":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"type":{"type":"string","enum":["text","number","date","time","phone","email"]},"description":{"type":"string","maxLength":500,"pattern":"^(?:[^\\p{Cc}]|\\n)*$"}},"required":["source","variable","type","description"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"yesno"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"question":{"type":"string","maxLength":500,"pattern":"^(?:[^\\p{Cc}]|\\n)*$"}},"required":["variable","question"]}},"required":["id","type","position","data"]},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"type":{"type":"string","const":"sentiment"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"data":{"type":"object","properties":{"variable":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,31}$"},"measure":{"type":"string","enum":["mood","urgency"]}},"required":["variable","measure"]}},"required":["id","type","position","data"]}]}},"edges":{"maxItems":400,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"source":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"sourceHandle":{"type":"string","minLength":1,"maxLength":32},"target":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"targetHandle":{"type":"string","minLength":1,"maxLength":32},"bend":{"type":"object","properties":{"x":{"type":"integer","minimum":-10000,"maximum":10000},"y":{"type":"integer","minimum":-10000,"maximum":10000}},"required":["x","y"]}},"required":["id","source","sourceHandle","target","targetHandle"]}}},"required":["nodes","edges"]}},"required":["name","graph"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteWorkflowsWorkflowId","tags":["Workflows"],"summary":"Een workflow verwijderen","description":"Vraagt `write` op `workflows`.","x-access":{"feature":"workflows","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/workflows/{workflowId}/executions":{"get":{"operationId":"getWorkflowsWorkflowIdExecutions","tags":["Workflows"],"summary":"Hoe de workflow is gelopen","description":"Vraagt `read` op `workflows`.","x-access":{"feature":"workflows","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/workflows/{workflowId}/executions/{executionId}":{"get":{"operationId":"getWorkflowsWorkflowIdExecutionsExecutionId","tags":["Workflows"],"summary":"Eén keer, stap voor stap","description":"Vraagt `read` op `workflows`.","x-access":{"feature":"workflows","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"workflowId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"executionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/ring-groups":{"get":{"operationId":"getRingGroups","tags":["Routering"],"summary":"Belgroepen","description":"Vraagt `read` op `ring-groups`.","x-access":{"feature":"ring-groups","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postRingGroups","tags":["Routering"],"summary":"Een belgroep maken","description":"Vraagt `write` op `ring-groups`.","x-access":{"feature":"ring-groups","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"strategy":{"type":"string","enum":["simultaneous","sequential","roundRobin","longestIdle","random"]},"ringSeconds":{"type":"integer","minimum":5,"maximum":300},"members":{"maxItems":50,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]}]}},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"waitingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"skipBusy":{"default":false,"type":"boolean"}},"required":["name","strategy","ringSeconds","members","fallback","waitingMediaId"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/ring-groups/{ringGroupId}":{"put":{"operationId":"putRingGroupsRingGroupId","tags":["Routering"],"summary":"Een belgroep wijzigen","description":"Vraagt `write` op `ring-groups`.","x-access":{"feature":"ring-groups","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"ringGroupId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"strategy":{"type":"string","enum":["simultaneous","sequential","roundRobin","longestIdle","random"]},"ringSeconds":{"type":"integer","minimum":5,"maximum":300},"members":{"maxItems":50,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]}]}},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"waitingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"skipBusy":{"default":false,"type":"boolean"}},"required":["name","strategy","ringSeconds","members","fallback","waitingMediaId"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteRingGroupsRingGroupId","tags":["Routering"],"summary":"Een belgroep verwijderen","description":"Vraagt `write` op `ring-groups`.","x-access":{"feature":"ring-groups","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"ringGroupId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/queues":{"get":{"operationId":"getQueues","tags":["Routering"],"summary":"Wachtrijen","description":"Vraagt `read` op `queues`.","x-access":{"feature":"queues","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postQueues","tags":["Routering"],"summary":"Een wachtrij maken; op een abonnement met wachtrijen","description":"Vraagt `write` op `queues`.","x-access":{"feature":"queues","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"strategy":{"type":"string","enum":["simultaneous","sequential","roundRobin","longestIdle","random"]},"ringSeconds":{"type":"integer","minimum":5,"maximum":120},"wrapUpSeconds":{"type":"integer","minimum":0,"maximum":600},"maxWaitSeconds":{"type":"integer","minimum":30,"maximum":7200},"maxCallers":{"anyOf":[{"type":"integer","minimum":1,"maximum":200},{"type":"null"}]},"joinWhenEmpty":{"type":"boolean"},"greetingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"musicMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"announcePosition":{"type":"boolean"},"announceIntervalSeconds":{"type":"integer","minimum":0,"maximum":600},"periodicMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"callbackEnabled":{"type":"boolean"},"callbackAfterSeconds":{"type":"integer","minimum":0,"maximum":3600},"serviceLevelSeconds":{"type":"integer","minimum":5,"maximum":600},"language":{"type":"string","enum":["nl","en"]},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"members":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["userId"]}}},"required":["name","strategy","ringSeconds","wrapUpSeconds","maxWaitSeconds","maxCallers","joinWhenEmpty","greetingMediaId","musicMediaId","announcePosition","announceIntervalSeconds","periodicMediaId","callbackEnabled","callbackAfterSeconds","serviceLevelSeconds","language","fallback","members"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/queues/{queueId}":{"put":{"operationId":"putQueuesQueueId","tags":["Routering"],"summary":"Een wachtrij wijzigen; op een abonnement met wachtrijen","description":"Vraagt `write` op `queues`.","x-access":{"feature":"queues","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"queueId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"strategy":{"type":"string","enum":["simultaneous","sequential","roundRobin","longestIdle","random"]},"ringSeconds":{"type":"integer","minimum":5,"maximum":120},"wrapUpSeconds":{"type":"integer","minimum":0,"maximum":600},"maxWaitSeconds":{"type":"integer","minimum":30,"maximum":7200},"maxCallers":{"anyOf":[{"type":"integer","minimum":1,"maximum":200},{"type":"null"}]},"joinWhenEmpty":{"type":"boolean"},"greetingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"musicMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"announcePosition":{"type":"boolean"},"announceIntervalSeconds":{"type":"integer","minimum":0,"maximum":600},"periodicMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"callbackEnabled":{"type":"boolean"},"callbackAfterSeconds":{"type":"integer","minimum":0,"maximum":3600},"serviceLevelSeconds":{"type":"integer","minimum":5,"maximum":600},"language":{"type":"string","enum":["nl","en"]},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"members":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["userId"]}}},"required":["name","strategy","ringSeconds","wrapUpSeconds","maxWaitSeconds","maxCallers","joinWhenEmpty","greetingMediaId","musicMediaId","announcePosition","announceIntervalSeconds","periodicMediaId","callbackEnabled","callbackAfterSeconds","serviceLevelSeconds","language","fallback","members"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteQueuesQueueId","tags":["Routering"],"summary":"Een wachtrij verwijderen","description":"Vraagt `write` op `queues`.","x-access":{"feature":"queues","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"queueId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/queues/{queueId}/statistics":{"get":{"operationId":"getQueuesQueueIdStatistics","tags":["Routering"],"summary":"De cijfers van een wachtrij over een periode, standaard de laatste zeven dagen","description":"Vraagt `read` op `queues`.","x-access":{"feature":"queues","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"queueId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/conference-rooms":{"get":{"operationId":"getConferenceRooms","tags":["Routering"],"summary":"Vergaderlijnen","description":"Vraagt `read` op `conference-rooms`.","x-access":{"feature":"conference-rooms","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postConferenceRooms","tags":["Routering"],"summary":"Een vergaderlijn maken; op een abonnement met vergaderlijnen","description":"Vraagt `write` op `conference-rooms`.","x-access":{"feature":"conference-rooms","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"pin":{"anyOf":[{"type":"string","pattern":"^[0-9]{4,8}$"},{"type":"null"}]},"maxParticipants":{"type":"integer","minimum":2,"maximum":50},"musicMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"announceJoins":{"type":"boolean"},"language":{"type":"string","enum":["nl","en"]}},"required":["name","pin","maxParticipants","musicMediaId","announceJoins","language"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/conference-rooms/{conferenceRoomId}":{"put":{"operationId":"putConferenceRoomsConferenceRoomId","tags":["Routering"],"summary":"Een vergaderlijn wijzigen; op een abonnement met vergaderlijnen","description":"Vraagt `write` op `conference-rooms`.","x-access":{"feature":"conference-rooms","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"conferenceRoomId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"pin":{"anyOf":[{"type":"string","pattern":"^[0-9]{4,8}$"},{"type":"null"}]},"maxParticipants":{"type":"integer","minimum":2,"maximum":50},"musicMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"announceJoins":{"type":"boolean"},"language":{"type":"string","enum":["nl","en"]}},"required":["name","pin","maxParticipants","musicMediaId","announceJoins","language"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteConferenceRoomsConferenceRoomId","tags":["Routering"],"summary":"Een vergaderlijn verwijderen","description":"Vraagt `write` op `conference-rooms`.","x-access":{"feature":"conference-rooms","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"conferenceRoomId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/directories":{"get":{"operationId":"getDirectories","tags":["Routering"],"summary":"Telefoonboeken","description":"Vraagt `read` op `directories`.","x-access":{"feature":"directories","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postDirectories","tags":["Routering"],"summary":"Een telefoonboek maken","description":"Vraagt `write` op `directories`.","x-access":{"feature":"directories","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"greetingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"matchOn":{"type":"string","enum":["first","last","both"]},"userIds":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"language":{"type":"string","enum":["nl","en"]},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","greetingMediaId","matchOn","userIds","language","fallback"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/directories/{directoryId}":{"put":{"operationId":"putDirectoriesDirectoryId","tags":["Routering"],"summary":"Een telefoonboek wijzigen","description":"Vraagt `write` op `directories`.","x-access":{"feature":"directories","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"directoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"greetingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"matchOn":{"type":"string","enum":["first","last","both"]},"userIds":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"language":{"type":"string","enum":["nl","en"]},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","greetingMediaId","matchOn","userIds","language","fallback"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteDirectoriesDirectoryId","tags":["Routering"],"summary":"Een telefoonboek verwijderen","description":"Vraagt `write` op `directories`.","x-access":{"feature":"directories","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"directoryId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/ivrs":{"get":{"operationId":"getIvrs","tags":["Routering"],"summary":"Keuzemenu's","description":"Vraagt `read` op `ivrs`.","x-access":{"feature":"ivrs","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postIvrs","tags":["Routering"],"summary":"Een keuzemenu maken","description":"Vraagt `write` op `ivrs`.","x-access":{"feature":"ivrs","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"greetingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"timeoutSeconds":{"type":"integer","minimum":1,"maximum":60},"attempts":{"type":"integer","minimum":1,"maximum":5},"options":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["0","1","2","3","4","5","6","7","8","9","*","#"]},"destination":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]}},"required":["key","destination"]}},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","greetingMediaId","timeoutSeconds","attempts","options","fallback"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/ivrs/{ivrId}":{"put":{"operationId":"putIvrsIvrId","tags":["Routering"],"summary":"Een keuzemenu wijzigen","description":"Vraagt `write` op `ivrs`.","x-access":{"feature":"ivrs","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"ivrId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"greetingMediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]},"timeoutSeconds":{"type":"integer","minimum":1,"maximum":60},"attempts":{"type":"integer","minimum":1,"maximum":5},"options":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["0","1","2","3","4","5","6","7","8","9","*","#"]},"destination":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]}},"required":["key","destination"]}},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","greetingMediaId","timeoutSeconds","attempts","options","fallback"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteIvrsIvrId","tags":["Routering"],"summary":"Een keuzemenu verwijderen","description":"Vraagt `write` op `ivrs`.","x-access":{"feature":"ivrs","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"ivrId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/business-hours":{"get":{"operationId":"getBusinessHours","tags":["Routering"],"summary":"Openingstijden","description":"Vraagt `read` op `business-hours`.","x-access":{"feature":"business-hours","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postBusinessHours","tags":["Routering"],"summary":"Openingstijden maken","description":"Vraagt `write` op `business-hours`.","x-access":{"feature":"business-hours","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"slots":{"maxItems":70,"type":"array","items":{"type":"object","properties":{"day":{"type":"integer","minimum":1,"maximum":7},"start":{"type":"string","pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"},"end":{"type":"string","pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"}},"required":["day","start","end"]}},"exceptions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"yearly":{"type":"boolean"},"slots":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"},"end":{"type":"string","pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"}},"required":["start","end"]}},"destination":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","startDate","endDate","yearly","slots","destination"]}},"open":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"closed":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","slots","exceptions","open","closed"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/business-hours/{businessHoursId}":{"put":{"operationId":"putBusinessHoursBusinessHoursId","tags":["Routering"],"summary":"Openingstijden wijzigen","description":"Vraagt `write` op `business-hours`.","x-access":{"feature":"business-hours","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"businessHoursId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"slots":{"maxItems":70,"type":"array","items":{"type":"object","properties":{"day":{"type":"integer","minimum":1,"maximum":7},"start":{"type":"string","pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"},"end":{"type":"string","pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"}},"required":["day","start","end"]}},"exceptions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"startDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"yearly":{"type":"boolean"},"slots":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"},"end":{"type":"string","pattern":"^(?:(?:[01][0-9]|2[0-3]):[0-5][0-9]|24:00)$"}},"required":["start","end"]}},"destination":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","startDate","endDate","yearly","slots","destination"]}},"open":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"closed":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]}},"required":["name","slots","exceptions","open","closed"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteBusinessHoursBusinessHoursId","tags":["Routering"],"summary":"Openingstijden verwijderen","description":"Vraagt `write` op `business-hours`.","x-access":{"feature":"business-hours","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"businessHoursId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/call-actions":{"get":{"operationId":"getCallActions","tags":["Routering"],"summary":"Gespreksacties","description":"Vraagt `read` op `call-actions`.","x-access":{"feature":"call-actions","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postCallActions","tags":["Routering"],"summary":"Een gespreksactie maken","description":"Vraagt `write` op `call-actions`.","x-access":{"feature":"call-actions","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\*[0-9*#]{1,9}$"},"action":{"type":"string","enum":["start_recording","stop_recording","transfer","invite","park"]},"mediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]}},"required":["code","action","mediaId"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/call-actions/{callActionId}":{"put":{"operationId":"putCallActionsCallActionId","tags":["Routering"],"summary":"Een gespreksactie wijzigen","description":"Vraagt `write` op `call-actions`.","x-access":{"feature":"call-actions","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callActionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\*[0-9*#]{1,9}$"},"action":{"type":"string","enum":["start_recording","stop_recording","transfer","invite","park"]},"mediaId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]}},"required":["code","action","mediaId"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteCallActionsCallActionId","tags":["Routering"],"summary":"Een gespreksactie verwijderen","description":"Vraagt `write` op `call-actions`.","x-access":{"feature":"call-actions","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callActionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/ai-agents":{"get":{"operationId":"getAiAgents","tags":["Routering"],"summary":"AI-agents","description":"Vraagt `read` op `ai-agents`.","x-access":{"feature":"ai-agents","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postAiAgents","tags":["Routering"],"summary":"Een AI-agent maken","description":"Vraagt `write` op `ai-agents`.","x-access":{"feature":"ai-agents","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"voiceId":{"type":"string","enum":["EXAVITQu4vr4xnSDxMaL","XrExE9yKIg1WjnnlVkGX","FGY2WhTYpPnrIDTdsKH5","Xb7hH8MSUJpSbSDYk0k2","JBFqnCBsd6RMkjVDRZzb","nPczCjzI2devNBz1zQrb","onwK4e9ZLuTAKqWW03F9","TX3LPaxmHKxFdv7VOQHJ"]},"language":{"type":"string","enum":["nl","en","de","fr"]},"firstMessage":{"type":"string","minLength":1,"maxLength":500},"instructions":{"type":"string","minLength":1,"maxLength":5000},"fields":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["text","date","time","number","boolean","choice"]},"description":{"type":"string","maxLength":300},"required":{"type":"boolean"},"options":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["key","label","type","description","required","options"]}},"notifyUserIds":{"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"webhookUrl":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"afterwards":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"handoff":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"maxMinutes":{"type":"integer","minimum":1,"maximum":30}},"required":["name","voiceId","language","firstMessage","instructions","fields","notifyUserIds","webhookUrl","afterwards","handoff","fallback","maxMinutes"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/ai-agents/{aiAgentId}":{"put":{"operationId":"putAiAgentsAiAgentId","tags":["Routering"],"summary":"Een AI-agent wijzigen","description":"Vraagt `write` op `ai-agents`.","x-access":{"feature":"ai-agents","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"aiAgentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"voiceId":{"type":"string","enum":["EXAVITQu4vr4xnSDxMaL","XrExE9yKIg1WjnnlVkGX","FGY2WhTYpPnrIDTdsKH5","Xb7hH8MSUJpSbSDYk0k2","JBFqnCBsd6RMkjVDRZzb","nPczCjzI2devNBz1zQrb","onwK4e9ZLuTAKqWW03F9","TX3LPaxmHKxFdv7VOQHJ"]},"language":{"type":"string","enum":["nl","en","de","fr"]},"firstMessage":{"type":"string","minLength":1,"maxLength":500},"instructions":{"type":"string","minLength":1,"maxLength":5000},"fields":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["text","date","time","number","boolean","choice"]},"description":{"type":"string","maxLength":300},"required":{"type":"boolean"},"options":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["key","label","type","description","required","options"]}},"notifyUserIds":{"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"webhookUrl":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"afterwards":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"handoff":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"fallback":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"user"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","userId"]},{"type":"object","properties":{"type":{"type":"string","const":"device"},"deviceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","deviceId"]},{"type":"object","properties":{"type":{"type":"string","const":"workflow"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","workflowId"]},{"type":"object","properties":{"type":{"type":"string","const":"ringGroup"},"ringGroupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ringGroupId"]},{"type":"object","properties":{"type":{"type":"string","const":"ivr"},"ivrId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","ivrId"]},{"type":"object","properties":{"type":{"type":"string","const":"voicemail"},"voicemailBoxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","voicemailBoxId"]},{"type":"object","properties":{"type":{"type":"string","const":"businessHours"},"businessHoursId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","businessHoursId"]},{"type":"object","properties":{"type":{"type":"string","const":"aiAgent"},"aiAgentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","aiAgentId"]},{"type":"object","properties":{"type":{"type":"string","const":"queue"},"queueId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","queueId"]},{"type":"object","properties":{"type":{"type":"string","const":"conferenceRoom"},"conferenceRoomId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","conferenceRoomId"]},{"type":"object","properties":{"type":{"type":"string","const":"directory"},"directoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","directoryId"]},{"type":"object","properties":{"type":{"type":"string","const":"announcement"},"mediaId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},"required":["type","mediaId"]},{"type":"object","properties":{"type":{"type":"string","const":"externalNumber"},"number":{"type":"string","minLength":1,"maxLength":32}},"required":["type","number"]}]},{"type":"null"}]},"maxMinutes":{"type":"integer","minimum":1,"maximum":30}},"required":["name","voiceId","language","firstMessage","instructions","fields","notifyUserIds","webhookUrl","afterwards","handoff","fallback","maxMinutes"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteAiAgentsAiAgentId","tags":["Routering"],"summary":"Een AI-agent verwijderen","description":"Vraagt `write` op `ai-agents`.","x-access":{"feature":"ai-agents","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"aiAgentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/media":{"get":{"operationId":"getMedia","tags":["Media"],"summary":"Fragmenten","description":"Vraagt `read` op `media`.","x-access":{"feature":"media","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postMedia","tags":["Media"],"summary":"Een WAV-fragment uploaden","description":"Vraagt `write` op `media`.","x-access":{"feature":"media","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"file":{"type":"string","format":"binary"}},"required":["name","file"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/media/generation/options":{"get":{"operationId":"getMediaGenerationOptions","tags":["Media"],"summary":"Stemmen en soorten om met AI te maken","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/media/generation":{"post":{"operationId":"postMediaGeneration","tags":["Media"],"summary":"Een fragment met AI maken, voor AI-credits","description":"Vraagt `write` op `media`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"media","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"speech"},"text":{"type":"string","minLength":1,"maxLength":2500},"voiceId":{"type":"string","enum":["EXAVITQu4vr4xnSDxMaL","XrExE9yKIg1WjnnlVkGX","FGY2WhTYpPnrIDTdsKH5","Xb7hH8MSUJpSbSDYk0k2","JBFqnCBsd6RMkjVDRZzb","nPczCjzI2devNBz1zQrb","onwK4e9ZLuTAKqWW03F9","TX3LPaxmHKxFdv7VOQHJ"]},"modelId":{"type":"string","enum":["eleven_v4","eleven_v4_turbo"]},"language":{"anyOf":[{"type":"string","enum":["nl","en","de","fr"]},{"type":"null"}]},"stability":{"type":"number","minimum":0,"maximum":1},"similarityBoost":{"type":"number","minimum":0,"maximum":1},"style":{"type":"number","minimum":0,"maximum":1},"speakerBoost":{"type":"boolean"},"speed":{"type":"number","minimum":0.7,"maximum":1.2}},"required":["kind","text","voiceId","modelId","language","stability","similarityBoost","style","speakerBoost","speed"]},{"type":"object","properties":{"kind":{"type":"string","const":"sound-effect"},"prompt":{"type":"string","minLength":1,"maxLength":500},"durationSeconds":{"type":"number","minimum":0.5,"maximum":30},"promptInfluence":{"type":"number","minimum":0,"maximum":1},"loop":{"type":"boolean"}},"required":["kind","prompt","durationSeconds","promptInfluence","loop"]},{"type":"object","properties":{"kind":{"type":"string","const":"music"},"prompt":{"type":"string","minLength":1,"maxLength":500},"durationSeconds":{"type":"integer","minimum":10,"maximum":180},"instrumental":{"type":"boolean"}},"required":["kind","prompt","durationSeconds","instrumental"]}]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}}},"/media/{mediaId}/audio":{"get":{"operationId":"getMediaMediaIdAudio","tags":["Media"],"summary":"Een fragment als WAV","description":"Vraagt `read` op `media`.","x-access":{"feature":"media","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"mediaId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}}},"/media/{mediaId}":{"delete":{"operationId":"deleteMediaMediaId","tags":["Media"],"summary":"Een fragment verwijderen dat nergens wordt gebruikt","description":"Vraagt `write` op `media`.","x-access":{"feature":"media","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"mediaId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/contacts":{"get":{"operationId":"getContacts","tags":["Adresboek"],"summary":"Het gedeelde adresboek","description":"Vraagt `read` op `contacts`.","x-access":{"feature":"contacts","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":600}},{"name":"limit","in":"query","required":false,"schema":{"default":100,"type":"integer","minimum":1,"maximum":500}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postContacts","tags":["Adresboek"],"summary":"Een contact maken","description":"Vraagt `write` op `contacts`.","x-access":{"feature":"contacts","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"company":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"number":{"type":"string","maxLength":40},"email":{"anyOf":[{"anyOf":[{"type":"string","const":""},{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]},{"type":"null"}]}},"required":["name","company","number","email"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/contacts/{contactId}":{"get":{"operationId":"getContactsContactId","tags":["Adresboek"],"summary":"Eén contact","description":"Vraagt `read` op `contacts`.","x-access":{"feature":"contacts","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"contactId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"put":{"operationId":"putContactsContactId","tags":["Adresboek"],"summary":"Een contact wijzigen","description":"Vraagt `write` op `contacts`.","x-access":{"feature":"contacts","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"contactId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"company":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"number":{"type":"string","maxLength":40},"email":{"anyOf":[{"anyOf":[{"type":"string","const":""},{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]},{"type":"null"}]}},"required":["name","company","number","email"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteContactsContactId","tags":["Adresboek"],"summary":"Een contact verwijderen","description":"Vraagt `write` op `contacts`.","x-access":{"feature":"contacts","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"contactId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/statistics":{"get":{"operationId":"getStatistics","tags":["Organisatie"],"summary":"De cijfers van het overzicht","description":"Vraagt `read` op `overview`.","x-access":{"feature":"overview","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"range","in":"query","required":false,"schema":{"default":"today","type":"string","enum":["today","7d","30d"]}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/credits":{"get":{"operationId":"getCredits","tags":["Organisatie"],"summary":"Het saldo AI-credits","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/usage":{"get":{"operationId":"getUsage","tags":["Organisatie"],"summary":"Het verbruik deze maand","parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/usage/storage/files":{"get":{"operationId":"getUsageStorageFiles","tags":["Organisatie"],"summary":"De grootste bestanden","description":"Vraagt `read` op `recordings`.","x-access":{"feature":"recordings","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/billing":{"get":{"operationId":"getBilling","tags":["Organisatie"],"summary":"Het overzicht van Financieel","description":"Vraagt `read` op `billing`.","x-access":{"feature":"billing","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/billing/invoices":{"get":{"operationId":"getBillingInvoices","tags":["Organisatie"],"summary":"Facturen","description":"Vraagt `read` op `billing`.","x-access":{"feature":"billing","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/billing/invoices/{invoiceId}":{"get":{"operationId":"getBillingInvoicesInvoiceId","tags":["Organisatie"],"summary":"Eén factuur","description":"Vraagt `read` op `billing`.","x-access":{"feature":"billing","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/billing/invoices/{invoiceId}/pdf":{"get":{"operationId":"getBillingInvoicesInvoiceIdPdf","tags":["Organisatie"],"summary":"De factuur als pdf","description":"Vraagt `read` op `billing`.","x-access":{"feature":"billing","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}}}}},"/audits":{"get":{"operationId":"getAudits","tags":["Organisatie"],"summary":"De activiteit; vraagt het abonnement Business","description":"Vraagt `read` op `settings`.","x-access":{"feature":"settings","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/webhooks":{"get":{"operationId":"getWebhooks","tags":["Webhooks"],"summary":"Webhooks, met hoe de laatste aflevering ging","description":"Vraagt `read` op `api`.","x-access":{"feature":"api","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postWebhooks","tags":["Webhooks"],"summary":"Een webhook maken; het geheim staat alleen in dit antwoord","description":"Vraagt `write` op `api`.","x-access":{"feature":"api","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"events":{"maxItems":8,"type":"array","items":{"type":"string","enum":["call.started","call.answered","call.ended","recording.ready","transcript.ready","summary.ready","voicemail.received","ai-conversation.ended"]}},"enabled":{"default":true,"type":"boolean"}},"required":["url","description","events"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/webhooks/{webhookId}":{"patch":{"operationId":"patchWebhooksWebhookId","tags":["Webhooks"],"summary":"Een webhook wijzigen","description":"Vraagt `write` op `api`.","x-access":{"feature":"api","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"events":{"maxItems":8,"type":"array","items":{"type":"string","enum":["call.started","call.answered","call.ended","recording.ready","transcript.ready","summary.ready","voicemail.received","ai-conversation.ended"]}},"enabled":{"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteWebhooksWebhookId","tags":["Webhooks"],"summary":"Een webhook verwijderen","description":"Vraagt `write` op `api`.","x-access":{"feature":"api","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/webhooks/{webhookId}/secret":{"post":{"operationId":"postWebhooksWebhookIdSecret","tags":["Webhooks"],"summary":"Een nieuw geheim; het oude werkt meteen niet meer","description":"Vraagt `write` op `api`.","x-access":{"feature":"api","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/webhooks/{webhookId}/test":{"post":{"operationId":"postWebhooksWebhookIdTest","tags":["Webhooks"],"summary":"Een webhook.test sturen","description":"Vraagt `write` op `api`. Daarnaast hoogstens 100 aanroepen per uur.","x-access":{"feature":"api","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/webhooks/{webhookId}/deliveries":{"get":{"operationId":"getWebhooksWebhookIdDeliveries","tags":["Webhooks"],"summary":"Wat er is verstuurd, nieuwste eerst","description":"Vraagt `read` op `api`.","x-access":{"feature":"api","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","delivered","failed"]}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/webhooks/{webhookId}/deliveries/{deliveryId}/retry":{"post":{"operationId":"postWebhooksWebhookIdDeliveriesDeliveryIdRetry","tags":["Webhooks"],"summary":"Een aflevering opnieuw sturen","description":"Vraagt `write` op `api`.","x-access":{"feature":"api","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"webhookId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/agents":{"get":{"operationId":"getAgents","tags":["Agents"],"summary":"Agents, als toestellen: online of niet, met hun toestelnummers","description":"Vraagt `read` op `devices`.","x-access":{"feature":"devices","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"externalId","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"post":{"operationId":"postAgents","tags":["Agents"],"summary":"Een agent maken; neemt een gebruiker in, het SIP-wachtwoord staat alleen in dit antwoord","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"externalId":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"callerId":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"extension":{"default":null,"anyOf":[{"type":"string","pattern":"^[0-9]{2,8}$"},{"type":"null"}]}},"required":["name"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/agents/{agentId}":{"patch":{"operationId":"patchAgentsAgentId","tags":["Agents"],"summary":"Een agent wijzigen of uitzetten","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"agentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"externalId":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]},"callerId":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"enabled":{"type":"boolean"}}}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}},"delete":{"operationId":"deleteAgentsAgentId","tags":["Agents"],"summary":"Een agent verwijderen; zijn gebruiker komt vrij","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"agentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/agents/{agentId}/softphone":{"post":{"operationId":"postAgentsAgentIdSoftphone","tags":["Agents"],"summary":"Een token voor de softphone-SDK, één keer te gebruiken binnen een minuut","description":"Vraagt `write` op `devices`.","x-access":{"feature":"devices","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"agentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"origin":{"anyOf":[{"type":"string","maxLength":300,"format":"uri"},{"type":"null"}]}}}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/calls/{callRecordId}/hangup":{"post":{"operationId":"postCallsCallRecordIdHangup","tags":["Bellen"],"summary":"Een lopend gesprek ophangen","description":"Vraagt `write` op `live-calls`.","x-access":{"feature":"live-calls","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/calls/{callRecordId}/transfer":{"post":{"operationId":"postCallsCallRecordIdTransfer","tags":["Bellen"],"summary":"Een lopend gesprek blind doorverbinden","description":"Vraagt `write` op `live-calls`.","x-access":{"feature":"live-calls","level":"write"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"callRecordId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string","pattern":"^\\+?[0-9*#]{2,32}$"},"deviceId":{"default":null,"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"},{"type":"null"}]}},"required":["destination"]}}}},"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}},"/call-commands/{commandId}":{"get":{"operationId":"getCallCommandsCommandId","tags":["Bellen"],"summary":"Hoe een opdracht aan de centrale is gegaan","description":"Vraagt `read` op `live-calls`.","x-access":{"feature":"live-calls","level":"read"},"parameters":[{"$ref":"#/components/parameters/TenantId"},{"name":"commandId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"}}],"responses":{"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"2XX":{"description":"Gelukt","content":{"application/json":{"schema":{}}}}}}}},"components":{"parameters":{"TenantId":{"name":"TalkIP-Tenant-Id","in":"header","required":false,"description":"Alleen met de sleutel van een reseller: de organisatie die je beheert en voor wie je belt.","schema":{"type":"string","format":"uuid"}}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"tkt_... of tk_...","description":"Een API-sleutel van de organisatie (tkt_), of die van een reseller (tk_) met de header TalkIP-Tenant-Id."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string","enum":["validation","bad-request","unauthorized","forbidden","not-found","conflict","too-many-requests"]},"message":{"type":"string","description":"Wat er precies mis is, zoals TENANT_NOT_FOUND_ERROR."},"target":{"type":"string","description":"Bij validation: body, query of parameters."},"issues":{"type":"array","items":{"type":"object"},"description":"Bij validation: wat er niet klopt."},"retryAfterSeconds":{"type":"integer","description":"Bij too-many-requests, ook als Retry-After."}}}},"responses":{"BadRequest":{"description":"De body of de parameters kloppen niet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Geen, een onbekende of een ingetrokken sleutel.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Niet toegestaan: API_KEY_PERMISSION_ERROR, PLAN_FEATURE_UNAVAILABLE_ERROR of TENANT_INACTIVE_ERROR, onder meer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Bestaat niet, of is niet van deze organisatie.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Kan nu niet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooManyRequests":{"description":"Te veel aanroepen; wacht Retry-After seconden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}