Skip to main content
POST
Create Aircall Action

Authorizations

Authorization
string
required
Enter your ContactSwing JWT Bearer token.

Request Body

name
string
required
Action display name. Example: My Aircall Action
description
string
Action purpose. Example: Test
action_timing
string
required
When to trigger: "DURING"
type
string
required
Action type: "AIRCALL"
webhook
object
required
Aircall webhook configuration
from
integer
required
Source number ID. Example: 1768408427
to
integer
required
Destination number ID. Example: 1768408427
mandatory
boolean
Require Aircall response before proceeding
tags
string[]
Call tags []

Response

201 Created - Aircall action created successfully
ctx_id
string
Request context ID
data
object
action_id
string
New Aircall action ID
name
string
Action name
type
string
”AIRCALL”
400 Bad Request - Invalid Aircall number IDs or configuration 401 Unauthorized - Invalid token