Skip to main content
POST
Create Data Extraction Action

Authorizations

string
required
Enter your ContactSwing JWT Bearer token.

Request Body

string
required
Action display name. Example: My Data Extraction Action
string
User prompt/description. Example: "Trigger this action if the user requests data extraction."
string
required
When to trigger: "DURING"
string
required
Action type: "SINGLEDATAEXTRACTION"
object
required
Data extraction webhook configuration
boolean
Require user response before proceeding
string
Data field name
string
User prompt/description. Example: "user interested on buying the product"
string
Response type: "yes/no"
boolean
Sync extracted data automatically
string
Target module: "customers"
string
Database field to store data: "customer_timezone"

Response

201 Created - Data extraction action created successfully
string
Request context ID
object
string
New extraction action ID
string
Action name
string
”SINGLEDATAEXTRACTION”
400 Bad Request - Invalid webhook configuration 401 Unauthorized - Invalid token