KosmoKrator

productivity

SurveyMonkey CLI for AI Agents

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

SurveyMonkey CLI Setup

SurveyMonkey can be configured headlessly with `kosmokrator integrations:configure surveymonkey`.

Install, configure, and verify
# 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 surveymonkey --set access_token="$SURVEYMONKEY_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor surveymonkey --json
kosmokrator integrations:status --json

Credentials

Authentication type: Manual OAuth token oauth2_manual_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
access_token SURVEYMONKEY_ACCESS_TOKEN Secret secret yes Access Token
url SURVEYMONKEY_URL URL url no API Base URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call surveymonkey.surveymonkey_list_surveys '{"page":1,"per_page":1}' --json
Provider shortcut
kosmo integrations:surveymonkey surveymonkey_list_surveys '{"page":1,"per_page":1}' --json

Discovery

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

Discovery commands
kosmo integrations:docs surveymonkey --json
kosmo integrations:docs surveymonkey.surveymonkey_list_surveys --json
kosmo integrations:schema surveymonkey.surveymonkey_list_surveys --json
kosmo integrations:search "SurveyMonkey" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

surveymonkey.surveymonkey_list_surveys

List all surveys in your SurveyMonkey account. Returns survey IDs, titles, and creation dates.

Read read
Parameters
page, per_page
Generic call
kosmo integrations:call surveymonkey.surveymonkey_list_surveys '{"page":1,"per_page":1}' --json
Shortcut
kosmo integrations:surveymonkey surveymonkey_list_surveys '{"page":1,"per_page":1}' --json

surveymonkey.surveymonkey_get_survey

Get details of a specific SurveyMonkey survey by ID, including title, language, and question count.

Read read
Parameters
survey_id
Generic call
kosmo integrations:call surveymonkey.surveymonkey_get_survey '{"survey_id":"example_survey_id"}' --json
Shortcut
kosmo integrations:surveymonkey surveymonkey_get_survey '{"survey_id":"example_survey_id"}' --json

surveymonkey.surveymonkey_create_survey

Create a new blank survey in SurveyMonkey with a given title.

Write write
Parameters
title
Generic call
kosmo integrations:call surveymonkey.surveymonkey_create_survey '{"title":"example_title"}' --json
Shortcut
kosmo integrations:surveymonkey surveymonkey_create_survey '{"title":"example_title"}' --json

surveymonkey.surveymonkey_list_responses

List all bulk responses for a SurveyMonkey survey. Returns response IDs, timestamps, and answer data.

Read read
Parameters
survey_id, page, per_page
Generic call
kosmo integrations:call surveymonkey.surveymonkey_list_responses '{"survey_id":"example_survey_id","page":1,"per_page":1}' --json
Shortcut
kosmo integrations:surveymonkey surveymonkey_list_responses '{"survey_id":"example_survey_id","page":1,"per_page":1}' --json

surveymonkey.surveymonkey_get_response

Get a single response for a SurveyMonkey survey by response ID, including all answers and metadata.

Read read
Parameters
survey_id, response_id
Generic call
kosmo integrations:call surveymonkey.surveymonkey_get_response '{"survey_id":"example_survey_id","response_id":"example_response_id"}' --json
Shortcut
kosmo integrations:surveymonkey surveymonkey_get_response '{"survey_id":"example_survey_id","response_id":"example_response_id"}' --json

surveymonkey.surveymonkey_list_collectors

List all collectors for a SurveyMonkey survey. Collectors are distribution channels (e.g., weblink, email).

Read read
Parameters
survey_id
Generic call
kosmo integrations:call surveymonkey.surveymonkey_list_collectors '{"survey_id":"example_survey_id"}' --json
Shortcut
kosmo integrations:surveymonkey surveymonkey_list_collectors '{"survey_id":"example_survey_id"}' --json

surveymonkey.surveymonkey_create_collector

Create a collector for a SurveyMonkey survey to distribute it. Collector types include "weblink" (shareable URL) and "email" (email invitation).

Write write
Parameters
survey_id, type, name
Generic call
kosmo integrations:call surveymonkey.surveymonkey_create_collector '{"survey_id":"example_survey_id","type":"example_type","name":"example_name"}' --json
Shortcut
kosmo integrations:surveymonkey surveymonkey_create_collector '{"survey_id":"example_survey_id","type":"example_type","name":"example_name"}' --json

surveymonkey.surveymonkey_get_current_user

Get details of the currently authenticated SurveyMonkey user, including name, email, and plan info.

Read read
Parameters
none
Generic call
kosmo integrations:call surveymonkey.surveymonkey_get_current_user '{}' --json
Shortcut
kosmo integrations:surveymonkey surveymonkey_get_current_user '{}' --json

Function Schemas

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

surveymonkey.surveymonkey_list_surveys 2 parameters
Schema command
kosmo integrations:schema surveymonkey.surveymonkey_list_surveys --json
ParameterTypeRequiredDescription
page integer no Page number for pagination (default: 1).
per_page integer no Number of surveys per page (default: 50, max: 100).
surveymonkey.surveymonkey_get_survey 1 parameters
Schema command
kosmo integrations:schema surveymonkey.surveymonkey_get_survey --json
ParameterTypeRequiredDescription
survey_id string yes The survey ID.
surveymonkey.surveymonkey_create_survey 1 parameters
Schema command
kosmo integrations:schema surveymonkey.surveymonkey_create_survey --json
ParameterTypeRequiredDescription
title string yes The title for the new survey.
surveymonkey.surveymonkey_list_responses 3 parameters
Schema command
kosmo integrations:schema surveymonkey.surveymonkey_list_responses --json
ParameterTypeRequiredDescription
survey_id string yes The survey ID.
page integer no Page number for pagination (default: 1).
per_page integer no Number of responses per page (default: 50, max: 100).
surveymonkey.surveymonkey_get_response 2 parameters
Schema command
kosmo integrations:schema surveymonkey.surveymonkey_get_response --json
ParameterTypeRequiredDescription
survey_id string yes The survey ID.
response_id string yes The response ID.
surveymonkey.surveymonkey_list_collectors 1 parameters
Schema command
kosmo integrations:schema surveymonkey.surveymonkey_list_collectors --json
ParameterTypeRequiredDescription
survey_id string yes The survey ID.
surveymonkey.surveymonkey_create_collector 3 parameters
Schema command
kosmo integrations:schema surveymonkey.surveymonkey_create_collector --json
ParameterTypeRequiredDescription
survey_id string yes The survey ID.
type string yes Collector type: "weblink" or "email".
name string no A display name for the collector.
surveymonkey.surveymonkey_get_current_user 0 parameters
Schema command
kosmo integrations:schema surveymonkey.surveymonkey_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.