Create voice menu
documentedCreate a voice menu for inbound call routing.
POST /api/v1/accounts/{account_id}/voice_menusVoice Menusno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.calltrackingmetrics.com/api/v1/accounts/{{$account_id}}/voice_menus" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "description": "{{$description}}", "schedule_id": "{{$schedule_id}}", "play_message": "{{$play_message}}", "max_digits": {{$max_digits}}, "timeout": {{$timeout}}, "menu_items": [ {"keypress": "{{$keypress}}", "action": "{{$action}}", "destination_type": "{{$destination_type}}", "destination_id": "{{$destination_id}}", "play_message": "{{$item_play_message}}"} ] }'