Skip to Content
PropertyPixel Docs
API referenceSocial posting

Get a social account

GET
/social/accounts/{id}

One connected account. For a TikTok account it also asks TikTok, live, for the creator's current posting options (tiktok): privacy_level_options and which interactions they have turned off. Call it for each TikTok account before a TikTok post, and show the user its privacy options so they can choose; never choose for them.

tiktok is null when TikTok didn't answer within a few seconds, the account needs reconnecting, or this connection can't post; create_social_post checks the options again either way. Instagram and Facebook accounts have no tiktok field.

Works with view-only access.

Authorization

headerAuthorizationBearer <pp_live_…>

An API key from Settings → Developers (pp_live_…), or an OAuth access token.

Path Parameters

id*string

The account's id, from list_social_accounts.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

Get a social account

application/json
  1. response
object*string
id*string

Pass this in create_social_post's account_ids.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
platform*SocialPlatform
Value in"instagram""facebook""tiktok"
connection_method*string

How it was connected: facebook_login (a Facebook Page, or an Instagram account linked to one), instagram_login or tiktok_login.

Value in"facebook_login""instagram_login""tiktok_login"
username*string|null
display_name*string|null
avatar_url*string|null
status*string

active can post. needs_reconnect can't post now (a scheduled post may still queue) until the user reconnects it in the app.

Value in"active""needs_reconnect""disconnected"
status_reason*|

Why the account needs reconnecting, in plain language.

connected_at*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
last_used_at*|null
tiktok?|

TikTok accounts only: the creator's current posting options from TikTok, or null when TikTok couldn't be reached or the account needs reconnecting (create_social_post checks them again).

Example Request
curl -X GET 'https://api.propertypixel.app/v1/social/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "object": "social_account",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "platform": "instagram",  "connection_method": "facebook_login",  "username": "string",  "display_name": "string",  "avatar_url": "string",  "status": "active",  "status_reason": "string",  "connected_at": "2019-08-24T14:15:22Z",  "last_used_at": "2019-08-24T14:15:22Z",  "tiktok": {    "nickname": "string",    "privacy_level_options": [      "string"    ],    "comment_disabled": true,    "duet_disabled": true,    "stitch_disabled": true,    "max_video_post_duration_sec": 0  }}