Skip to main content
GET
List accounts
Needs accounts:read. See Permissions.
Returns connected accounts in the workspaces the key can reach, as a list (not wrapped in data). Optionally filter with workspace_id and provider (alias platform). Posts take an account’s id in accounts[].id. Before posting, check four fields. needs_reconnect means the sign-in no longer works: the account can’t post until someone reconnects it in PostSyncer, and a new post leaves it out. platform_hold means the network holds the account until its owner acts there; the sign-in still works. renewal_failing means it still posts, but only until works_until. plan_allows_posting: false means the owner’s plan doesn’t let new posts go to it (on Free, new posts go to 2 accounts, outside a first week): a post that names it is refused with 403 and "limit": "free_accounts", so leave it out or save a draft. A post with no accounts leaves it out of the default accounts and lists it in skipped_accounts. Pinterest accounts come with their boards (cached for 15 minutes). On the Free plan an owner can connect 2 accounts in all. When PostSyncer offers a first week, owners who sign up then get 10 accounts, unlimited posts and Analytics for their first 7 days. See Plan limits.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspace_id
integer

Filter accounts to one workspace.

provider
string

Filter by platform, one or more comma-separated: tiktok, twitter, youtube, facebook, instagram, threads, linkedin, telegram, pinterest, bluesky, mastodon, google_business. Alias: platform. An unknown value is refused with 422 naming the valid ones.

Response

The accounts.

id
integer
required

The account's id. Posts take it in accounts[].id.

workspace_id
integer
required
platform
enum<string>
required

The network. twitter is X; google_business is Google Business Profile.

Available options:
twitter,
linkedin,
instagram,
facebook,
tiktok,
youtube,
threads,
pinterest,
bluesky,
telegram,
mastodon,
google_business
username
string | null
required

The handle on the network, without @ (a Mastodon handle includes its server).

name
string | null
required

The display name on the network.

avatar
string
required

The profile picture, or an avatar made from the name when there is none.

has_expired
boolean
required

The same as needs_reconnect, kept for older integrations.

needs_reconnect
boolean
required

True when the sign-in no longer works, so the account can't post until someone reconnects it in PostSyncer. A new post leaves it out and lists it in skipped_accounts.

reconnect_reason
string | null
required

The network's reason the account needs reconnecting, when it gave one. Null when needs_reconnect is false.

platform_hold
object | null
required

Set when the network holds the account until its owner acts there (an identity check, a lock, a suspension, a restriction, the bot removed from a channel). The sign-in still works, so no reconnect is needed: posts to it fail with the network's reason until the hold is resolved there, and trying a failed post again asks the network again. Null when not held.

renewal_failing
object | null
required

Set when the network refused to renew a sign-in that still works. The account keeps posting until works_until; if the renewal is still refused then, it needs a reconnect. Null when renewals are fine.

sign_in_ends_at
string<date-time> | null
required

When the network ends this sign-in whatever PostSyncer does (LinkedIn: a year after it was connected). Reconnect the account before then. Null when the network doesn't say.

profile_url
string | null
required

The account's own page on its network. Null when PostSyncer can't make one, for example a Mastodon account without its server, or a Telegram channel with no public name.

is_default
boolean
required

Whether the account is picked by default for new posts.

support_threads
boolean | null
required

Whether a post can be a thread of several parts on this network (X, Threads, Bluesky and Mastodon).

is_verified
boolean | null
required

Whether the network marks the account verified (X only; false elsewhere).

plan_allows_posting
boolean
required

False when the owner's plan doesn't let new posts go to this account (Free outside a first week: 2 picked accounts). Drafts, replies and analytics still work.

analytics_unavailable
object | null
required

Why this account's post numbers can't be read, or null when they can. Its posts' numbers are not read meanwhile.

can_publish_articles
boolean

X accounts only: true when X lets the account publish Articles (X Premium or Premium+). Absent for other networks.

is_page
boolean

LinkedIn accounts only: true for a Company Page, false for a person. Absent for other networks.

location
object

Google Business Profile accounts only: the location this account is. Absent for other networks.

boards
object[]

List accounts and Get account only. A Pinterest account's boards, read from Pinterest; [] for other networks, and when Pinterest can't be read. Pass a board's id as accounts[].settings.board_id on a post.

playlists
object[] | null

Get account only. A YouTube channel's own playlists, read from YouTube, up to 500. [] for other networks and when playlists_reconnect is true. null when YouTube didn't answer: the channel may still have playlists, so try again later. Pass a playlist's id as accounts[].settings.playlist_id on a post to add the video to it.

playlists_reconnect
boolean

Get account only. true for a YouTube channel that must be reconnected to list its playlists and add videos to them: it was connected before PostSyncer asked YouTube for that permission, or its sign-in no longer works. false for every other account.

scheduled_posts
object

Get account only. Scheduled posts still to go out to this account. Deleting the account moves the ones that go only to it to drafts (they keep their time); the others still go to their other accounts.

posts_to_put_back
object | null

Get account only. Set when this profile was disconnected and connected again to the same workspace, and posts it was on can get it back with Put back account posts. Null otherwise.