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

# Preview private Open Graph image



## OpenAPI

````yaml openapi.json POST /v1/preview-image
openapi: 3.1.0
info:
  title: DocKiln API
  version: 1.1.0-review
  description: >-
    Workspace-scoped document generation. All timestamps are Unix milliseconds
    unless documented otherwise. The parity additions in this review
    specification require the matching server build. Dynamic rendering also
    requires operator configuration.
servers:
  - url: https://dockiln.io
    description: DocKiln hosted API
security: []
paths:
  /v1/preview-image:
    post:
      summary: Preview private Open Graph image
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                definition:
                  $ref: '#/components/schemas/Definition'
                data:
                  type: object
                  additionalProperties: true
              required:
                - definition
                - data
      responses:
        '200':
          description: Preview private Open Graph image
          content:
            image/png:
              schema:
                type: string
                format: binary
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
        default:
          description: Validation, authorization, quota or service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
      security:
        - session: []
components:
  schemas:
    Definition:
      type: object
      properties:
        title:
          type: string
        subtitle:
          type: string
        person:
          type: string
        footer:
          type: string
        accent:
          type: string
          pattern: ^#[0-9a-fA-F]{6}$
        columns:
          type: array
          items:
            type: string
        fields:
          type: array
          items:
            type: string
        rows:
          type: string
        sample:
          type: object
          additionalProperties: true
        page:
          $ref: '#/components/schemas/Page'
        slug:
          type: string
          maxLength: 63
      required:
        - title
        - subtitle
        - person
        - footer
        - accent
        - columns
        - fields
        - rows
        - sample
        - page
    Problem:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    Page:
      type: object
      properties:
        format:
          type: string
          enum:
            - A4
            - Letter
            - Legal
            - Label
        margin:
          type: integer
          minimum: 8
          maximum: 35
        landscape:
          type: boolean
        header:
          type: string
        footer:
          type: string
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: dockiln

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.