> ## Documentation Index
> Fetch the complete documentation index at: https://promptwatch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Content Publish Status

> Get the latest CMS publish record for a document plus its full push history. Returns latest: null when the document has never been pushed to a CMS.



## OpenAPI

````yaml /v2/openapi.json get /content/{id}/publish-status
openapi: 3.0.0
info:
  title: Promptwatch API v2
  description: >-
    API v2 for customer integrations with Promptwatch monitoring platform. This
    version provides improved structure, additional endpoints, and enhanced
    functionality.
  version: 2.0.0
  contact:
    name: Promptwatch Support
    email: team@promptwatch.com
    url: https://promptwatch.com
  license:
    name: Commercial
    url: https://promptwatch.com/terms-and-conditions
servers:
  - url: https://server.promptwatch.com/api/v2
    description: Promptwatch API v2
security: []
tags:
  - name: Authentication
    description: API key validation and authentication
  - name: Content
    description: >-
      AI content generation and optimization. Create content asynchronously and
      poll for results.
  - name: Content Gap
    description: Content gap analysis and recommendations
  - name: Publishing
    description: >-
      Publish content to a connected CMS, or record a live URL, and track the
      published page
  - name: Models
    description: Available LLM models
  - name: Monitors
    description: Monitor management and CRUD operations
  - name: Page Tracker
    description: Track URLs and inspect citation stats, responses, and prompts
  - name: Prompts
    description: Prompt management and operations
  - name: Query Fanouts
    description: ChatGPT query fanout keywords
  - name: Responses
    description: LLM response data and analytics
  - name: Tags
    description: Tag management for prompts
  - name: Topics
    description: Topic management for prompts
  - name: Actions
    description: Action items (GEO suggestions and tasks)
  - name: Personas
    description: Persona configuration for monitors
  - name: Brands
    description: Brand management for competitive analysis
  - name: Visibility
    description: Brand visibility time series and competitor heatmaps
  - name: Citations
    description: Citation analytics from AI responses
  - name: Analytics
    description: Visitor analytics, AI crawler logs, sentiment, and brand visibility trends
  - name: Projects
    description: Project management (organization-level keys only)
  - name: Sitemap
    description: Sitemap crawl progress and discovered URLs
  - name: Site Health
    description: >-
      Crawled pages with SEO issues (titles, meta descriptions, H1, thin
      content)
  - name: Socials
    description: >-
      Social media citations (Reddit posts and YouTube videos) found in LLM
      responses
