Skip to main content
GET
Get an account
Needs accounts:read. See Permissions.
Returns one account, with the same fields as List accounts and two more:
  • scheduled_posts: the scheduled posts still to go out to it. only_this_account is the ones that would move to drafts if you deleted it. Tell the user before you delete.
  • posts_to_put_back: set after the same profile was disconnected and connected again, when posts it was on can get it back. Show the user what it says, and put it back only if they agree.
A Pinterest account has its boards: pass a board’s id as accounts[].settings.board_id when you create a post. A YouTube channel has its playlists, read from YouTube (on this route only, not on List accounts): pass a playlist’s id as accounts[].settings.playlist_id when you create a post, and the video is added to it once it is up. When playlists_reconnect is true, the channel was connected before PostSyncer asked YouTube to manage playlists, or its sign-in no longer works: playlists is [] and a playlist_id isn’t used until you reconnect it. When YouTube doesn’t answer, playlists is null: the channel may still have playlists, so try again later. It lists up to 500.

Errors

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

The account's id.

Response

The account.

A connected social account.

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.