External Accounts

List External Account Posts

Changed on

Lists the existing posts of a connected Facebook page, Instagram account, or TikTok account.

get/external_accounts/{id}/posts

Request

  • Base URL: https://api.whop.com/api/v1
  • URL: https://api.whop.com/api/v1/external_accounts/{id}/posts
  • Auth: HTTP bearer

Query parameters

account_idstring required

The Account (a biz_ identifier) the external account is connected to.

post_idstring

Return only the single post with this platform id, instead of the full list.

firstinteger

Number of results to return from the start of the range.

afterstring

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

Response

single post returned when post_id is given

Example response

{
  "data": [
    {
      "call_to_action": "shop_now",
      "caption": "Ceramic coating in action",
      "destination_url": "https://shinetime.example/book",
      "embed_url": "https://www.facebook.com/plugins/post.php",
      "id": "media_1",
      "media_url": "https://shinetime.example/ceramic-coating-reel.mp4",
      "restrictions": [
        "lead_form_ineligible"
      ],
      "thumbnail_url": "https://shinetime.example/ceramic-coating-poster.jpg",
      "video_id": "18000000000000000"
    }
  ],
  "page_info": {
    "end_cursor": "MTI=",
    "has_next_page": true
  }
}

Changes