List Accounts
Retrieve all connected social media accounts for your workspace.
Retrieve all connected social media accounts for your workspace.
/api/v1/social/accountsList all active social media accounts connected to your workspace.
No query parameters required. Authentication is via the x-api-key header.
curl -H "x-api-key: <apiKey>" \
https://dopost.co/api/v1/social/accountscurl -H "x-api-key: <apiKey>" \
https://dopost.co/api/v1/social/accounts{
"accounts": [
{
"id": "cm3xyz789ghi012",
"platform": "LINKEDIN",
"platformUsername": "johndoe",
"platformUserId": "urn:li:person:a1B2c3D4e5"
},
{
"id": "cm3jkl012mno345",
"platform": "INSTAGRAM",
"platformUsername": "janedoe",
"platformUserId": "17841400123456789"
}
]
}{
"accounts": [
{
"id": "cm3xyz789ghi012",
"platform": "LINKEDIN",
"platformUsername": "johndoe",
"platformUserId": "urn:li:person:a1B2c3D4e5"
},
{
"id": "cm3jkl012mno345",
"platform": "INSTAGRAM",
"platformUsername": "janedoe",
"platformUserId": "17841400123456789"
}
]
}| Field | Type | Description |
|---|---|---|
id | string | Account ID to use in publish requests |
platform | string | Social platform name (e.g. LINKEDIN, INSTAGRAM, BLUESKY) |
platformUsername | string | Username on the platform |
platformUserId | string | Platform-specific user ID |
location | object | null | Google Business only: placeId, address, primary category, and Maps URL |
The platform field in the response uses the API enum value. Instagram and LinkedIn each have two connection types:
INSTAGRAM — connected via Meta Business (Facebook Page linked)INSTAGRAM_DIRECT — connected directly via Instagram OAuthLINKEDIN — personal profileLINKEDIN_ORGANIZATION — company pageGOOGLE_BUSINESS — one connected Google Business Profile locationUse the id from the response as the accountId when publishing.
| Status | Error | Cause |
|---|---|---|
401 | Invalid or missing API key | Bad or missing x-api-key header |
403 | API key does not have permission for this action | API key lacks the required scope for this endpoint |
429 | Rate limit exceeded | Too many requests. Check X-RateLimit-* response headers and retry after the indicated time |