Comment Plugs
Get Comment Plug config
Reads the default Comment Plug (automatic first-comment) settings for one or all accounts in the workspace: LinkedIn profiles, company pages and X accounts. On X the plug posts as a self-reply to the first tweet.
/api/public/comment-plugs/configcurl "https://postiv.ai/api/public/comment-plugs/config" \
-H "Authorization: Bearer pk_postiv_..."{
"success": true,
"orgId": "9e6397ad-...",
"profiles": [
{
"id": 1234,
"channel": "linkedin",
"profileType": "personal",
"name": "Jan",
"cmmConnected": true,
"plugReady": true,
"config": {
"enabled": true,
"delayMinutes": 30,
"selectionMode": "random",
"variants": [
{
"id": "v1",
"text": "Grab the template here: ...",
"useWhen": null,
"imageSource": null
}
]
}
}
],
"config": null,
"warnings": []
}Authorization
Requires an organization API key with the profiles:read scope, sent as Authorization: Bearer or x-api-key.
Query parameters
integrationIdintOne account (LinkedIn or X). Alias: integration_id. Omit to list all accounts. An account decides the channel.
channelstringNarrow the list to one channel. Omit for LinkedIn and X together. A channel that contradicts integrationId's channel returns 400 channel_mismatch.
linkedinxResponse
Profiles with their Comment Plug config (defaulted when unset).
orgIduuidprofiles[].idintprofiles[].channelstringChannel of the account.
profiles[].profileTypestringprofiles[].namestring|nullprofiles[].usernamestring|nullX handle. Null for LinkedIn.
profiles[].cmmConnectedbooleanLinkedIn only: whether LinkedIn's comment-management permission is connected; enabled LinkedIn configs require this true. Not returned for X accounts.
profiles[].plugReadybooleanWhether the plug can run: cmmConnected for LinkedIn, an active connection for X.
profiles[].config.enabledbooleanprofiles[].config.delayMinutesintDefault/minimum 2.
profiles[].config.selectionModestringprofiles[].config.variantsarray[{ id, text, useWhen, imageSource }]
configobject|nullConvenience: same as profiles[0].config when integrationId was passed; null otherwise.
warningsstring[]e.g. a note if the comment_plug_configs table isn't migrated yet.
Errors
| 400 | invalid_integration_id: integrationId not a positive integer / invalid_channel: channel is not linkedin or x |
| 404 | integration_not_found: integrationId given but not an account in this workspace (or an X account that needs reconnecting) |
| 400 | channel_mismatch: channel contradicts the channel of integrationId |
Good to know
- Call before relying on schedule_post's commentPlug 'inherit' mode: inherit only actually posts a comment when enabled, has variants, and plugReady is true (cmmConnected for LinkedIn; an active X account is always ready).