> For complete lifecycle-event payload schemas and examples, use the canonical overview: Session /api/sessions; Room lifecycle, members, and room playback /api/rooms; Session playback /api/playback; Recording /api/recording; DTMF /api/keypad-input; Messages /api/messages; WebSocket Session /api/web-socket. Use /api/event-delivery for transport behavior. Endpoint pages name relevant events, but these overviews are the canonical references.

# Cancel in-progress DTMF collection

DELETE https://api.telekesher.dev/v1/sessions/{uuid}/dtmf/collect

**Rate limit: Per command** · **Burst:** 4 · **Refill:** 0.8 req/s

Cancel the current DTMF collection for this session. If no collection is in progress, the request is accepted and has no effect.

If a collection is in progress, cancellation proceeds in these stages:

1. The `202` response accepts the cancellation request.
2. Prompt playback stops promptly.
3. The collection phase ends according to its existing timers.
4. The platform emits the terminal `digits.collected` webhook with `status: cancelled`.

The `202` response does not mean that the terminal webhook is ready.

Input entered after cancellation is discarded from later collections. It is reported only by the cancelled command's terminal `digits.collected` event.

This DELETE uses its own rate-limit bucket. The corresponding POST uses the same configuration in a separate bucket.

See [Keypad input lifecycle events](/api/keypad-input#lifecycle-events) for complete payload schemas and examples.

Reference: https://docs.vorbal.dev/api/keypad-input/cancel

## Authentication

- `Authorization` header (bearer token, required) — Application auth. Send `Authorization: Bearer <app_uuid>:<api_key>` using any active key in the app's collection. See [Authentication](https://voice-platform.docs.buildwithfern.com/api/authentication) for details.

## Request

### Path parameters

- `uuid` (string, required) — [Session](/api/sessions) identifier.

### Headers

- `Operation-Id` (string, optional) — optional client-supplied lowercase RFC-4122 v4 UUID returned as operation_uuid; platform generates one when omitted; correlation metadata distinct from Idempotency-Key.

## Response

### 202

Cancellation accepted.

- `operation_uuid` (string, required)
- `status` (enum, required)
  - Allowed values: `cancelling`

## Examples

**Response**

```json
{
  "operation_uuid": "550e8400-e29b-41d4-a716-446655440000",
  "status": "cancelling"
}
```

**SDK Code**

```python Keypad Input_cancelPlayPromptAndCollectDTMFDigits_example
import requests

url = "https://api.telekesher.dev/v1/sessions/uuid/dtmf/collect"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.json())
```

```javascript Keypad Input_cancelPlayPromptAndCollectDTMFDigits_example
const url = 'https://api.telekesher.dev/v1/sessions/uuid/dtmf/collect';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Keypad Input_cancelPlayPromptAndCollectDTMFDigits_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.telekesher.dev/v1/sessions/uuid/dtmf/collect"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Keypad Input_cancelPlayPromptAndCollectDTMFDigits_example
require 'uri'
require 'net/http'

url = URI("https://api.telekesher.dev/v1/sessions/uuid/dtmf/collect")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Keypad Input_cancelPlayPromptAndCollectDTMFDigits_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.delete("https://api.telekesher.dev/v1/sessions/uuid/dtmf/collect")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Keypad Input_cancelPlayPromptAndCollectDTMFDigits_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('DELETE', 'https://api.telekesher.dev/v1/sessions/uuid/dtmf/collect', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Keypad Input_cancelPlayPromptAndCollectDTMFDigits_example
using RestSharp;

var client = new RestClient("https://api.telekesher.dev/v1/sessions/uuid/dtmf/collect");
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Keypad Input_cancelPlayPromptAndCollectDTMFDigits_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.telekesher.dev/v1/sessions/uuid/dtmf/collect")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```