Docs
get_calendar
See what's going out between `from` and `to` (at most 62 days), across all the workspaces you can use or only `workspaceIds`: every post that isn't skipped, at its published or scheduled time, with its content, channel and state (awaiting_confirmation, scheduled, published, failed...), plus free queue slots in that range (`includeEmptySlots`). Each workspace comes with its time zone; times are UTC ISO strings. `planned` lists unscheduled content with a planning day (`plannedFor`, and `plannedTime` for a time of day) in the range, in its workspace's zone: planning entries, never schedules. Each post carries its `version` for reschedule_post's `expectedVersion`. Use it to find gaps before add_to_queue or request_schedule.
See what's going out between from and to (at most 62 days), across all the workspaces you can use or only workspaceIds: every post that isn't skipped, at its published or scheduled time, with its content, channel and state (awaiting_confirmation, scheduled, published, failed...), plus free queue slots in that range (includeEmptySlots). Each workspace comes with its time zone; times are UTC ISO strings. planned lists unscheduled content with a planning day (plannedFor, and plannedTime for a time of day) in the range, in its workspace's zone: planning entries, never schedules. Each post carries its version for reschedule_post's expectedVersion. Use it to find gaps before add_to_queue or request_schedule.
Access and cost
- Kind: query
- Scope: account
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"from": {
"format": "date-time",
"type": "string"
},
"to": {
"format": "date-time",
"type": "string"
},
"workspaceIds": {
"items": {
"format": "uuid",
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"channelAccountIds": {
"items": {
"format": "uuid",
"type": "string"
},
"maxItems": 200,
"type": "array"
},
"includeEmptySlots": {
"default": true,
"type": "boolean"
},
"includePlanned": {
"default": true,
"type": "boolean"
}
},
"required": [
"from",
"to"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"workspaces": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"name": {
"type": "string"
},
"timeZone": {
"type": "string"
}
},
"required": [
"id",
"name",
"timeZone"
],
"type": "object"
},
"type": "array"
},
"posts": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"workspaceId": {
"format": "uuid",
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"pieceTitle": {
"type": "string"
},
"channel": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"handle": {
"type": [
"string",
"null"
]
},
"displayName": {
"type": [
"string",
"null"
]
},
"avatarUrl": {
"type": [
"string",
"null"
]
},
"status": {
"enum": [
"active",
"reconnect_required",
"disconnected"
],
"type": "string"
}
},
"required": [
"id",
"platform",
"handle",
"displayName",
"avatarUrl",
"status"
],
"type": "object"
},
"format": {
"type": "string"
},
"state": {
"enum": [
"draft",
"ready",
"awaiting_confirmation",
"scheduled",
"publishing",
"published",
"failed_retrying",
"needs_attention",
"failed",
"manual",
"removed"
],
"type": "string"
},
"version": {
"minimum": 1,
"type": "integer"
},
"at": {
"format": "date-time",
"type": "string"
},
"scheduledAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"publishedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"permalink": {
"type": [
"string",
"null"
]
},
"preview": {
"type": "string"
},
"requestedByAgent": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"workspaceId",
"pieceId",
"pieceTitle",
"channel",
"format",
"state",
"version",
"at",
"scheduledAt",
"publishedAt",
"permalink",
"preview",
"requestedByAgent"
],
"type": "object"
},
"type": "array"
},
"emptySlots": {
"items": {
"additionalProperties": false,
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"channelAccountId": {
"format": "uuid",
"type": "string"
},
"at": {
"format": "date-time",
"type": "string"
}
},
"required": [
"workspaceId",
"channelAccountId",
"at"
],
"type": "object"
},
"type": "array"
},
"planned": {
"items": {
"additionalProperties": false,
"properties": {
"pieceId": {
"format": "uuid",
"type": "string"
},
"workspaceId": {
"format": "uuid",
"type": "string"
},
"title": {
"type": "string"
},
"plannedFor": {
"type": "string"
},
"plannedTime": {
"type": [
"string",
"null"
]
},
"status": {
"enum": [
"idea",
"drafting",
"in_review",
"scheduled",
"published"
],
"type": "string"
},
"platforms": {
"items": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"type": "array"
},
"channels": {
"items": {
"additionalProperties": false,
"properties": {
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"emulates": {
"anyOf": [
{
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube"
],
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"platform",
"emulates"
],
"type": "object"
},
"type": "array"
},
"hasUnscheduledWork": {
"type": "boolean"
},
"preview": {
"type": "string"
}
},
"required": [
"pieceId",
"workspaceId",
"title",
"plannedFor",
"plannedTime",
"status",
"platforms",
"channels",
"hasUnscheduledWork",
"preview"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"workspaces",
"posts",
"emptySlots",
"planned"
],
"type": "object"
}Errors
[]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true,
"title": "Get the calendar"
}