{"id":18888,"date":"2026-11-19T00:15:58","date_gmt":"2026-11-18T18:45:58","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/"},"modified":"2026-11-19T00:55:39","modified_gmt":"2026-11-18T19:25:39","slug":"voice-api-key-press","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/","title":{"rendered":"IVR key press (DTMF) and call patch voice call API"},"content":{"rendered":"<p>The Fast2SMS voice API can do more than play a recording. Add <code>dtmf_keys<\/code> to make an IVR key press call (&#8220;Press 1 for Yes, 2 for No&#8221;) and get each caller&#8217;s key in the report, or add <code>agent_groups<\/code> to make a call patch campaign that connects the caller to your team when they press a key. Both use the same endpoint, <code>POST https:\/\/www.fast2sms.com\/dev\/voice\/bulk<\/code>. This guide shows the fields, the voice files you need, how charges differ and code in cURL, PHP, Python and Node.js.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Collect answers and leads by voice call<\/strong><p>Ask customers to press a key, record their choice, or put them straight through to your sales team.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Which campaign type you get<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>You send<\/th>\n<th>Campaign type<\/th>\n<th>What the caller hears and does<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>file_id<\/code> only<\/td>\n<td>Simple<\/td>\n<td>Hears one recording. See <a href=\"\/help\/voice-api-bulk-call\/\">bulk voice call API<\/a><\/td>\n<\/tr>\n<tr>\n<td><code>file_id<\/code> + <code>dtmf_keys<\/code><\/td>\n<td>Key Press (DTMF)<\/td>\n<td>Hears a question, presses one of the allowed keys; the key is saved in the report<\/td>\n<\/tr>\n<tr>\n<td><code>file_id<\/code> + <code>agent_groups<\/code> + <code>no_agent_file_id<\/code><\/td>\n<td>Call Patch<\/td>\n<td>Hears a menu, presses a key and is connected to an agent in that key&#8217;s group<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>For Key Press and Call Patch, <code>file_id<\/code> is the file that asks the caller to press a key. If you also send <code>menu_file_id<\/code>, then <code>file_id<\/code> plays first as a greeting and <code>menu_file_id<\/code> asks for the key.<\/p>\n<h2>Before you start<\/h2>\n<ul>\n<li>Approved voice files: one that asks for a key press (Used As &#8220;Menu (press a key)&#8221;), and the optional follow-up files. Find their File IDs in <strong>Voice Files<\/strong> or with <code>GET \/dev\/voice\/files<\/code>.<\/li>\n<li>For Call Patch: at least one agent group, and an approved &#8220;No Agent Available&#8221; file.<\/li>\n<li>Paid recharges of \u20b9100 or more on the account, your <a href=\"\/help\/api-key-find-reset\/\">API key<\/a>, and wallet balance for the hold.<\/li>\n<\/ul>\n<h2>Key press (IVR) call by API<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Choose the keys and files<\/h3>\n<p>Decide which keys count as an answer, for example 1 and 2. Pick the menu file that asks the question and, if you want, a thank-you file that plays after a valid key.<\/p>\n<\/li>\n<li>\n<h3>Send the request<\/h3>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/www.fast2sms.com\/dev\/voice\/bulk\" \\\n  -H \"authorization: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"campaign_name\":\"Customer Feedback Survey\",\"numbers\":\"9999999999,8888888888\",\n       \"file_id\":\"30031\",\"dtmf_keys\":\"1,2,3\",\"thanks_file_id\":\"30033\",\n       \"no_input_file_id\":\"30034\",\"wrong_input_file_id\":\"30035\",\n       \"menu_wait_time\":5,\"reprompt\":1}'<\/code><\/pre>\n<\/li>\n<li>\n<h3>Read the keys pressed<\/h3>\n<p>When the campaign is done, the report shows each caller&#8217;s key. In the panel, open the campaign from <strong>Voice Report<\/strong>: the <strong>Key<\/strong> column has the digit pressed. By API, call <code>GET \/dev\/voice\/report?request_id=V...&amp;numbers=1<\/code> and read <code>dtmf<\/code> for each number.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/voice-campaign-keypress-hd-4-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Voice Reports campaign Customer Feedback Survey: 45 calls with 30 answered, total pulses 87, charged 21.75 and refunded 34.50, and a receivers table with Duration, Pulses, Charge and the Key column showing 3 for an answered call\"><figcaption>The Key column shows which key each caller pressed.<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<h3>Key press fields<\/h3>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Rules<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>dtmf_keys<\/code><\/td>\n<td>The keys you accept, 0 to 9, separated by commas, for example <code>1,2<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>file_id<\/code><\/td>\n<td>The menu file that asks for a key (required)<\/td>\n<\/tr>\n<tr>\n<td><code>thanks_file_id<\/code><\/td>\n<td>Plays after a valid key. Without it the call ends after the key<\/td>\n<\/tr>\n<tr>\n<td><code>welcome_file_id<\/code> or <code>menu_file_id<\/code><\/td>\n<td>Optional greeting before the question (see above)<\/td>\n<\/tr>\n<tr>\n<td><code>no_input_file_id<\/code><\/td>\n<td>Plays if no key is pressed<\/td>\n<\/tr>\n<tr>\n<td><code>wrong_input_file_id<\/code><\/td>\n<td>Plays if a key outside <code>dtmf_keys<\/code> is pressed<\/td>\n<\/tr>\n<tr>\n<td><code>menu_wait_time<\/code><\/td>\n<td>Seconds to wait for a key, 1 to 10 (panel default 5)<\/td>\n<\/tr>\n<tr>\n<td><code>reprompt<\/code><\/td>\n<td>How many times to repeat the question if no key is pressed, 0 to 3 (panel default 1)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>These optional fields are not yet on the public API docs page at the time of writing, but they match the options on the <strong>Bulk Voice Call<\/strong> page in the panel.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Your IVR, without IVR hardware<\/strong><p>Fast2SMS runs the calls, collects the keys and refunds unanswered calls. You just send one API request.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Call patch: connect callers to your agents<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Create agent groups and copy their Group IDs<\/h3>\n<p>Open <strong>Agent Groups<\/strong> under VOICE CALL (OBD) and click <strong>Create Group<\/strong>. Add a group name and 1 to 50 agents with their 10-digit mobile numbers. The list shows each group&#8217;s <strong>Group ID<\/strong> with a copy button.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/voice-agent-groups-hd-1-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Agent Groups page with three groups: Delivery Helpdesk 30003, Support Desk 30002 and Sales Team 30001, with agent names and mobile numbers\"><figcaption>Each group has a Group ID that you map to a key.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Map keys to groups<\/h3>\n<p>Write <code>agent_groups<\/code> as key:GroupID pairs separated by commas. <code>1:30001,2:30002<\/code> sends callers who press 1 to Sales Team and 2 to Support Desk. Use each key once.<\/p>\n<\/li>\n<li>\n<h3>Send the request<\/h3>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/www.fast2sms.com\/dev\/voice\/bulk\" \\\n  -H \"authorization: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"campaign_name\":\"Kitchenware leads\",\"numbers\":\"9999999999,8888888888\",\n       \"file_id\":\"30041\",\"agent_groups\":\"1:30001,2:30002\",\"no_agent_file_id\":\"30042\"}'<\/code><\/pre>\n<p><code>file_id<\/code> is the menu (&#8220;Press 1 for sales, 2 for support&#8221;) and <code>no_agent_file_id<\/code> plays when no agent in the group picks up. Both are required for Call Patch.<\/p>\n<\/li>\n<li>\n<h3>See who talked to whom<\/h3>\n<p>The report shows, for each caller, the key, the agent who answered, the agent talk time and the charge. In the panel you can also play the call recording, kept for 30 days. By API, <code>agent_number<\/code> and <code>agent_duration<\/code> come in the report and the Voice <a href=\"\/help\/fast2sms-webhooks-setup-delivery-reports\/\">webhook<\/a>.<\/p>\n<\/li>\n<\/ol>\n<h2>Code examples (Key Press)<\/h2>\n<h3>PHP<\/h3>\n<pre><code class=\"language-php\">&lt;?php\n$payload = [\n    \"campaign_name\"  =&gt; \"Customer Feedback Survey\",\n    \"numbers\"        =&gt; \"9999999999,8888888888\",\n    \"file_id\"        =&gt; \"30031\",\n    \"dtmf_keys\"      =&gt; \"1,2,3\",\n    \"thanks_file_id\" =&gt; \"30033\",\n];\n$ch = curl_init(\"https:\/\/www.fast2sms.com\/dev\/voice\/bulk\");\ncurl_setopt_array($ch, [\n    CURLOPT_POST           =&gt; true,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_HTTPHEADER     =&gt; [\"authorization: YOUR_API_KEY\", \"Content-Type: application\/json\"],\n    CURLOPT_POSTFIELDS     =&gt; json_encode($payload),\n    CURLOPT_TIMEOUT        =&gt; 60,\n]);\n$data = json_decode(curl_exec($ch), true);\ncurl_close($ch);\necho ($data[\"return\"] ?? false) === true ? $data[\"request_id\"] : ($data[\"message\"] ?? \"error\");<\/code><\/pre>\n<h3>Python<\/h3>\n<pre><code class=\"language-python\">import requests\n\npayload = {\n    \"campaign_name\": \"Kitchenware leads\",\n    \"numbers\": \"9999999999,8888888888\",\n    \"file_id\": \"30041\",\n    \"agent_groups\": \"1:30001,2:30002\",\n    \"no_agent_file_id\": \"30042\",\n}\nr = requests.post(\"https:\/\/www.fast2sms.com\/dev\/voice\/bulk\",\n                  headers={\"authorization\": \"YOUR_API_KEY\"}, json=payload, timeout=60)\ndata = r.json()\nprint(data[\"request_id\"] if data.get(\"return\") else data.get(\"message\"))<\/code><\/pre>\n<h3>Node.js<\/h3>\n<pre><code class=\"language-javascript\">const res = await fetch(\"https:\/\/www.fast2sms.com\/dev\/voice\/bulk\", {\n  method: \"POST\",\n  headers: { authorization: process.env.FAST2SMS_API_KEY, \"Content-Type\": \"application\/json\" },\n  body: JSON.stringify({\n    campaign_name: \"Customer Feedback Survey\",\n    numbers: \"9999999999,8888888888\",\n    file_id: \"30031\",\n    dtmf_keys: \"1,2,3\",\n    thanks_file_id: \"30033\",\n  }),\n});\nconst data = await res.json();\nconsole.log(data.return === true ? data.request_id : data.message);<\/code><\/pre>\n<h2>How charges differ<\/h2>\n<ul>\n<li><strong>Key Press:<\/strong> the hold per number covers the longest path through your files, plus the wait time and repeats, rounded up to whole <a href=\"\/help\/bulk-voice-call-price-pulse-cost\/\">pulses<\/a>. Only answered calls are charged, and never more than the estimate plus one pulse.<\/li>\n<li><strong>Call Patch:<\/strong> at the time of writing a fixed hold of 40 pulses per number is taken (\u20b910 per number at \u20b90.25 per pulse). After the call, both the caller&#8217;s leg and the agent&#8217;s leg are charged by the pulse. A very long agent talk can be charged above the hold, as &#8220;Voice Call Extra Talk Time&#8221;.<\/li>\n<li>Unanswered and unused amounts come back automatically after the campaign&#8217;s report is in. See <a href=\"\/help\/voice-api-report\/\">voice call report and refunds by API<\/a>.<\/li>\n<\/ul>\n<div class=\"f2s-note f2s-volume\"><p><strong>Sending in bulk?<\/strong> For high voice call volumes our team offers discounted rates. <a href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Talk to our team<\/a> or see <a href=\"https:\/\/www.fast2sms.com\/voice-call-pricing\">voice call pricing<\/a>.<\/p><\/div>\n<h2>Common problems and fixes<\/h2>\n<h3>&#8220;Choose the voice file the caller hears first (it asks the caller to press a key).&#8221;<\/h3>\n<p>Send <code>file_id<\/code> with an approved menu file.<\/p>\n<h3>&#8220;Choose the voice file that plays when no agent picks up.&#8221;<\/h3>\n<p>Call Patch needs <code>no_agent_file_id<\/code> with an approved file.<\/p>\n<h3>&#8220;Choose at least one key (0-9) the caller can press.&#8221;<\/h3>\n<p>Check the format of <code>dtmf_keys<\/code>, for example <code>1,2<\/code>.<\/p>\n<h3>&#8220;Key N is used twice. Use each key for one agent group only.&#8221;<\/h3>\n<p>In <code>agent_groups<\/code> each key may appear once.<\/p>\n<h3>&#8220;Choose the agent group for key N.&#8221; or &#8220;Each key must be one digit from 0 to 9.&#8221;<\/h3>\n<p>Write each pair as key:GroupID, for example <code>1:30001<\/code>, with the Group ID from <strong>Agent Groups<\/strong>.<\/p>\n<h3>Agents do not answer<\/h3>\n<p>The caller hears the no-agent file and the report shows &#8220;Agent did not answer&#8221; or &#8220;Agent busy&#8221;. Keep enough agents free while the campaign runs, and send smaller batches.<\/p>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>What is a DTMF or key press voice call?<\/h3>\n<p>A recorded call that asks the listener to press a key on their phone. The key they press is saved, so you can run surveys, confirmations or interest checks.<\/p>\n<h3>Can I get the pressed key on my server?<\/h3>\n<p>Yes. The Voice webhook sends one request per number after the campaign&#8217;s report is in, including <code>dtmf<\/code>. You can also read it from the report API.<\/p>\n<h3>How many agents can be in one group?<\/h3>\n<p>From 1 to 50 agents per group.<\/p>\n<h3>Are call patch calls recorded?<\/h3>\n<p>Yes. Recordings can be played from the campaign in the Voice Report for 30 days.<\/p>\n<h3>Can I delete an agent group that a campaign uses?<\/h3>\n<p>Not while a scheduled or running Call Patch campaign uses it.<\/p>\n<\/section>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Build your IVR campaign today<\/strong><p>Sign up for Fast2SMS, upload your menu file and run key press or call patch campaigns by API.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"\/help\/ivr-key-press-call-patch-voice-campaign\/\">IVR key press and call patch campaigns in the panel<\/a><\/li>\n<li><a href=\"\/help\/voice-api-bulk-call\/\">Send bulk voice calls with the Fast2SMS API<\/a><\/li>\n<li><a href=\"\/help\/voice-file-upload-format-approval\/\">Voice file upload format and approval<\/a><\/li>\n<li><a href=\"\/help\/voice-call-report-status-charges-refund\/\">Voice call report, statuses, charges and refunds<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/voice-call\">Fast2SMS voice call<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Fast2SMS voice API can do more than play a recording. Add dtmf_keys to make an IVR key press call (&#8220;Press 1 for Yes, 2 for No&#8221;) and get each caller&#8217;s key in the report, or add agent_groups to make a call patch campaign that connects the caller to your team when they press a [&hellip;]<\/p>\n","protected":false},"featured_media":18883,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,29],"tags":[],"class_list":["post-18888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-voice-call"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>IVR Key Press (DTMF) and Call Patch API | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Run IVR key press and call patch voice campaigns by API: dtmf_keys, agent_groups, voice files, the pressed key, charges and fixes, with code samples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"IVR Key Press (DTMF) and Call Patch API | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Run IVR key press and call patch voice campaigns by API: dtmf_keys, agent_groups, voice files, the pressed key, charges and fixes, with code samples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/\" \/>\n<meta property=\"og:site_name\" content=\"Fast2SMS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Fast2SMS\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T18:45:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T19:25:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/voice-campaign-keypress-hd-4-scaled.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fast2sms\" \/>\n<meta name=\"twitter:site\" content=\"@fast2sms\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"IVR key press (DTMF) and call patch voice call API\",\"datePublished\":\"2026-11-18T18:45:58+00:00\",\"dateModified\":\"2026-11-18T19:25:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/\"},\"wordCount\":1151,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/voice-campaign-keypress-hd-4-scaled.webp\",\"articleSection\":[\"API\",\"Voice Call\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/\",\"name\":\"IVR Key Press (DTMF) and Call Patch API | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/voice-campaign-keypress-hd-4-scaled.webp\",\"datePublished\":\"2026-11-18T18:45:58+00:00\",\"dateModified\":\"2026-11-18T19:25:39+00:00\",\"description\":\"Run IVR key press and call patch voice campaigns by API: dtmf_keys, agent_groups, voice files, the pressed key, charges and fixes, with code samples.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/voice-campaign-keypress-hd-4-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/voice-campaign-keypress-hd-4-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"Voice Reports campaign Customer Feedback Survey: 45 calls with 30 answered, total pulses 87, charged 21.75 and refunded 34.50, and a receivers table with Duration, Pulses, Charge and the Key column showing 3 for an answered call\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/voice-api-key-press\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/api\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"IVR key press (DTMF) and call patch voice call API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\",\"name\":\"Fast2SMS\",\"description\":\"Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"inLanguage\":\"en-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\",\"name\":\"Fast2SMS\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"caption\":\"Fast2SMS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\"},\"email\":\"support@fast2sms.com\",\"telephone\":\"+91-6262778822\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Fast2SMS\",\"https:\\\/\\\/www.instagram.com\\\/fast2sms\",\"https:\\\/\\\/x.com\\\/fast2sms\",\"https:\\\/\\\/www.youtube.com\\\/Fast2SMSofficial\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/fast2sms\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"IVR Key Press (DTMF) and Call Patch API | Fast2SMS","description":"Run IVR key press and call patch voice campaigns by API: dtmf_keys, agent_groups, voice files, the pressed key, charges and fixes, with code samples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/","og_locale":"en_US","og_type":"article","og_title":"IVR Key Press (DTMF) and Call Patch API | Fast2SMS","og_description":"Run IVR key press and call patch voice campaigns by API: dtmf_keys, agent_groups, voice files, the pressed key, charges and fixes, with code samples.","og_url":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-18T18:45:58+00:00","article_modified_time":"2026-11-18T19:25:39+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/voice-campaign-keypress-hd-4-scaled.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_creator":"@fast2sms","twitter_site":"@fast2sms","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"IVR key press (DTMF) and call patch voice call API","datePublished":"2026-11-18T18:45:58+00:00","dateModified":"2026-11-18T19:25:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/"},"wordCount":1151,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/voice-campaign-keypress-hd-4-scaled.webp","articleSection":["API","Voice Call"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/","url":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/","name":"IVR Key Press (DTMF) and Call Patch API | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/voice-campaign-keypress-hd-4-scaled.webp","datePublished":"2026-11-18T18:45:58+00:00","dateModified":"2026-11-18T19:25:39+00:00","description":"Run IVR key press and call patch voice campaigns by API: dtmf_keys, agent_groups, voice files, the pressed key, charges and fixes, with code samples.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/voice-campaign-keypress-hd-4-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/voice-campaign-keypress-hd-4-scaled.webp","width":2560,"height":1600,"caption":"Voice Reports campaign Customer Feedback Survey: 45 calls with 30 answered, total pulses 87, charged 21.75 and refunded 34.50, and a receivers table with Duration, Pulses, Charge and the Key column showing 3 for an answered call"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/voice-api-key-press\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fast2sms.com\/help\/"},{"@type":"ListItem","position":2,"name":"API","item":"https:\/\/www.fast2sms.com\/help\/api\/"},{"@type":"ListItem","position":3,"name":"IVR key press (DTMF) and call patch voice call API"}]},{"@type":"WebSite","@id":"https:\/\/www.fast2sms.com\/help\/#website","url":"https:\/\/www.fast2sms.com\/help\/","name":"Fast2SMS","description":"Help","publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"inLanguage":"en-IN"},{"@type":"Organization","@id":"https:\/\/www.fast2sms.com\/#organization","name":"Fast2SMS","url":"https:\/\/www.fast2sms.com\/","logo":{"@type":"ImageObject","@id":"https:\/\/www.fast2sms.com\/#logo","url":"https:\/\/www.fast2sms.com\/Fast2SMS.png","contentUrl":"https:\/\/www.fast2sms.com\/Fast2SMS.png","caption":"Fast2SMS"},"image":{"@id":"https:\/\/www.fast2sms.com\/#logo"},"email":"support@fast2sms.com","telephone":"+91-6262778822","sameAs":["https:\/\/www.facebook.com\/Fast2SMS","https:\/\/www.instagram.com\/fast2sms","https:\/\/x.com\/fast2sms","https:\/\/www.youtube.com\/Fast2SMSofficial","https:\/\/www.linkedin.com\/company\/fast2sms"]}]}},"_links":{"self":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/18888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/comments?post=18888"}],"version-history":[{"count":1,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/18888\/revisions"}],"predecessor-version":[{"id":19453,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/18888\/revisions\/19453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/18883"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=18888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=18888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=18888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}