Use the Aircall CLI from KosmoKrator to call Aircall tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Aircall can be configured headlessly with `kosmokrator integrations:configure aircall`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure aircall --set access_token="$AIRCALL_ACCESS_TOKEN" --enable --read allow --write ask --jsonkosmokrator integrations:doctor aircall --jsonkosmokrator integrations:status --json
Credentials
Authentication type: Manual OAuth tokenoauth2_manual_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
access_token
AIRCALL_ACCESS_TOKEN
Secret secret
yes
Access Token
url
AIRCALL_URL
URL url
no
API Base URL
Call Aircall Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Aircall.
aircall.aircall_list_calls
Read read
List calls from Aircall with optional filters. Supports filtering by date range, direction (inbound/outbound), user ID, phone number, and tags. Returns paginated call records.
Parameters
per_page, page, order, from, to, direction, user_id, number_id, tags
Retrieve detailed information about a specific call in Aircall by its ID. Returns call details including duration, direction, status, recording, and contact information.
List contacts from Aircall with optional search and pagination. Search by name, phone number, or email. Returns contact details including phone numbers and emails.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
aircall.aircall_list_calls
List calls from Aircall with optional filters. Supports filtering by date range, direction (inbound/outbound), user ID, phone number, and tags. Returns paginated call records.
Number of results per page (default: 20, max: 50).
page
integer
no
Page number for pagination (default: 1).
order
string
no
Sort order: "asc" or "desc" (default: "desc").
from
string
no
Start date in ISO 8601 format (e.g., "2026-01-01T00:00:00Z").
to
string
no
End date in ISO 8601 format (e.g., "2026-01-31T23:59:59Z").
direction
string
no
Filter by call direction: "inbound" or "outbound".
user_id
integer
no
Filter by user ID who handled the call.
number_id
integer
no
Filter by phone number ID (the Aircall number that received/made the call).
tags
array
no
Filter by tags assigned to the call.
aircall.aircall_get_call
Retrieve detailed information about a specific call in Aircall by its ID. Returns call details including duration, direction, status, recording, and contact information.
List contacts from Aircall with optional search and pagination. Search by name, phone number, or email. Returns contact details including phone numbers and emails.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.