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

# Get multiple posts by ID

> Returns a map of requested content IDs to post objects (or null if not accessible).



## OpenAPI

````yaml /openapi.yaml get /content/collection/{contentIDs}
openapi: 3.0.0
info:
  title: Ziik API
  version: '1.0'
servers: []
security: []
tags:
  - name: Auth
    description: Auth
  - name: Posts
    description: Posts
  - name: Counters
    description: Counters
  - name: Groups
    description: Groups
  - name: Languages
    description: Languages
  - name: Timezones
    description: Timezones
  - name: Units
    description: Units
  - name: User unit memberships
    description: User unit memberships
  - name: Users
    description: Users
  - name: User types
    description: User types
  - name: Conversations
    description: Conversations
paths:
  /content/collection/{contentIDs}:
    get:
      tags:
        - Posts
      summary: Get multiple posts by ID
      description: >-
        Returns a map of requested content IDs to post objects (or null if not
        accessible).
      operationId: 11360d978fc52546f2fa108bcd0f9de2
      parameters:
        - name: contentIDs
          in: path
          description: Comma-separated list of content IDs
          required: true
          schema:
            type: string
            example: 1,2,3
      responses:
        '200':
          description: A collection of posts by ID
          content:
            application/json:
              schema:
                properties:
                  content:
                    description: Map of content IDs to post objects or null
                    type: object
                    additionalProperties:
                      oneOf:
                        - $ref: '#/components/schemas/Content'
                      nullable: true
                type: object
components:
  schemas:
    Content:
      properties:
        id:
          type: integer
          example: 1
        content_type:
          description: Type of content
          type: string
          enum:
            - news
            - debate
            - event
          example: news
        title:
          type: string
          example: Important update
        body:
          type: string
          example: Post body text
        show_in_feed:
          type: boolean
          example: true
        important:
          type: boolean
          example: false
        actively_requires_action:
          type: boolean
          example: false
        mute_rule:
          description: ID of mute rule/blacklist for current user or null
          type: integer
          nullable: true
        seen_by_user:
          description: Whether the current user has seen this content
          type: boolean
        has_unseen_mention:
          description: Whether the current user has unseen mentions in this content
          type: boolean
        pinned:
          description: Pin information when content is pinned in feeds
          type: object
          nullable: true
        confirm:
          description: Read confirmation settings and totals
          type: object
        publish:
          description: Publish metadata including status and timestamps
          type: object
        event:
          description: Event-specific metadata when content is an event
          type: object
          nullable: true
        interaction:
          description: User-specific interaction flags (seen, liked, read, bookmarked)
          type: object
        stats:
          description: Aggregated statistics such as comments, likes, reads
          type: object
        sharing:
          description: Sharing information, including whether and how the content is shared
          type: object
        visibility:
          description: Visibility information (owner unit, units, user types)
          type: object
        uploading_files:
          description: Number of files currently uploading for this content
          type: integer
        files:
          description: Attached files for this content
          type: array
          items:
            type: object
        permissions:
          description: Edit/delete permission flags for the current user
          type: object
        comments:
          description: Comment settings and counts
          type: object
        mentions:
          description: Mentioned users when loaded
          type: array
          items:
            type: object
        group:
          description: Group information when content belongs to a group
          type: object
          nullable: true
        author:
          description: Author information for the content
          type: object
        poll:
          description: Poll configuration when content includes a poll
          type: object
          nullable: true
        participation:
          description: >-
            Event participation data (deprecated, mirrored from
            event.participation)
          type: object
          nullable: true
        translations:
          description: Automatic translation metadata and translated fields
          type: object
          nullable: true
      type: object

````