> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contactswing.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create DTMF Action

> Create DTMF (Dual-Tone Multi-Frequency) actions for IVR keypad input handling.

### Authorizations

<ParamField header="Authorization" type="string" required>
  Enter your ContactSwing JWT Bearer token.
</ParamField>

### Request Body

<ParamField body="name" type="string" required>
  Action display name. Example: `DTMF Action`
</ParamField>

<ParamField body="description" type="string" required>
  Action purpose. Example: `DTMF Action Test`
</ParamField>

<ParamField body="action_timing" type="string" required>
  When to trigger: `"DURING"`
</ParamField>

<ParamField body="type" type="string" required>
  Action type: `"DTMF_ACTION"`
</ParamField>

<ParamField body="webhook" type="object" required>
  DTMF webhook configuration

  <ParamField body="webhook.mandatory" type="boolean">
    Require DTMF input before proceeding
  </ParamField>

  <ParamField body="webhook.description" type="string">
    DTMF prompt/description. Example: `DTMF Action Test`
  </ParamField>
</ParamField>

### Response

**201 Created** - DTMF action created successfully

<ResponseField name="ctx_id" type="string">Request context ID</ResponseField>

<ResponseField name="data" type="object">
  <ResponseField name="action_id" type="string">New DTMF action ID</ResponseField>
  <ResponseField name="name" type="string">Action name</ResponseField>
  <ResponseField name="type" type="string">"DTMF\_ACTION"</ResponseField>
</ResponseField>

**400 Bad Request** - Invalid DTMF webhook configuration

**401 Unauthorized** - Invalid token