paths:
  /content/{id}/publish-status:
    get:
      tags:
        - Publishing
      summary: Get Content Publish Status
      description: >-
        Get the latest CMS publish record for a document plus its full push
        history. Returns latest: null when the document has never been pushed to
        a CMS.
      operationId: getContentPublishStatus
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
          description: Content document identifier
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  latest:
                    id: 6ba7b825-9dad-11d1-80b4-00c04fd430c8
                    status: PUBLISHED
                    provider: WEBFLOW
                    connectionId: 6ba7b822-9dad-11d1-80b4-00c04fd430c8
                    externalItemId: 65f1c0a1b2c3d4e5f6a7b8c9
                    slug: how-to-rank-in-chatgpt
                    liveUrl: https://example.com/blog/how-to-rank-in-chatgpt
                    draftUrl: null
                    cmsEditorUrl: null
                    error: null
                    pushedBy:
                      name: Ada Lovelace
                      email: ada@example.com
                    lastPushedAt: '2026-03-28T14:30:00.000Z'
                    publishedAt: '2026-03-28T14:30:00.000Z'
                    createdAt: '2026-03-28T14:29:00.000Z'
                  history: []
                properties:
                  latest:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        description: Publish record identifier
                      status:
                        type: string
                        enum:
                          - DRAFT
                          - STAGED
                          - PUBLISHED
                          - UPDATED
                          - FAILED
                        description: Lifecycle state of the CMS publish record
                      provider:
                        type: string
                        enum:
                          - WEBFLOW
                          - FRAMER
                        description: CMS provider backing the connection
                        nullable: true
                      connectionId:
                        type: string
                        format: uuid
                        description: Connection used for this push
                        nullable: true
                      externalItemId:
                        type: string
                        nullable: true
                        description: Item identifier in the CMS
                      slug:
                        type: string
                        nullable: true
                        description: Slug the CMS stored for the item
                      liveUrl:
                        type: string
                        nullable: true
                        description: Canonical live URL, set on live publishes
                      draftUrl:
                        type: string
                        nullable: true
                        description: Public preview URL for a staged item
                      cmsEditorUrl:
                        type: string
                        nullable: true
                        description: Deep link into the provider's CMS editor
                      error:
                        type: string
                        nullable: true
                        description: Failure reason for the most recent attempt
                      pushedBy:
                        type: object
                        nullable: true
                        description: >-
                          User the push was attributed to. Null for API key
                          pushes with no resolvable actor.
                        properties:
                          name:
                            type: string
                            nullable: true
                            description: Full name
                          email:
                            type: string
                            nullable: true
                            description: Email address
                        required:
                          - name
                          - email
                        additionalProperties: false
                      lastPushedAt:
                        type: string
                        format: date-time
                        description: Most recent push to the CMS
                        nullable: true
                      publishedAt:
                        type: string
                        format: date-time
                        description: When the item went live
                        nullable: true
                      createdAt:
                        type: string
                        format: date-time
                        description: Timestamp (ISO 8601)
                    required:
                      - id
                      - status
                      - provider
                      - connectionId
                      - externalItemId
                      - slug
                      - liveUrl
                      - draftUrl
                      - cmsEditorUrl
                      - error
                      - pushedBy
                      - lastPushedAt
                      - publishedAt
                      - createdAt
                    additionalProperties: false
                    nullable: true
                    description: Most recent publish record, or null if never pushed
                  history:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Publish record identifier
                        status:
                          type: string
                          enum:
                            - DRAFT
                            - STAGED
                            - PUBLISHED
                            - UPDATED
                            - FAILED
                          description: Lifecycle state of the CMS publish record
                        provider:
                          type: string
                          enum:
                            - WEBFLOW
                            - FRAMER
                          description: CMS provider backing the connection
                          nullable: true
                        connectionId:
                          type: string
                          format: uuid
                          description: Connection used for this push
                          nullable: true
                        externalItemId:
                          type: string
                          nullable: true
                          description: Item identifier in the CMS
                        slug:
                          type: string
                          nullable: true
                          description: Slug the CMS stored for the item
                        liveUrl:
                          type: string
                          nullable: true
                          description: Canonical live URL, set on live publishes
                        draftUrl:
                          type: string
                          nullable: true
                          description: Public preview URL for a staged item
                        cmsEditorUrl:
                          type: string
                          nullable: true
                          description: Deep link into the provider's CMS editor
                        error:
                          type: string
                          nullable: true
                          description: Failure reason for the most recent attempt
                        pushedBy:
                          type: object
                          nullable: true
                          description: >-
                            User the push was attributed to. Null for API key
                            pushes with no resolvable actor.
                          properties:
                            name:
                              type: string
                              nullable: true
                              description: Full name
                            email:
                              type: string
                              nullable: true
                              description: Email address
                          required:
                            - name
                            - email
                          additionalProperties: false
                        lastPushedAt:
                          type: string
                          format: date-time
                          description: Most recent push to the CMS
                          nullable: true
                        publishedAt:
                          type: string
                          format: date-time
                          description: When the item went live
                          nullable: true
                        createdAt:
                          type: string
                          format: date-time
                          description: Timestamp (ISO 8601)
                      required:
                        - id
                        - status
                        - provider
                        - connectionId
                        - externalItemId
                        - slug
                        - liveUrl
                        - draftUrl
                        - cmsEditorUrl
                        - error
                        - pushedBy
                        - lastPushedAt
                        - publishedAt
                        - createdAt
                      additionalProperties: false
                    description: All publish records for the document, newest first
                required:
                  - latest
                  - history
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Unauthorized
                  message: Missing or invalid X-API-Key header.
                properties:
                  error:
                    type: string
                    description: Error category (often aligned with HTTP semantics)
                  code:
                    type: string
                    description: Optional machine-readable code
                  message:
                    type: string
                    description: Human-readable explanation
                  details:
                    type: object
                    description: Optional structured detail (e.g. validation)
                    additionalProperties: true
                required:
                  - error
                  - message
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: CMS_INTEGRATIONS_CONNECTION_NOT_FOUND
                  message: CMS connection not found
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - CONTENT_NOT_FOUND
                      - CONTENT_NOT_COMPLETED
                      - CONTENT_INVALID_PUBLICATION_URL
                      - CMS_INTEGRATIONS_CONNECTION_NOT_FOUND
                      - CMS_INTEGRATIONS_CONNECTION_CREDENTIALS_MISSING
                      - CMS_INTEGRATIONS_CONNECTION_DISABLED
                      - CMS_INTEGRATIONS_DOCUMENT_NOT_FOUND
                      - CMS_INTEGRATIONS_DOCUMENT_NO_CONTENT
                      - CMS_INTEGRATIONS_FIELD_MAPPING_STALE
                      - CMS_INTEGRATIONS_REQUIRED_MAPPING_MISSING
                      - CMS_INTEGRATIONS_STAGED_DRAFT_NOT_FOUND
                      - CMS_INTEGRATIONS_PUBLISH_FAILED
                      - API_KEY_READ_ONLY
                      - INTERNAL_ERROR
                    example: CMS_INTEGRATIONS_CONNECTION_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                    example: CMS connection not found
                required:
                  - code
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: CMS_INTEGRATIONS_CONNECTION_NOT_FOUND
                  message: CMS connection not found
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - CONTENT_NOT_FOUND
                      - CONTENT_NOT_COMPLETED
                      - CONTENT_INVALID_PUBLICATION_URL
                      - CMS_INTEGRATIONS_CONNECTION_NOT_FOUND
                      - CMS_INTEGRATIONS_CONNECTION_CREDENTIALS_MISSING
                      - CMS_INTEGRATIONS_CONNECTION_DISABLED
                      - CMS_INTEGRATIONS_DOCUMENT_NOT_FOUND
                      - CMS_INTEGRATIONS_DOCUMENT_NO_CONTENT
                      - CMS_INTEGRATIONS_FIELD_MAPPING_STALE
                      - CMS_INTEGRATIONS_REQUIRED_MAPPING_MISSING
                      - CMS_INTEGRATIONS_STAGED_DRAFT_NOT_FOUND
                      - CMS_INTEGRATIONS_PUBLISH_FAILED
                      - API_KEY_READ_ONLY
                      - INTERNAL_ERROR
                    example: CMS_INTEGRATIONS_CONNECTION_NOT_FOUND
                  message:
                    type: string
                    description: Human-readable error message
                    example: CMS connection not found
                required:
                  - code
                  - message
                additionalProperties: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get yours from the Promptwatch dashboard
        under Settings > API Keys.

````