{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ssemble-com/json-schema/ssemble-com-get-posts-response-schema.json",
  "title": "GetPostsResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/ssemble-com-openapi-generated.yml#/components/schemas/GetPostsResponse",
  "type": "object",
  "properties": {
    "data.posts[]": {
      "type": "object",
      "description": "Array of post objects"
    },
    "data.posts[].id": {
      "type": "string",
      "description": "Post ID"
    },
    "data.posts[].platform": {
      "type": "string",
      "description": "youtube, instagram or tiktok"
    },
    "data.posts[].status": {
      "type": "string",
      "description": "Post status (scheduled, processing, published, failed, canceled)"
    },
    "data.posts[].scheduledAt": {
      "type": "string",
      "description": "When the post was due to go out"
    },
    "data.posts[].publishedAt": {
      "type": "string",
      "description": "When the platform confirmed it (only for published)"
    },
    "data.posts[].url": {
      "type": "string",
      "description": "Public URL of the post (only for published)"
    },
    "data.posts[].shortId": {
      "type": "string",
      "description": "The clip it belongs to"
    },
    "data.posts[].requestId": {
      "type": "string",
      "description": "The request it came from"
    },
    "data.posts[].title": {
      "type": "string",
      "description": "Caption / title used for the post"
    },
    "data.posts[].account.handle": {
      "type": "string",
      "description": "The connected account it was posted to"
    },
    "data.posts[].source": {
      "type": "string",
      "description": "manual or automation"
    },
    "data.posts[].error": {
      "type": "string",
      "description": "Error message for failed posts"
    },
    "data.posts[].errorCode": {
      "type": "string",
      "description": "Stable error code for failed posts"
    },
    "data.posts[].retryable": {
      "type": "boolean",
      "description": "Whether rescheduling can fix the failure"
    },
    "data.posts[].createdAt": {
      "type": "string",
      "description": "Creation timestamp of the post record"
    },
    "data.pagination": {
      "type": "object",
      "description": "Pagination info"
    },
    "data.pagination.page": {
      "type": "integer",
      "description": "Current page"
    },
    "data.pagination.limit": {
      "type": "integer",
      "description": "Items per page"
    },
    "data.pagination.totalPages": {
      "type": "integer",
      "description": "Total number of pages"
    },
    "data.pagination.totalCount": {
      "type": "integer",
      "description": "Total number of posts"
    }
  }
}