Skip to main content
POST
https://prod-contactswing-fastapi-962560522883.us-central1.run.app
/
v2
/
actions
Create DTMF Action
curl --request POST \
  --url https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/actions \
  --header 'Authorization: <authorization>'
{
  "ctx_id": "<string>",
  "data": {
    "action_id": "<string>",
    "name": "<string>",
    "type": "<string>"
  }
}

Authorizations

Authorization
string
required
Enter your ContactSwing JWT Bearer token.

Request Body

name
string
required
Action display name. Example: DTMF Action
description
string
required
Action purpose. Example: DTMF Action Test
action_timing
string
required
When to trigger: "DURING"
type
string
required
Action type: "DTMF_ACTION"
webhook
object
required
DTMF webhook configuration

DTMF Configuration

webhook.mandatory
boolean
Require DTMF input before proceeding
webhook.description
string
DTMF prompt/description. Example: DTMF Action Test

Response

201 Created - DTMF action created successfully
ctx_id
string
Request context ID
data
object
action_id
string
New DTMF action ID
name
string
Action name
type
string
”DTMF_ACTION”
400 Bad Request - Invalid DTMF webhook configuration 401 Unauthorized - Invalid token