get_connected_accounts
Lists each connected social profile together with the profileId used to target it. Call this before create_post so a post reaches the profile you intended rather than every account on that platform.
On this page
- Category
- Channels
- REST
- POST/api/tools/get_connected_accounts
Parameters
workspaceIdstringoptional
Workspace to act on, from list_workspaces. Omit to use the default workspace on the key.
Example request
curl -X POST "https://api.postmcpai.com/api/tools/get_connected_accounts" \
-H "Content-Type: application/json" \
-H "x-api-key: $POSTMCPAI_API_KEY"Response
An array of connected profiles. Only profiles with a live authorisation are included.
[
{
"platform": "linkedin",
"username": "alex-johnson-dev",
"name": "Alex Johnson",
"profileId": "lin_9823412",
"isOrganization": false
},
{
"platform": "linkedin",
"username": "postmcp-ai",
"name": "PostMCP AI",
"profileId": "lin_7741903",
"isOrganization": true
},
{
"platform": "twitter",
"username": "@alexj_dev",
"name": "Alex Johnson",
"profileId": "tw_1293847",
"isOrganization": false
}
]