Get a social account
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.
AuthorizationBearer <pp_live_…>An API key from Settings → Developers (pp_live_…), or an OAuth access token.
id*stringThe account's id, from list_social_accounts.
^([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)$uuidGet a social account
application/json- response
object*stringid*stringPass this in create_social_post's account_ids.
^([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)$uuidplatform*SocialPlatform"instagram""facebook""tiktok"connection_method*stringHow it was connected: facebook_login (a Facebook Page, or an Instagram account linked to one), instagram_login or tiktok_login.
"facebook_login""instagram_login""tiktok_login"username*string|nulldisplay_name*string|nullavatar_url*string|nullstatus*stringactive can post. needs_reconnect can't post now (a scheduled post may still queue) until the user reconnects it in the app.
"active""needs_reconnect""disconnected"status_reason*|Why the account needs reconnecting, in plain language.
connected_at*string^(?:(?:\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))$date-timelast_used_at*|nulltiktok?|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).
curl -X GET 'https://api.propertypixel.app/v1/social/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "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 }}List social accounts GET
The Instagram, Facebook and TikTok accounts connected to this workspace, which create_social_post can post to. Pass their ids as account_ids. Accounts can only be connected in the PropertyPixel app (each platform needs its own sign-in). If the account the user wants isn't listed, or its status is needs_reconnect, give the user connect_url. Before a TikTok post, call get_social_account for each TikTok account: it returns the creator's current privacy options from TikTok, which this list doesn't include. Works with view-only access.
List social posts GET
The workspace's social posts, newest first, with each account's status, permalink and any error. Filter by status (e.g. scheduled to find posts that can still be cancelled). Page with next_cursor. Works with view-only access.