Skip to content

HighLevel: Get post

HighLevel socialPlanner.getPost: arguments, response, policy and SDK examples.

← Social planner operations · Get started

Operation gohighlevel.get_post

Provider route: GET /social-media-posting/{locationId}/posts/{id}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["socialPlanner"]["getPost"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.socialPlanner.getPost(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.social_planner.get_post(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.locationIdstringRequired within parent
path.idstringRequired within parent

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get post — response body

Referenced models: Get post — response body

20 more schemas are linked from the tables above, on the schema pages.

Get post — response body
FieldTypePresenceDescription and constraints
$objectRoot
messagestringRequired within parentMessage
resultsJSONOptionalRequested Results
results (allOf 1)ModelAll variants applyExpand Get post — response body — results post
statusCodeJSONRequired within parent
statusCode (anyOf 1)numberAlternativeStatus Code
statusCode (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
successbooleanRequired within parentSuccess or Failure

Referenced models: Get post — response body — results post

Get post — response body — results post
FieldTypePresenceDescription and constraints
$objectRoot
postJSONOptionalPost Data
post (allOf 1)ModelAll variants applyExpand Get posts — response body — results count, posts posts item

Referenced models: Get posts — response body — results count, posts posts item

Get posts — response body — results count, posts posts item
FieldTypePresenceDescription and constraints
$objectRoot
_idstringOptionalMongoDB document ID of the post
accountIdstringOptionalAccount Id
accountIdsarrayOptionalAccount Ids
accountIds[]stringEach item
blueskyPostDetailsJSONOptionalBluesky Post Details
blueskyPostDetails (allOf 1)ModelAll variants applyExpand Get posts — response body — results count, posts posts item bluesky Post Details external Link, external Link Description, external Link Title, language, quote Post, reply To, shortened Links
createdAtstringOptionalDate when the post was created
Format: date-time
createdBystringOptionalUser ID who created the post
displayDatestringOptionalDisplay date for the post
Format: date-time
errorstringRequired within parentError
facebookPostDetailsJSONOptionalFacebook Post Details
facebookPostDetails (allOf 1)ModelAll variants applyExpand Get posts — response body — results / count, posts / posts / item / facebookPostDetails / type: post, story, reel
gmbPostDetailsJSONOptionalGMB Post Details
gmbPostDetails (allOf 1)ModelAll variants applyExpand Get posts — response body — results / count, posts / posts / item / gmbPostDetails / actionType: none, order, book, shop, learn more, call, sign up, gmb Event Type: STANDARD, EVENT, OFFER
insightsJSONOptionalAggregated engagement metrics for the published post. Populated asynchronously by the insights sync workers for supported platforms (Facebook, Instagram, LinkedIn, YouTube). Absent on posts that have not been synced yet or on platforms where insights are not supported.
insights (allOf 1)ModelAll variants applyExpand Get posts — response body — results count, posts posts item insights Aggregated engagement metrics for a published post
instagramPostDetailsJSONOptionalInstagram Post Details
instagramPostDetails (allOf 1)ModelAll variants applyExpand Get posts — response body — results / count, posts / posts / item / instagramPostDetails / type: post, story, reel
linkedinPostDetailsJSONOptionalLinkedin Post Details
linkedinPostDetails (allOf 1)ModelAll variants applyExpand Get posts — response body — results count, posts posts item linkedin Post Details pdf Title, poll, post As Pdf
locationIdstringRequired within parentLocation Id
mediaarrayOptionalPost Media Data
The limitations of media as per the platforms is provided through the reference link in API description
media[]ModelEach itemExpand Get posts — response body — results count, posts posts item media item
mediaOptimizationbooleanOptionalPass this parameter to optimize the image media
ogTagsDetailsJSONOptionalOg Tags Meta Data
ogTagsDetails (allOf 1)ModelAll variants applyExpand Edit post — request body — body og Tags Details meta Image, meta Link, og Description, og Title
pinterestPostDetailsJSONOptionalPinterest Post Details
pinterestPostDetails (allOf 1)ModelAll variants applyExpand Edit post — request body — body pinterest Post Details board Ids, link, pinterest Boards, shortened Links, title
platformstringOptionalplatform must be one of the following values: google, facebook, instagram, linkedin, twitter, tiktok
postApprovalDetailsJSONOptionalPost Approval Details
postApprovalDetails (allOf 1)ModelAll variants applyExpand Get posts — response body — results / count, posts / posts / item / postApprovalDetails / approvalStatus: pending, approved, rejected, not required
postIdstringOptionalPlatform-specific post identifier
publishedAtstringOptionalDate when the post was published
sourcestringOptionalsource must be one of the following values: composer, recurring, csv
Known values: composer, csv, recurring, review, rss
statusobjectOptionalStatus must be one of the following values: in_progress, draft, failed, published, scheduled, in_review, notification_sent, deleted
summarystringOptionalContent text of the post
tagsarrayOptionalTag Ids
tags[]stringEach item
thumbnailstringOptionalPost-level cover image (thumbnail) URL.

For posts that contain a video, this is the resolved cover image used for the first video in `media[]`. It is set automatically from the `thumbnail` provided on the first video media item at create/edit time, or auto-generated from the video when one is not supplied. Per-item thumbnails inside `media[]` are not retained on the response — the primary cover image lives on this field.
tiktokPostDetailsJSONOptionalTiktok Post Details
tiktokPostDetails (allOf 1)ModelAll variants applyExpand Get posts — response body — results / count, posts / posts / item / tiktokPostDetails / privacyLevel: PUBLIC TO EVERYONE, MUTUAL FOLLOW FRIENDS, SELF ONLY
typeobjectRequired within parentPost Type must be one of the following values: - post, story, reel
updatedAtstringOptionalDate when the post was last updated
Format: date-time
userJSONOptionalUser
user (allOf 1)ModelAll variants applyExpand Get posts — response body — results count, posts posts item user email, first Name, id, last Name, phone, profile Photo, title
youtubePostDetailsJSONOptionalYoutube Post Details
youtubePostDetails (allOf 1)ModelAll variants applyExpand Get posts — response body — results / count, posts / posts / item / youtubePostDetails / privacyLevel: private, public, unlisted, type: video, short

Referenced models: Get posts — response body — results count, posts posts item bluesky Post Details external Link, external Link Description, external Link Title, language, quote Post, reply To, shortened Links, Edit post — request body — body og Tags Details meta Image, meta Link, og Description, og Title, Get posts — response body — results / count, posts / posts / item / facebookPostDetails / type: post, story, reel, Get posts — response body — results / count, posts / posts / item / postApprovalDetails / approvalStatus: pending, approved, rejected, not required, Get posts — response body — results / count, posts / posts / item / gmbPostDetails / actionType: none, order, book, shop, learn more, call, sign up, gmb Event Type: STANDARD, EVENT, OFFER, Get posts — response body — results / count, posts / posts / item / instagramPostDetails / type: post, story, reel, Get posts — response body — results count, posts posts item linkedin Post Details pdf Title, poll, post As Pdf, Edit post — request body — body pinterest Post Details board Ids, link, pinterest Boards, shortened Links, title, Get posts — response body — results count, posts posts item insights Aggregated engagement metrics for a published post, Get posts — response body — results count, posts posts item media item, Get posts — response body — results count, posts posts item user email, first Name, id, last Name, phone, profile Photo, title, Get posts — response body — results / count, posts / posts / item / tiktokPostDetails / privacyLevel: PUBLIC TO EVERYONE, MUTUAL FOLLOW FRIENDS, SELF ONLY, Get posts — response body — results / count, posts / posts / item / youtubePostDetails / privacyLevel: private, public, unlisted, type: video, short

Edit post — request body — body linkedin Post Details pdf Title, poll, post As Pdf poll options, question, settings options item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
textstringRequired within parentText describing the option. Max length: 30 characters.
Maximum length: 30

SDK function policy ID: gohighlevel.get_post. Catalog operation: get-post. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["socialplanner/post.readonly"]

Pinned headers: {"Version": "v3"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.