KosmoKrator

productivity

Hootsuite CLI for AI Agents

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

Hootsuite CLI Setup

Hootsuite can be configured headlessly with `kosmokrator integrations:configure hootsuite`.

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 hootsuite --set access_token="$HOOTSUITE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor hootsuite --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 HOOTSUITE_ACCESS_TOKEN Secret secret yes Access Token
url HOOTSUITE_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 hootsuite.hootsuite_list_messages '{"startTime":"example_startTime","endTime":"example_endTime","limit":1,"socialProfileIds":"example_socialProfileIds"}' --json
Provider shortcut
kosmo integrations:hootsuite hootsuite_list_messages '{"startTime":"example_startTime","endTime":"example_endTime","limit":1,"socialProfileIds":"example_socialProfileIds"}' --json

Discovery

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

Discovery commands
kosmo integrations:docs hootsuite --json
kosmo integrations:docs hootsuite.hootsuite_list_messages --json
kosmo integrations:schema hootsuite.hootsuite_list_messages --json
kosmo integrations:search "Hootsuite" --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.

hootsuite.hootsuite_list_messages

List scheduled and past messages in Hootsuite. Filter by time range, social profiles, and limit. Returns message IDs, text, scheduled send times, and status.

Read read
Parameters
startTime, endTime, limit, socialProfileIds
Generic call
kosmo integrations:call hootsuite.hootsuite_list_messages '{"startTime":"example_startTime","endTime":"example_endTime","limit":1,"socialProfileIds":"example_socialProfileIds"}' --json
Shortcut
kosmo integrations:hootsuite hootsuite_list_messages '{"startTime":"example_startTime","endTime":"example_endTime","limit":1,"socialProfileIds":"example_socialProfileIds"}' --json

hootsuite.hootsuite_get_message

Get details of a specific Hootsuite message by its ID. Returns the message text, scheduled send time, social profiles, and delivery status.

Read read
Parameters
messageId
Generic call
kosmo integrations:call hootsuite.hootsuite_get_message '{"messageId":"example_messageId"}' --json
Shortcut
kosmo integrations:hootsuite hootsuite_get_message '{"messageId":"example_messageId"}' --json

hootsuite.hootsuite_create_message

Schedule a new social media message in Hootsuite. Provide the text content, target social profile IDs, and the scheduled send time.

Write write
Parameters
text, socialProfileIds, scheduledSendTime
Generic call
kosmo integrations:call hootsuite.hootsuite_create_message '{"text":"example_text","socialProfileIds":"example_socialProfileIds","scheduledSendTime":"example_scheduledSendTime"}' --json
Shortcut
kosmo integrations:hootsuite hootsuite_create_message '{"text":"example_text","socialProfileIds":"example_socialProfileIds","scheduledSendTime":"example_scheduledSendTime"}' --json

hootsuite.hootsuite_list_social_profiles

List all social media profiles connected to the Hootsuite account. Returns profile IDs, types (e.g., Twitter, Facebook, LinkedIn), and display names.

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

hootsuite.hootsuite_get_social_profile

Get details of a specific social media profile in Hootsuite by its ID. Returns profile type, display name, and account metadata.

Read read
Parameters
profileId
Generic call
kosmo integrations:call hootsuite.hootsuite_get_social_profile '{"profileId":"example_profileId"}' --json
Shortcut
kosmo integrations:hootsuite hootsuite_get_social_profile '{"profileId":"example_profileId"}' --json

hootsuite.hootsuite_list_members

List members of the Hootsuite organization. Returns member IDs, names, emails, and roles. Use limit to control page size.

Read read
Parameters
limit
Generic call
kosmo integrations:call hootsuite.hootsuite_list_members '{"limit":1}' --json
Shortcut
kosmo integrations:hootsuite hootsuite_list_members '{"limit":1}' --json

hootsuite.hootsuite_get_current_user

Get the currently authenticated Hootsuite user profile. Returns the member name, email, and organization info.

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

Function Schemas

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

hootsuite.hootsuite_list_messages 4 parameters
Schema command
kosmo integrations:schema hootsuite.hootsuite_list_messages --json
ParameterTypeRequiredDescription
startTime string no Start of time range in ISO 8601 format (e.g., "2025-01-01T00:00:00Z").
endTime string no End of time range in ISO 8601 format (e.g., "2025-01-31T23:59:59Z").
limit integer no Maximum number of messages to return.
socialProfileIds array no Array of social profile IDs to filter messages by.
hootsuite.hootsuite_get_message 1 parameters
Schema command
kosmo integrations:schema hootsuite.hootsuite_get_message --json
ParameterTypeRequiredDescription
messageId string yes The message ID to retrieve.
hootsuite.hootsuite_create_message 3 parameters
Schema command
kosmo integrations:schema hootsuite.hootsuite_create_message --json
ParameterTypeRequiredDescription
text string yes The message text content to post.
socialProfileIds array yes Array of social profile IDs to publish the message to.
scheduledSendTime string yes ISO 8601 timestamp for when the message should be sent (e.g., "2025-02-01T09:00:00Z").
hootsuite.hootsuite_list_social_profiles 0 parameters
Schema command
kosmo integrations:schema hootsuite.hootsuite_list_social_profiles --json
ParameterTypeRequiredDescription
No parameters.
hootsuite.hootsuite_get_social_profile 1 parameters
Schema command
kosmo integrations:schema hootsuite.hootsuite_get_social_profile --json
ParameterTypeRequiredDescription
profileId string yes The social profile ID to retrieve.
hootsuite.hootsuite_list_members 1 parameters
Schema command
kosmo integrations:schema hootsuite.hootsuite_list_members --json
ParameterTypeRequiredDescription
limit integer no Maximum number of members to return.
hootsuite.hootsuite_get_current_user 0 parameters
Schema command
kosmo integrations:schema hootsuite.hootsuite_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.