> ## 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.

# List posts

> List social post targets for this site

Returns social post targets newest-first. Each item is a single platform
target; targets that belong to the same post share a `post_id`. Filter by
`platform` or `status`.

**Scope required:** `social:read`


## OpenAPI

````yaml GET /social/posts
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:
  /social/posts:
    get:
      tags:
        - Social
      summary: List social post targets
      description: |
        List social post targets for the site, newest first. Each item is a
        single platform target; targets that belong to the same post share a
        `post_id`. Filter by `platform` or `status`.
      operationId: listSocialPosts
      parameters:
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: platform
          in: query
          required: false
          schema:
            type: string
            enum:
              - twitter
              - facebook
              - instagram
              - linkedin
              - googlebusiness
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - draft
              - scheduled
              - publishing
              - published
              - failed
              - cancelled
      responses:
        '200':
          description: Paginated list of post targets
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SocialPostTarget'
                  pagination:
                    $ref: '#/components/schemas/PaginationInfo'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
        - apiKeyAuth: []
components:
  parameters:
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        default: 25
        minimum: 1
        maximum: 100
      description: Number of results per page
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
      description: Base64-encoded pagination cursor
  schemas:
    SocialPostTarget:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Target row id (one per platform)
        post_id:
          type: string
          nullable: true
          description: Logical post id shared across platform targets (use for writes)
        platform:
          $ref: '#/components/schemas/SocialPlatform'
        status:
          type: string
          enum:
            - draft
            - scheduled
            - publishing
            - published
            - failed
            - cancelled
        content:
          type: string
          nullable: true
        media_urls:
          type: array
          items:
            type: string
        account_id:
          type: string
          nullable: true
        scheduled_for:
          type: string
          format: date-time
          nullable: true
        scheduled_timezone:
          type: string
          nullable: true
        published_at:
          type: string
          format: date-time
          nullable: true
        platform_post_url:
          type: string
          nullable: true
        platform_post_id:
          type: string
          nullable: true
        error:
          type: string
          nullable: true
        article_component_id:
          type: string
          format: uuid
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    PaginationInfo:
      type: object
      properties:
        has_more:
          type: boolean
        next_cursor:
          type: string
          nullable: true
        total_count:
          type: integer
    SocialPlatform:
      type: string
      enum:
        - twitter
        - facebook
        - instagram
        - linkedin
        - googlebusiness
    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:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded
      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_)

````