KosmoKrator

marketing

Sprout Social CLI for AI Agents

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

7 functions 6 read 1 write Manual OAuth token auth

Sprout Social CLI Setup

Sprout Social can be configured headlessly with `kosmokrator integrations:configure sproutsocial`.

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

Call Sprout Social Headlessly

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

kosmo integrations:call sproutsocial.sproutsocial_list_profiles '{}' --json

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

kosmo integrations:sproutsocial sproutsocial_list_profiles '{}' --json

Agent Discovery Commands

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

kosmo integrations:docs sproutsocial --json
kosmo integrations:docs sproutsocial.sproutsocial_list_profiles --json
kosmo integrations:schema sproutsocial.sproutsocial_list_profiles --json
kosmo integrations:search "Sprout Social" --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 Sprout Social.

sproutsocial.sproutsocial_list_profiles

Read read

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

Parameters
none

Generic CLI call

kosmo integrations:call sproutsocial.sproutsocial_list_profiles '{}' --json

Provider shortcut

kosmo integrations:sproutsocial sproutsocial_list_profiles '{}' --json

sproutsocial.sproutsocial_get_profile

Read read

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

Parameters
profileId

Generic CLI call

kosmo integrations:call sproutsocial.sproutsocial_get_profile '{"profileId":"example_profileId"}' --json

Provider shortcut

kosmo integrations:sproutsocial sproutsocial_get_profile '{"profileId":"example_profileId"}' --json

sproutsocial.sproutsocial_list_posts

Read read

List posts across social profiles in Sprout Social. Optionally filter by status (sent, scheduled, draft) and paginate results.

Parameters
count, page, status

Generic CLI call

kosmo integrations:call sproutsocial.sproutsocial_list_posts '{"count":1,"page":1,"status":"example_status"}' --json

Provider shortcut

kosmo integrations:sproutsocial sproutsocial_list_posts '{"count":1,"page":1,"status":"example_status"}' --json

sproutsocial.sproutsocial_create_post

Write write

Create and schedule a new social media post in Sprout Social. Provide the text content, target profile IDs, and optionally a scheduled time or media attachments.

Parameters
text, profileIds, scheduledAt, media

Generic CLI call

kosmo integrations:call sproutsocial.sproutsocial_create_post '{"text":"example_text","profileIds":"example_profileIds","scheduledAt":"example_scheduledAt","media":"example_media"}' --json

Provider shortcut

kosmo integrations:sproutsocial sproutsocial_create_post '{"text":"example_text","profileIds":"example_profileIds","scheduledAt":"example_scheduledAt","media":"example_media"}' --json

sproutsocial.sproutsocial_list_messages

Read read

List inbox messages and conversations in Sprout Social. Returns message IDs, sender info, and content snippets with pagination support.

Parameters
count, page

Generic CLI call

kosmo integrations:call sproutsocial.sproutsocial_list_messages '{"count":1,"page":1}' --json

Provider shortcut

kosmo integrations:sproutsocial sproutsocial_list_messages '{"count":1,"page":1}' --json

sproutsocial.sproutsocial_get_message

Read read

Get details of a specific message in Sprout Social by its ID. Returns sender info, message content, attachments, and conversation metadata.

Parameters
messageId

Generic CLI call

kosmo integrations:call sproutsocial.sproutsocial_get_message '{"messageId":"example_messageId"}' --json

Provider shortcut

kosmo integrations:sproutsocial sproutsocial_get_message '{"messageId":"example_messageId"}' --json

sproutsocial.sproutsocial_get_current_user

Read read

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

Parameters
none

Generic CLI call

kosmo integrations:call sproutsocial.sproutsocial_get_current_user '{}' --json

Provider shortcut

kosmo integrations:sproutsocial sproutsocial_get_current_user '{}' --json

Function Schemas

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

sproutsocial.sproutsocial_list_profiles

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

Operation
Read read
Schema command
kosmo integrations:schema sproutsocial.sproutsocial_list_profiles --json
ParameterTypeRequiredDescription
No parameters.

sproutsocial.sproutsocial_get_profile

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

Operation
Read read
Schema command
kosmo integrations:schema sproutsocial.sproutsocial_get_profile --json
ParameterTypeRequiredDescription
profileId string yes The social profile ID to retrieve.

sproutsocial.sproutsocial_list_posts

List posts across social profiles in Sprout Social. Optionally filter by status (sent, scheduled, draft) and paginate results.

Operation
Read read
Schema command
kosmo integrations:schema sproutsocial.sproutsocial_list_posts --json
ParameterTypeRequiredDescription
count integer no Number of posts to return per page.
page integer no Page number for pagination.
status string no Filter by post status: "sent", "scheduled", or "draft".

sproutsocial.sproutsocial_create_post

Create and schedule a new social media post in Sprout Social. Provide the text content, target profile IDs, and optionally a scheduled time or media attachments.

Operation
Write write
Schema command
kosmo integrations:schema sproutsocial.sproutsocial_create_post --json
ParameterTypeRequiredDescription
text string yes The text content of the post.
profileIds array yes Array of Sprout Social profile IDs to publish the post to.
scheduledAt string no ISO 8601 timestamp for when the post should be sent (e.g., "2025-02-01T09:00:00Z").
media object no Media attachments such as photo URL, link, or thumbnail.

sproutsocial.sproutsocial_list_messages

List inbox messages and conversations in Sprout Social. Returns message IDs, sender info, and content snippets with pagination support.

Operation
Read read
Schema command
kosmo integrations:schema sproutsocial.sproutsocial_list_messages --json
ParameterTypeRequiredDescription
count integer no Number of messages to return per page.
page integer no Page number for pagination.

sproutsocial.sproutsocial_get_message

Get details of a specific message in Sprout Social by its ID. Returns sender info, message content, attachments, and conversation metadata.

Operation
Read read
Schema command
kosmo integrations:schema sproutsocial.sproutsocial_get_message --json
ParameterTypeRequiredDescription
messageId string yes The message ID to retrieve.

sproutsocial.sproutsocial_get_current_user

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

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