Setup and targeting
LinkedIn Posting API for Agencies and Multiple Workspaces
Create separate LinkedIn publishing requests for multiple brands or clients with Postly workspaces and connected account targeting.
Multi-workspaceAgenciesLinkedIn
How this API workflow works
Fetch each workspace, fetch socials for each one, then create one separate post request for workspace A, one for workspace B, and one for workspace C.
- Create or copy a Postly API key.
- Resolve the organization, workspace, and connected target accounts.
- Build the request using the pattern below and destination-specific values.
- Create the post, then inspect its scheduled or publishing status.
Example request
// Workspace A
{
"text": "Post for workspace A",
"workspace": "WORKSPACE_A_ID",
"target_platforms": [
{
"identifier": "linkedin",
"id": "LINKEDIN_SOCIAL_ID_A"
}
]
}
// Workspace B
{
"text": "Post for workspace B",
"workspace": "WORKSPACE_B_ID",
"target_platforms": [
{
"identifier": "linkedin",
"id": "LINKEDIN_SOCIAL_ID_B"
}
]
}
// Workspace C
{
"text": "Post for workspace C",
"workspace": "WORKSPACE_C_ID",
"target_platforms": [
{
"identifier": "linkedin",
"id": "LINKEDIN_SOCIAL_ID_C"
}
]
}Build the complete workflow
Pair the REST API with Postly MCP agents, AI-assisted content creation, approvals, and the canonical social media scheduler.