KosmoKrator

forms

Formstack CLI for AI Agents

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

8 functions 6 read 2 write Manual OAuth token auth

Formstack CLI Setup

Formstack can be configured headlessly with `kosmokrator integrations:configure formstack`.

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

Credentials

Authentication type: Manual OAuth token oauth2_manual_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 FORMSTACK_ACCESS_TOKEN Secret secret yes Access Token

Call Formstack Headlessly

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

kosmo integrations:call formstack.formstack_list_forms '{
  "page": 1,
  "per_page": 1,
  "search": "example_search"
}' --json

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

kosmo integrations:formstack formstack_list_forms '{
  "page": 1,
  "per_page": 1,
  "search": "example_search"
}' --json

Agent Discovery Commands

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

kosmo integrations:docs formstack --json
kosmo integrations:docs formstack.formstack_list_forms --json
kosmo integrations:schema formstack.formstack_list_forms --json
kosmo integrations:search "Formstack" --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 Formstack.

formstack.formstack_list_forms

Read read

List all forms in your Formstack account. Returns form names, IDs, and pagination info. Use search to filter by name.

Parameters
page, per_page, search

Generic CLI call

kosmo integrations:call formstack.formstack_list_forms '{"page":1,"per_page":1,"search":"example_search"}' --json

Provider shortcut

kosmo integrations:formstack formstack_list_forms '{"page":1,"per_page":1,"search":"example_search"}' --json

formstack.formstack_get_form

Read read

Get details and field structure of a specific Formstack form. Returns all fields, their types, labels, and options.

Parameters
form_id

Generic CLI call

kosmo integrations:call formstack.formstack_get_form '{"form_id":1}' --json

Provider shortcut

kosmo integrations:formstack formstack_get_form '{"form_id":1}' --json

formstack.formstack_list_submissions

Read read

List submissions for a specific Formstack form. Returns submission IDs, timestamps, and optionally expanded field data.

Parameters
form_id, page, per_page, expand_data

Generic CLI call

kosmo integrations:call formstack.formstack_list_submissions '{"form_id":1,"page":1,"per_page":1,"expand_data":true}' --json

Provider shortcut

kosmo integrations:formstack formstack_list_submissions '{"form_id":1,"page":1,"per_page":1,"expand_data":true}' --json

formstack.formstack_get_submission

Read read

Get details of a specific Formstack submission. Returns all field values, timestamps, and metadata.

Parameters
submission_id

Generic CLI call

kosmo integrations:call formstack.formstack_get_submission '{"submission_id":1}' --json

Provider shortcut

kosmo integrations:formstack formstack_get_submission '{"submission_id":1}' --json

formstack.formstack_create_submission

Write write

Create a new submission for a Formstack form. Pass field values using the field keys from the form structure. Use Get Form first to discover available fields.

Parameters
form_id, fields

Generic CLI call

kosmo integrations:call formstack.formstack_create_submission '{"form_id":1,"fields":"example_fields"}' --json

Provider shortcut

kosmo integrations:formstack formstack_create_submission '{"form_id":1,"fields":"example_fields"}' --json

formstack.formstack_delete_submission

Write write

Delete a Formstack submission. This action is permanent and cannot be undone.

Parameters
submission_id

Generic CLI call

kosmo integrations:call formstack.formstack_delete_submission '{"submission_id":1}' --json

Provider shortcut

kosmo integrations:formstack formstack_delete_submission '{"submission_id":1}' --json

formstack.formstack_list_folders

Read read

List all folders in your Formstack account. Folders are used to organize forms.

Parameters
none

Generic CLI call

kosmo integrations:call formstack.formstack_list_folders '{}' --json

Provider shortcut

kosmo integrations:formstack formstack_list_folders '{}' --json

formstack.formstack_get_current_user

Read read

Get the currently authenticated Formstack user profile. Returns name, email, and account info.

Parameters
none

Generic CLI call

kosmo integrations:call formstack.formstack_get_current_user '{}' --json

Provider shortcut

kosmo integrations:formstack formstack_get_current_user '{}' --json

Function Schemas

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

formstack.formstack_list_forms

List all forms in your Formstack account. Returns form names, IDs, and pagination info. Use search to filter by name.

Operation
Read read
Schema command
kosmo integrations:schema formstack.formstack_list_forms --json
ParameterTypeRequiredDescription
page integer no Page number for pagination (default: 1).
per_page integer no Number of forms per page (default: 25, max: 200).
search string no Optional search string to filter forms by name.

formstack.formstack_get_form

Get details and field structure of a specific Formstack form. Returns all fields, their types, labels, and options.

Operation
Read read
Schema command
kosmo integrations:schema formstack.formstack_get_form --json
ParameterTypeRequiredDescription
form_id integer yes The numeric ID of the form to retrieve.

formstack.formstack_list_submissions

List submissions for a specific Formstack form. Returns submission IDs, timestamps, and optionally expanded field data.

Operation
Read read
Schema command
kosmo integrations:schema formstack.formstack_list_submissions --json
ParameterTypeRequiredDescription
form_id integer yes The numeric ID of the form.
page integer no Page number for pagination (default: 1).
per_page integer no Number of submissions per page (default: 25, max: 200).
expand_data boolean no Whether to expand submission data with field labels (default: false).

formstack.formstack_get_submission

Get details of a specific Formstack submission. Returns all field values, timestamps, and metadata.

Operation
Read read
Schema command
kosmo integrations:schema formstack.formstack_get_submission --json
ParameterTypeRequiredDescription
submission_id integer yes The numeric ID of the submission to retrieve.

formstack.formstack_create_submission

Create a new submission for a Formstack form. Pass field values using the field keys from the form structure. Use Get Form first to discover available fields.

Operation
Write write
Schema command
kosmo integrations:schema formstack.formstack_create_submission --json
ParameterTypeRequiredDescription
form_id integer yes The numeric ID of the form to submit to.
fields object yes Object with field keys and their values. E.g. {"field_123456": "John Doe", "field_234567": "[email protected]"}. Use Get Form to find field keys.

formstack.formstack_delete_submission

Delete a Formstack submission. This action is permanent and cannot be undone.

Operation
Write write
Schema command
kosmo integrations:schema formstack.formstack_delete_submission --json
ParameterTypeRequiredDescription
submission_id integer yes The numeric ID of the submission to delete.

formstack.formstack_list_folders

List all folders in your Formstack account. Folders are used to organize forms.

Operation
Read read
Schema command
kosmo integrations:schema formstack.formstack_list_folders --json
ParameterTypeRequiredDescription
No parameters.

formstack.formstack_get_current_user

Get the currently authenticated Formstack user profile. Returns name, email, and account info.

Operation
Read read
Schema command
kosmo integrations:schema formstack.formstack_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.