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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call hootsuite.hootsuite_list_messages '{"startTime":"example_startTime","endTime":"example_endTime","limit":1,"socialProfileIds":"example_socialProfileIds"}' --json 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.
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 - Parameters
- startTime, endTime, limit, socialProfileIds
kosmo integrations:call hootsuite.hootsuite_list_messages '{"startTime":"example_startTime","endTime":"example_endTime","limit":1,"socialProfileIds":"example_socialProfileIds"}' --json 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 - Parameters
- messageId
kosmo integrations:call hootsuite.hootsuite_get_message '{"messageId":"example_messageId"}' --json 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 - Parameters
- text, socialProfileIds, scheduledSendTime
kosmo integrations:call hootsuite.hootsuite_create_message '{"text":"example_text","socialProfileIds":"example_socialProfileIds","scheduledSendTime":"example_scheduledSendTime"}' --json 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 - Parameters
- none
kosmo integrations:call hootsuite.hootsuite_list_social_profiles '{}' --json 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 - Parameters
- profileId
kosmo integrations:call hootsuite.hootsuite_get_social_profile '{"profileId":"example_profileId"}' --json 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 - Parameters
- limit
kosmo integrations:call hootsuite.hootsuite_list_members '{"limit":1}' --json 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 - Parameters
- none
kosmo integrations:call hootsuite.hootsuite_get_current_user '{}' --json 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
kosmo integrations:schema hootsuite.hootsuite_list_messages --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema hootsuite.hootsuite_get_message --json | Parameter | Type | Required | Description |
|---|---|---|---|
messageId | string | yes | The message ID to retrieve. |
hootsuite.hootsuite_create_message 3 parameters
kosmo integrations:schema hootsuite.hootsuite_create_message --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema hootsuite.hootsuite_list_social_profiles --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
hootsuite.hootsuite_get_social_profile 1 parameters
kosmo integrations:schema hootsuite.hootsuite_get_social_profile --json | Parameter | Type | Required | Description |
|---|---|---|---|
profileId | string | yes | The social profile ID to retrieve. |
hootsuite.hootsuite_list_members 1 parameters
kosmo integrations:schema hootsuite.hootsuite_list_members --json | Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Maximum number of members to return. |
hootsuite.hootsuite_get_current_user 0 parameters
kosmo integrations:schema hootsuite.hootsuite_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.