Skip to content

HighLevel: Fetch calendar view for an edit session

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

← Social planner operations · Get started

Operation gohighlevel.fetcheditsessioncalendar

Provider route: POST /social-media-posting/category/queues/{queueId}/edit/calendar. 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"]["fetchEditSessionCalendar"]>[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.fetchEditSessionCalendar(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.fetch_edit_session_calendar(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.queueIdstringRequired within parent
bodyModelRequired within parentExpand Fetch calendar view for an edit session — request body — body

Referenced models: Fetch calendar view for an edit session — request body — body

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Fetch calendar view for an edit session — response body

Referenced models: Fetch calendar view for an edit session — response body

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

Fetch calendar view for an edit session — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
accountIdsarrayOptionalFilter by Account IDs. If not provided or empty, returns all posts.
accountIds[]stringEach item
endDatestringRequired within parentEnd Date in ISO format
locationIdstringRequired within parentLocation ID
sessionIdstringRequired within parentEdit session ID
startDatestringRequired within parentStart Date in ISO format
Fetch calendar view for an edit session — response body
FieldTypePresenceDescription and constraints
$objectRoot
resultsModelRequired within parentExpand Fetch calendar view for an edit session — response body — results
statusCodeJSONRequired within parent
statusCode (anyOf 1)numberAlternative
statusCode (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
successbooleanRequired within parent
traceIdstringOptional

Referenced models: Fetch calendar view for an edit session — response body — results

Fetch calendar view for an edit session — response body — results
FieldTypePresenceDescription and constraints
$objectRoot
messagestringOptional
scheduledPostsarrayOptional
scheduledPosts[]ModelEach itemExpand Fetch calendar view for an edit session — response body — results scheduled Posts item
timezonestringOptionalThe timezone used for scheduling, e.g., "Asia/Calcutta"
totalJSONOptional
total (anyOf 1)numberAlternativeTotal number of scheduled posts returned
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Fetch calendar view for an edit session — response body — results scheduled Posts item

Fetch calendar view for an edit session — response body — results scheduled Posts item
FieldTypePresenceDescription and constraints
$objectRoot
categoryJSONOptional
category (anyOf 1)JSONAlternativeThe category associated with this post
category (anyOf 1) (allOf 1)ModelAll variants applyExpand Fetch category queues for a location — response body — results queues item category id, created At, created By, deleted, location Id, name, primary Color, secondary Color, updated At
category (anyOf 2)nullAlternative
currentVariationJSONOptional
currentVariation (anyOf 1)numberAlternativeThe index of the current variation being used for this post
currentVariation (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
errorsarrayOptionalList of errors associated with the queue item. Possible values: INVALID_USER_ID, PIXABAY_MEDIA.
errors[]stringEach item
isDraftbooleanOptionalIndicates this is a draft item from an edit session
orderJSONOptional
order (anyOf 1)numberAlternativeThe order of the item in the queue.
order (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
originalItemIdJSONOptional
originalItemId (anyOf 1)stringAlternativeOriginal queue item ID if this draft was created from an existing item
originalItemId (anyOf 2)nullAlternative
postJSONOptionalThe formatted post data.
post (allOf 1)ModelAll variants applyExpand Get posts — response body — results count, posts posts item
primaryImagestringOptionalThe primary image URL for the post.
queueIdstringOptionalThe ID of the queue this post belongs to
queueItemIdstringOptionalThe unique identifier of the queue item.
scheduledDateTimestringOptionalThe date and time the post is scheduled to be published
Format: date-time
timezonestringOptionalThe timezone in which the post is scheduled
variationsarrayOptionalA list of content variations for the post.
variations[]ModelEach itemExpand Fetch items from a queue — response body — results items item variations item

Referenced models: Fetch category queues for a location — response body — results queues item category id, created At, created By, deleted, location Id, name, primary Color, secondary Color, updated At, Get posts — response body — results count, posts posts item, Fetch items from a queue — response body — results items item variations item

Fetch category queues for a location — response body — results queues item category id, created At, created By, deleted, location Id, name, primary Color, secondary Color, updated At
FieldTypePresenceDescription and constraints
$objectRoot
_idstringOptionalCategory ID
createdAtstringOptionalCreation timestamp
createdBystringOptionalID of the user who created the category
deletedbooleanOptionalIndicates if the category is deleted
locationIdstringOptionalLocation ID
namestringOptionalName of the category
primaryColorstringOptionalPrimary color of the category
secondaryColorstringOptionalSecondary color of the category
updatedAtstringOptionalLast update timestamp
Fetch items from a queue — response body — results items item variations item
FieldTypePresenceDescription and constraints
$objectRoot
_idstringOptionalThe ID of the variation.
contentstringOptionalThe text content of the variation.
mentionsarrayOptionalPlatform-specific mentions within the content (e.g., @username references).
mentions[]objectEach item
ogTagsJSONOptionalOpen Graph tags for link previews.
ogTags (allOf 1)ModelAll variants applyExpand Fetch items from a queue — response body — results items item variations item og Tags meta Image, meta Link, og Title

Referenced models: Fetch items from a queue — response body — results items item variations item og Tags meta Image, meta Link, og Title

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
FieldTypePresenceDescription and constraints
$objectRoot
externalLinkstringOptionalExternal URL to embed as a link card in the post.
externalLinkDescriptionstringOptionalDescription for the external link card. Brief summary displayed below the title.
externalLinkTitlestringOptionalTitle for the external link card. Displayed prominently in the embed.
languagestringOptionalISO 639-1 language code for the post content.

**Examples:** `en` (English), `es` (Spanish), `fr` (French), `de` (German)
quotePoststringOptionalBluesky AT Protocol URI of a post to quote.

**Format:** `at://did:plc:{user-id}/app.bsky.feed.post/{post-id}`

**Use Case:** Quote-post another user's post with your commentary.
replyTostringOptionalBluesky AT Protocol URI of a post to reply to.

**Format:** `at://did:plc:{user-id}/app.bsky.feed.post/{post-id}`

**Use Case:** Create a reply thread to an existing Bluesky post.
shortenedLinksarrayOptionalShortened links for the post (auto-generated).
shortenedLinks[]stringEach item
Edit post — request body — body og Tags Details meta Image, meta Link, og Description, og Title
FieldTypePresenceDescription and constraints
$objectRoot
metaImagestringOptionalPreview image URL for the shared link.

**Best Practices:**
- Use high-quality images (1200x630px recommended)
- Ensure the image is publicly accessible

**Auto-fetch:** Use the Get Metatags API to fetch OG data from a URL.
metaLinkstringOptionalURL of the webpage being shared. This is the destination when users click the link preview.
ogDescriptionstringOptionalCustom description for the link preview. Overrides the page's og:description meta tag.

**Tip:** Keep descriptions under 155 characters for optimal display.
ogTitlestringOptionalCustom title for the link preview. Overrides the page's og:title meta tag.

**Tip:** Keep titles concise (50-60 characters) for best display across platforms.
Fetch items from a queue — response body — results items item variations item og Tags meta Image, meta Link, og Title
FieldTypePresenceDescription and constraints
$objectRoot
metaImageobjectOptionalURL of the content's primary image.
metaLinkobjectOptionalThe canonical URL of the content.
ogTitleobjectOptionalThe title of the content.

SDK function policy ID: gohighlevel.fetcheditsessioncalendar. Catalog operation: fetchEditSessionCalendar. 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/category.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.