Skip to content

Docs

get_content

Read one content item with everything on it: the original draft, sources (with fetched text for URLs), every post (channel, format, segments, settings, state, schedule, version, open comments, approval), comment counts, review state (share links, verdicts, whether approval is required), the next scheduled time, whether a post failed, and `repeat` (set_recurrence series, the series it is an occurrence of, evergreen state). `media` lists every library file the draft and posts reference, with status, dimensions, duration, alt text, publicUrl, previewUrl (the image, or a video's cover), posterUrl (a video's cover frame), coverFrames and fitsPlatforms, so you don't need list_media. Before editing, pass a post's `version` as `expectedVersion` to update_post so you never overwrite a newer edit. Archived content can be read too. `url` (and each post's `url`) is the content page to give the person.

Read one content item with everything on it: the original draft, sources (with fetched text for URLs), every post (channel, format, segments, settings, state, schedule, version, open comments, approval), comment counts, review state (share links, verdicts, whether approval is required), the next scheduled time, whether a post failed, and repeat (set_recurrence series, the series it is an occurrence of, evergreen state). media lists every library file the draft and posts reference, with status, dimensions, duration, alt text, publicUrl, previewUrl (the image, or a video's cover), posterUrl (a video's cover frame), coverFrames and fitsPlatforms, so you don't need list_media. Before editing, pass a post's version as expectedVersion to update_post so you never overwrite a newer edit. Archived content can be read too. url (and each post's url) is the content page to give the person.

Access and cost

  • Kind: query
  • Scope: workspace
  • Actors: member, agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "pieceId": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "pieceId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "piece": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "workspaceId": {
          "format": "uuid",
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "status": {
          "enum": [
            "idea",
            "drafting",
            "in_review",
            "scheduled",
            "published"
          ],
          "type": "string"
        },
        "campaignLabels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "ownerAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "boardPosition": {
          "type": "string"
        },
        "archivedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdByAgentClientId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "updatedAt": {
          "format": "date-time",
          "type": "string"
        },
        "signoffRequired": {
          "type": "boolean"
        },
        "plannedFor": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "plannedTime": {
          "anyOf": [
            {
              "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "workspaceId",
        "title",
        "status",
        "campaignLabels",
        "ownerAccountId",
        "boardPosition",
        "archivedAt",
        "createdByAccountId",
        "createdByAgentClientId",
        "createdAt",
        "updatedAt",
        "signoffRequired"
      ],
      "type": "object"
    },
    "url": {
      "description": "The content page in heyeveryone. Give it to the person so they can open the draft.",
      "type": "string"
    },
    "owner": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "member",
                "guest",
                "agent",
                "system"
              ],
              "type": "string"
            },
            "accountId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "agentClientId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "guestId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "accountId",
            "agentClientId",
            "guestId",
            "name"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "createdBy": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "enum": [
                "member",
                "guest",
                "agent",
                "system"
              ],
              "type": "string"
            },
            "accountId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "agentClientId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "guestId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "accountId",
            "agentClientId",
            "guestId",
            "name"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "master": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "pieceId": {
              "format": "uuid",
              "type": "string"
            },
            "workspaceId": {
              "format": "uuid",
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "media": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "mediaAssetId": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "altText": {
                    "maxLength": 2000,
                    "type": "string"
                  }
                },
                "required": [
                  "mediaAssetId"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "version": {
              "minimum": 1,
              "type": "integer"
            },
            "updatedByAccountId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updatedByAgentClientId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "createdAt": {
              "format": "date-time",
              "type": "string"
            },
            "updatedAt": {
              "format": "date-time",
              "type": "string"
            }
          },
          "required": [
            "pieceId",
            "workspaceId",
            "text",
            "media",
            "version",
            "updatedByAccountId",
            "updatedByAgentClientId",
            "createdAt",
            "updatedAt"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "sources": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "workspaceId": {
            "format": "uuid",
            "type": "string"
          },
          "pieceId": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "enum": [
              "url",
              "media",
              "note",
              "transcript"
            ],
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "mediaAssetId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "fetchedText": {
            "type": [
              "string",
              "null"
            ]
          },
          "fetchStatus": {
            "enum": [
              "not_applicable",
              "pending",
              "fetching",
              "fetched",
              "failed"
            ],
            "type": "string"
          },
          "fetchError": {
            "type": [
              "string",
              "null"
            ]
          },
          "fetchedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdByAccountId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdByAgentClientId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "workspaceId",
          "pieceId",
          "kind",
          "title",
          "url",
          "mediaAssetId",
          "note",
          "fetchedText",
          "fetchStatus",
          "fetchError",
          "fetchedAt",
          "createdByAccountId",
          "createdByAgentClientId",
          "createdAt",
          "updatedAt",
          "description"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "posts": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "workspaceId": {
            "format": "uuid",
            "type": "string"
          },
          "pieceId": {
            "format": "uuid",
            "type": "string"
          },
          "channelAccountId": {
            "format": "uuid",
            "type": "string"
          },
          "format": {
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          },
          "segments": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "text": {
                  "type": "string"
                },
                "media": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "mediaAssetId": {
                        "format": "uuid",
                        "type": "string"
                      },
                      "altText": {
                        "maxLength": 2000,
                        "type": "string"
                      }
                    },
                    "required": [
                      "mediaAssetId"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "text",
                "media"
              ],
              "type": "object"
            },
            "minItems": 1,
            "type": "array"
          },
          "settings": {
            "type": "object"
          },
          "state": {
            "enum": [
              "draft",
              "ready",
              "awaiting_confirmation",
              "scheduled",
              "publishing",
              "published",
              "failed_retrying",
              "needs_attention",
              "failed",
              "manual",
              "removed"
            ],
            "type": "string"
          },
          "scheduledAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "scheduleSource": {
            "anyOf": [
              {
                "enum": [
                  "manual",
                  "queue",
                  "recurrence",
                  "evergreen"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "isSkipped": {
            "type": "boolean"
          },
          "version": {
            "minimum": 1,
            "type": "integer"
          },
          "followsOriginal": {
            "type": "boolean"
          },
          "followIssue": {
            "type": [
              "string",
              "null"
            ]
          },
          "requestedByAgentClientId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmedByAccountId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastError": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "fix": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "message"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "publishedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "permalink": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdByAccountId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdByAgentClientId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "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"
          },
          "openCommentCount": {
            "minimum": 0,
            "type": "integer"
          },
          "signoff": {
            "additionalProperties": false,
            "properties": {
              "approved": {
                "type": "boolean"
              },
              "changesRequested": {
                "type": "boolean"
              }
            },
            "required": [
              "approved",
              "changesRequested"
            ],
            "type": "object"
          },
          "url": {
            "description": "The content page in heyeveryone. Give it to the person so they can open the draft.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "pieceId",
          "channelAccountId",
          "format",
          "segments",
          "settings",
          "state",
          "scheduledAt",
          "scheduleSource",
          "isSkipped",
          "version",
          "followsOriginal",
          "followIssue",
          "requestedByAgentClientId",
          "confirmedByAccountId",
          "confirmedAt",
          "lastError",
          "publishedAt",
          "permalink",
          "createdByAccountId",
          "createdByAgentClientId",
          "createdAt",
          "updatedAt",
          "channel",
          "openCommentCount",
          "signoff"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "media": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "workspaceId": {
            "format": "uuid",
            "type": "string"
          },
          "kind": {
            "enum": [
              "image",
              "video"
            ],
            "type": "string"
          },
          "status": {
            "enum": [
              "uploading",
              "processing",
              "ready",
              "failed"
            ],
            "type": "string"
          },
          "storageProvider": {
            "enum": [
              "supabase",
              "r2"
            ],
            "type": "string"
          },
          "storageBucket": {
            "type": "string"
          },
          "storageKey": {
            "type": "string"
          },
          "publicUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "filename": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "sizeBytes": {
            "type": [
              "string",
              "null"
            ]
          },
          "width": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "durationMs": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "probe": {
            "type": "object"
          },
          "probeError": {
            "type": [
              "string",
              "null"
            ]
          },
          "covers": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "storageKey": {
                  "type": "string"
                },
                "width": {
                  "type": "integer"
                },
                "height": {
                  "type": "integer"
                },
                "atMs": {
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "storageKey",
                "width",
                "height",
                "atMs"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "altText": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdByAccountId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdByAgentClientId": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "previewUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "coverFrames": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "atMs": {
                  "minimum": 0,
                  "type": "integer"
                },
                "width": {
                  "type": "integer"
                },
                "height": {
                  "type": "integer"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "atMs",
                "width",
                "height",
                "url"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "fitsPlatforms": {
            "items": {
              "enum": [
                "x",
                "linkedin",
                "threads",
                "bluesky",
                "instagram",
                "facebook",
                "tiktok",
                "youtube",
                "sandbox"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "posterUrl": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "workspaceId",
          "kind",
          "status",
          "storageProvider",
          "storageBucket",
          "storageKey",
          "publicUrl",
          "filename",
          "mimeType",
          "sizeBytes",
          "width",
          "height",
          "durationMs",
          "probe",
          "probeError",
          "covers",
          "altText",
          "createdByAccountId",
          "createdByAgentClientId",
          "createdAt",
          "updatedAt",
          "previewUrl",
          "coverFrames",
          "fitsPlatforms",
          "posterUrl"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "comments": {
      "additionalProperties": false,
      "properties": {
        "open": {
          "minimum": 0,
          "type": "integer"
        },
        "resolved": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "open",
        "resolved"
      ],
      "type": "object"
    },
    "review": {
      "additionalProperties": false,
      "properties": {
        "state": {
          "enum": [
            "none",
            "in_review",
            "changes_requested",
            "approved"
          ],
          "type": "string"
        },
        "signoffRequired": {
          "type": "boolean"
        },
        "shareLinks": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "format": "uuid",
                "type": "string"
              },
              "workspaceId": {
                "format": "uuid",
                "type": "string"
              },
              "pieceId": {
                "format": "uuid",
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "revokedAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "allowSignoff": {
                "type": "boolean"
              },
              "lastUsedAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdByAccountId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdByAgentClientId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "id",
              "workspaceId",
              "pieceId",
              "expiresAt",
              "revokedAt",
              "allowSignoff",
              "lastUsedAt",
              "createdByAccountId",
              "createdByAgentClientId",
              "createdAt"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "verdicts": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "id": {
                "format": "uuid",
                "type": "string"
              },
              "postId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewer": {
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "enum": [
                      "member",
                      "guest",
                      "agent",
                      "system"
                    ],
                    "type": "string"
                  },
                  "accountId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agentClientId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "guestId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "accountId",
                  "agentClientId",
                  "guestId",
                  "name"
                ],
                "type": "object"
              },
              "decision": {
                "enum": [
                  "approved",
                  "changes_requested"
                ],
                "type": "string"
              },
              "note": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "contentVersion": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countsAsSignoff": {
                "type": "boolean"
              },
              "createdAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "postId",
              "reviewer",
              "decision",
              "note",
              "contentVersion",
              "countsAsSignoff",
              "createdAt"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "askedOfYou": {
          "type": "boolean"
        }
      },
      "required": [
        "state",
        "signoffRequired",
        "shareLinks",
        "verdicts",
        "askedOfYou"
      ],
      "type": "object"
    },
    "nextScheduledAt": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "hasFailure": {
      "type": "boolean"
    },
    "repeat": {
      "additionalProperties": false,
      "properties": {
        "recurrence": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "format": "uuid",
                  "type": "string"
                },
                "pieceId": {
                  "format": "uuid",
                  "type": "string"
                },
                "rule": {
                  "additionalProperties": false,
                  "properties": {
                    "frequency": {
                      "enum": [
                        "daily",
                        "weekly",
                        "monthly"
                      ],
                      "type": "string"
                    },
                    "every": {
                      "maximum": 12,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "weekdays": {
                      "items": {
                        "maximum": 6,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "type": "array"
                    },
                    "time": {
                      "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
                      "type": "string"
                    },
                    "startsOn": {
                      "format": "date",
                      "type": "string"
                    },
                    "endsOn": {
                      "anyOf": [
                        {
                          "format": "date",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "count": {
                      "anyOf": [
                        {
                          "maximum": 1000,
                          "minimum": 1,
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "frequency",
                    "every",
                    "weekdays",
                    "time",
                    "startsOn",
                    "endsOn",
                    "count"
                  ],
                  "type": "object"
                },
                "summary": {
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "active",
                    "stopped",
                    "ended"
                  ],
                  "type": "string"
                },
                "timeZone": {
                  "type": "string"
                },
                "upcoming": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "pieceId": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "occursAt": {
                          "format": "date-time",
                          "type": "string"
                        }
                      },
                      "required": [
                        "pieceId",
                        "occursAt"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "next": {
                  "items": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "type": "array"
                },
                "occurrenceCount": {
                  "minimum": 0,
                  "type": "integer"
                },
                "lastOccurrenceAt": {
                  "anyOf": [
                    {
                      "format": "date-time",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastError": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "at": {
                          "format": "date-time",
                          "type": "string"
                        },
                        "occurrencePieceId": {
                          "anyOf": [
                            {
                              "format": "uuid",
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "message",
                        "at",
                        "occurrencePieceId"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "notes": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "required": [
                "id",
                "pieceId",
                "rule",
                "summary",
                "status",
                "timeZone",
                "upcoming",
                "next",
                "occurrenceCount",
                "lastOccurrenceAt",
                "lastError",
                "notes"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "occurrenceOf": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "recurrenceId": {
                  "format": "uuid",
                  "type": "string"
                },
                "templatePieceId": {
                  "format": "uuid",
                  "type": "string"
                },
                "occursAt": {
                  "format": "date-time",
                  "type": "string"
                },
                "number": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "recurrenceId",
                "templatePieceId",
                "occursAt",
                "number"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "evergreen": {
          "additionalProperties": false,
          "properties": {
            "pieceId": {
              "format": "uuid",
              "type": "string"
            },
            "on": {
              "type": "boolean"
            },
            "published": {
              "type": "boolean"
            },
            "minGapDays": {
              "type": "integer"
            },
            "lastQueuedAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "eligibleFrom": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "skippedChannels": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "channelAccountId": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "channelAccountId",
                  "reason"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "pieceId",
            "on",
            "published",
            "minGapDays",
            "lastQueuedAt",
            "eligibleFrom",
            "skippedChannels"
          ],
          "type": "object"
        },
        "repostOf": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "sourcePieceId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "slotAt": {
                  "format": "date-time",
                  "type": "string"
                }
              },
              "required": [
                "sourcePieceId",
                "slotAt"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "recurrence",
        "occurrenceOf",
        "evergreen",
        "repostOf"
      ],
      "type": "object"
    }
  },
  "required": [
    "piece",
    "owner",
    "createdBy",
    "master",
    "sources",
    "posts",
    "media",
    "comments",
    "review",
    "nextScheduledAt",
    "hasFailure",
    "repeat"
  ],
  "type": "object"
}

Errors

[]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "Get a content item"
}