KosmoKrator

email

Constant Contact CLI for AI Agents

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

6 functions 5 read 1 write Manual OAuth token auth

Constant Contact CLI Setup

Constant Contact can be configured headlessly with `kosmokrator integrations:configure constant_contact`.

# 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 constant_contact --set access_token="$CONSTANT_CONTACT_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor constant_contact --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 CONSTANT_CONTACT_ACCESS_TOKEN Secret secret yes Access Token
url CONSTANT_CONTACT_URL URL url no API Base URL

Call Constant Contact Headlessly

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

kosmo integrations:call constant_contact.constantcontact_list_contacts '{
  "limit": 1,
  "cursor": "example_cursor",
  "status": "example_status"
}' --json

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

kosmo integrations:constant_contact constantcontact_list_contacts '{
  "limit": 1,
  "cursor": "example_cursor",
  "status": "example_status"
}' --json

Agent Discovery Commands

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

kosmo integrations:docs constant_contact --json
kosmo integrations:docs constant_contact.constantcontact_list_contacts --json
kosmo integrations:schema constant_contact.constantcontact_list_contacts --json
kosmo integrations:search "Constant Contact" --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 Constant Contact.

constant_contact.constantcontact_list_contacts

Read read

List contacts from Constant Contact. Supports pagination and filtering by status (active, unconfirmed, opted_out, non_subscriber).

Parameters
limit, cursor, status

Generic CLI call

kosmo integrations:call constant_contact.constantcontact_list_contacts '{"limit":1,"cursor":"example_cursor","status":"example_status"}' --json

Provider shortcut

kosmo integrations:constant_contact constantcontact_list_contacts '{"limit":1,"cursor":"example_cursor","status":"example_status"}' --json

constant_contact.constantcontact_get_contact

Read read

Get detailed information for a single Constant Contact contact by ID, including email, name, phone, address, and list memberships.

Parameters
contact_id

Generic CLI call

kosmo integrations:call constant_contact.constantcontact_get_contact '{"contact_id":"example_contact_id"}' --json

Provider shortcut

kosmo integrations:constant_contact constantcontact_get_contact '{"contact_id":"example_contact_id"}' --json

constant_contact.constantcontact_create_contact

Write write

Create a new contact in Constant Contact. Requires an email address. Optionally set first name, last name, and assign to lists.

Parameters
email, first_name, last_name, list_ids

Generic CLI call

kosmo integrations:call constant_contact.constantcontact_create_contact '{"email":"example_email","first_name":"example_first_name","last_name":"example_last_name","list_ids":"example_list_ids"}' --json

Provider shortcut

kosmo integrations:constant_contact constantcontact_create_contact '{"email":"example_email","first_name":"example_first_name","last_name":"example_last_name","list_ids":"example_list_ids"}' --json

constant_contact.constantcontact_list_campaigns

Read read

List email campaigns from Constant Contact. Supports cursor-based pagination.

Parameters
limit, cursor

Generic CLI call

kosmo integrations:call constant_contact.constantcontact_list_campaigns '{"limit":1,"cursor":"example_cursor"}' --json

Provider shortcut

kosmo integrations:constant_contact constantcontact_list_campaigns '{"limit":1,"cursor":"example_cursor"}' --json

constant_contact.constantcontact_list_lists

Read read

List all contact lists in Constant Contact. Returns list IDs, names, and membership counts. Use list IDs when creating contacts.

Parameters
none

Generic CLI call

kosmo integrations:call constant_contact.constantcontact_list_lists '{}' --json

Provider shortcut

kosmo integrations:constant_contact constantcontact_list_lists '{}' --json

constant_contact.constantcontact_get_current_user

Read read

Get the authenticated user's Constant Contact account information, including name, email, and organization details.

Parameters
none

Generic CLI call

kosmo integrations:call constant_contact.constantcontact_get_current_user '{}' --json

Provider shortcut

kosmo integrations:constant_contact constantcontact_get_current_user '{}' --json

Function Schemas

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

constant_contact.constantcontact_list_contacts

List contacts from Constant Contact. Supports pagination and filtering by status (active, unconfirmed, opted_out, non_subscriber).

Operation
Read read
Schema command
kosmo integrations:schema constant_contact.constantcontact_list_contacts --json
ParameterTypeRequiredDescription
limit integer no Maximum number of contacts to return per page (default: 50, max: 500).
cursor string no Pagination cursor from a previous response to fetch the next page of results.
status string no Filter contacts by status: "all", "active", "unconfirmed", "opted_out", or "non_subscriber".

constant_contact.constantcontact_get_contact

Get detailed information for a single Constant Contact contact by ID, including email, name, phone, address, and list memberships.

Operation
Read read
Schema command
kosmo integrations:schema constant_contact.constantcontact_get_contact --json
ParameterTypeRequiredDescription
contact_id string yes The Constant Contact contact ID.

constant_contact.constantcontact_create_contact

Create a new contact in Constant Contact. Requires an email address. Optionally set first name, last name, and assign to lists.

Operation
Write write
Schema command
kosmo integrations:schema constant_contact.constantcontact_create_contact --json
ParameterTypeRequiredDescription
email string yes The contact's email address.
first_name string no The contact's first name.
last_name string no The contact's last name.
list_ids array no Array of list UUIDs to add the contact to. Use list_contacts or list_lists to discover available list IDs.

constant_contact.constantcontact_list_campaigns

List email campaigns from Constant Contact. Supports cursor-based pagination.

Operation
Read read
Schema command
kosmo integrations:schema constant_contact.constantcontact_list_campaigns --json
ParameterTypeRequiredDescription
limit integer no Maximum number of campaigns to return per page (default: 50).
cursor string no Pagination cursor from a previous response to fetch the next page of results.

constant_contact.constantcontact_list_lists

List all contact lists in Constant Contact. Returns list IDs, names, and membership counts. Use list IDs when creating contacts.

Operation
Read read
Schema command
kosmo integrations:schema constant_contact.constantcontact_list_lists --json
ParameterTypeRequiredDescription
No parameters.

constant_contact.constantcontact_get_current_user

Get the authenticated user's Constant Contact account information, including name, email, and organization details.

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