Send DTMF into existing call

This example shows you how to send a DTMF into an existing call.

Replace the following placeholder values in the sample code:

KeyDescription
bearer_tokenYour OAuth token. Read more about OAuth tokens
account_idThe Vonage Business Communications account ID.
call_idThe call id for the call you would like to update
legThe leg id for the call you would like to update
dtmfThe DTMF code you would like to send into the call.
curl -X PUT 'https://api.vonage.com/t/vbc.prod/telephony/v3/cc/accounts/$account/calls/$call_id/legs/$leg_id'--header 'Content-Type: application/json' \--header 'Authorization: Bearer $bearer_token' \--data-raw '{ "dtmf": "$dtmf" }'