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

# Get content HTML

> Get the CMS-ready HTML body of content

Returns the content's main body as **CMS-ready HTML**. The output is identical to what the "Copy code to CMS" button produces in the Hrizn dashboard and includes:

* **Bootstrap table classes** for responsive table styling
* **Hrizn attribution tag** appended at the end of the content
* **Sanitized HTML** safe for direct CMS embedding

Send `Accept: text/html` to receive raw HTML instead of a JSON wrapper.

**Scope required:** `content:read`

## Path parameters

<ParamField path="id" type="string" required>UUID of the content.</ParamField>

## Response

<ResponseField name="id" type="string">Content UUID.</ResponseField>
<ResponseField name="html" type="string">CMS-ready HTML string with Bootstrap table classes and Hrizn attribution.</ResponseField>
<ResponseField name="component_status" type="string">Status of the body component (e.g. `complete`, `generating`).</ResponseField>
<ResponseField name="updated_at" type="string">ISO 8601 timestamp of last update.</ResponseField>

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "data": {
      "id": "4d42cdcf-e24f-4123-960e-6c15761fcfcf",
      "html": "<h2>Unveiling the Power and Performance of the 2026 Chevy Silverado 3500 DRW</h2>\n<p>The 2026 Chevy Silverado 3500 DRW is engineered to deliver a true heavy-duty driving experience...</p><!-- hrizn-content ... -->",
      "component_status": "complete",
      "updated_at": "2026-02-27T21:42:56.625882+00:00"
    }
  }
  ```
</ResponseExample>

<Tip>
  To get raw HTML directly (useful for embedding in a CMS), set the `Accept` header to `text/html`. The response body will be the HTML string without a JSON wrapper.
</Tip>

<Note>
  Tables in the HTML include Bootstrap classes (`table`, `table-striped`) for styling. If your CMS does not use Bootstrap, you may need to add equivalent CSS or strip these classes.
</Note>


## OpenAPI

````yaml GET /content/{id}/html
openapi: 3.1.0
info:
  title: Hrizn Public API
  version: 1.2.0
  description: >
    The Hrizn Public API allows partners to programmatically create content,
    manage inventory descriptions, and integrate with the Hrizn platform.


    All endpoints are prefixed with `/public` and require an API key passed via
    the `X-API-Key` header (except the health check).
  contact:
    email: support@hrizn.io
servers:
  - url: https://api.app.hrizn.io/v1/public
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: IdeaClouds
    description: Create and manage AI-powered keyword research
  - name: Content Intelligence
    description: AI-powered content gap analysis and recommendations
  - name: Content
    description: Generate content from IdeaClouds
  - name: Compliance
    description: Run OEM compliance checks on content
  - name: Content Tools
    description: Generate SEO metadata, schemas, and social snippets
  - name: Inventory
    description: Access vehicle data and AI descriptions
  - name: Site
    description: View dealership details and configuration
  - name: Webhooks
    description: Manage webhook subscriptions for real-time events
  - name: Reference
    description: Look up available types, scopes, and events
  - name: Social
    description: >-
      Zernio-backed social posting and reviews across all connected platforms
      (X, Facebook, Instagram, LinkedIn, Google Business Profile)
  - name: Health
    description: Health check (no authentication)
paths:
  /content/{id}/html:
    get:
      tags:
        - Content
      summary: Get CMS-ready HTML
      description: >
        Returns the content body as CMS-ready HTML. For standard
        (markdown-based) articles the output includes Bootstrap table classes
        for responsive styling and a Hrizn attribution tag, matching the HTML
        produced by the "Copy to CMS" feature in the dashboard. For visual
        builder articles (created with the Hrizn Layouts editor), the
        pre-rendered HTML is returned directly. Use `Accept: text/html` for raw
        HTML.
      operationId: getContentHtml
      parameters:
        - $ref: '#/components/parameters/ContentId'
      responses:
        '200':
          description: Content HTML
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArticleHtmlResponse'
            text/html:
              schema:
                type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    ContentId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Content ID
  schemas:
    ArticleHtmlResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
              format: uuid
            html:
              type: string
              description: >-
                CMS-ready HTML with Bootstrap table classes and Hrizn
                attribution tag
            component_status:
              type: string
            updated_at:
              type: string
              format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
              example: 'keyword: Required'
            details:
              type: object
            request_id:
              type: string
  responses:
    BadRequest:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: API key lacks required scope
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your Hrizn API key (prefix hzk_)

````