KosmoKrator

productivity

Zapier CLI for AI Agents

Use the Zapier CLI from KosmoKrator to call Zapier tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 7 read 0 write Bearer token auth

Zapier CLI Setup

Zapier can be configured headlessly with `kosmokrator integrations:configure zapier`.

# 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 zapier --set access_token="$ZAPIER_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor zapier --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token ZAPIER_ACCESS_TOKEN Secret secret yes Access Token

Call Zapier Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call zapier.zapier_list_zaps '{
  "limit": 1,
  "page": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:zapier zapier_list_zaps '{
  "limit": 1,
  "page": 1
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs zapier --json
kosmo integrations:docs zapier.zapier_list_zaps --json
kosmo integrations:schema zapier.zapier_list_zaps --json
kosmo integrations:search "Zapier" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Zapier.

zapier.zapier_list_zaps

Read read

List zaps in Zapier with optional filters.

Parameters
limit, page

Generic CLI call

kosmo integrations:call zapier.zapier_list_zaps '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:zapier zapier_list_zaps '{"limit":1,"page":1}' --json

zapier.zapier_get_zap

Read read

Get detailed information about a Zapier zap.

Parameters
id

Generic CLI call

kosmo integrations:call zapier.zapier_get_zap '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:zapier zapier_get_zap '{"id":"example_id"}' --json

zapier.zapier_list_executions

Read read

List zap executions in Zapier with optional filters.

Parameters
zap_id, limit, page

Generic CLI call

kosmo integrations:call zapier.zapier_list_executions '{"zap_id":"example_zap_id","limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:zapier zapier_list_executions '{"zap_id":"example_zap_id","limit":1,"page":1}' --json

zapier.zapier_get_execution

Read read

Get detailed information about a Zapier execution.

Parameters
id

Generic CLI call

kosmo integrations:call zapier.zapier_get_execution '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:zapier zapier_get_execution '{"id":"example_id"}' --json

zapier.zapier_list_connections

Read read

List connections in Zapier with optional filters.

Parameters
limit, page

Generic CLI call

kosmo integrations:call zapier.zapier_list_connections '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:zapier zapier_list_connections '{"limit":1,"page":1}' --json

zapier.zapier_get_connection

Read read

Get detailed information about a Zapier connection.

Parameters
id

Generic CLI call

kosmo integrations:call zapier.zapier_get_connection '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:zapier zapier_get_connection '{"id":"example_id"}' --json

zapier.zapier_get_current_user

Read read

Get the currently authenticated Zapier user.

Parameters
none

Generic CLI call

kosmo integrations:call zapier.zapier_get_current_user '{}' --json

Provider shortcut

kosmo integrations:zapier zapier_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

zapier.zapier_list_zaps

List zaps in Zapier with optional filters.

Operation
Read read
Schema command
kosmo integrations:schema zapier.zapier_list_zaps --json
ParameterTypeRequiredDescription
limit integer no Max number of zaps to return.
page integer no Page number for pagination.

zapier.zapier_get_zap

Get detailed information about a Zapier zap.

Operation
Read read
Schema command
kosmo integrations:schema zapier.zapier_get_zap --json
ParameterTypeRequiredDescription
id string yes The zap ID.

zapier.zapier_list_executions

List zap executions in Zapier with optional filters.

Operation
Read read
Schema command
kosmo integrations:schema zapier.zapier_list_executions --json
ParameterTypeRequiredDescription
zap_id string no Filter executions by zap ID.
limit integer no Max number of executions to return.
page integer no Page number for pagination.

zapier.zapier_get_execution

Get detailed information about a Zapier execution.

Operation
Read read
Schema command
kosmo integrations:schema zapier.zapier_get_execution --json
ParameterTypeRequiredDescription
id string yes The execution ID.

zapier.zapier_list_connections

List connections in Zapier with optional filters.

Operation
Read read
Schema command
kosmo integrations:schema zapier.zapier_list_connections --json
ParameterTypeRequiredDescription
limit integer no Max number of connections to return.
page integer no Page number for pagination.

zapier.zapier_get_connection

Get detailed information about a Zapier connection.

Operation
Read read
Schema command
kosmo integrations:schema zapier.zapier_get_connection --json
ParameterTypeRequiredDescription
id string yes The connection ID.

zapier.zapier_get_current_user

Get the currently authenticated Zapier user.

Operation
Read read
Schema command
kosmo integrations:schema zapier.zapier_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

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.