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

# List Posts

> List grouped multi-platform posts with per-platform results, retries, warnings, and capabilities.

Use `profile_id` to list grouped posts for a non-default connection profile. Omit it to list the default profile.

Each post includes per-platform `results`. When the platform returns or exposes those values, completed platform results include `platform_post_id` and `platform_post_url`.

To change a scheduled post, [get its current revision](https://docs.mallary.ai/api-reference/endpoint/get-scheduled-post.md), then [edit the post](https://docs.mallary.ai/api-reference/endpoint/update-scheduled-post.md).


## OpenAPI

````yaml GET /api/v1/posts
openapi: 3.0.3
info:
  title: Mallary API
  version: 1.6.0
  description: >
    Public API for multi-platform publishing, analytics, media upload, and
    webhooks.


    Authentication:

    - Use header `Authorization: Bearer {api_key}`.

    - API key identity is authoritative. Do not use `user_id` to identify a
    caller.


    Connection profiles:

    - Omit `profile_id` to use the authenticated user's default profile.

    - Send the profile's random public `profile_id` when you want to publish,
    list posts, read post analytics or audience counts, list platforms, update
    settings, or disconnect a platform for a non-default profile.

    - Use `GET /api/v1/profiles` to list profile IDs.

    - Total social media accounts: Starter 5 ($15/month), Pro 15 ($29/month),
    Business 100 ($95/month). Posts are unlimited. Scheduling, analytics, and AI
    auto-replies are included. X publishing and comments use credits at cost;
    analytics and account lookups use no credits. Existing customers keep their
    current terms; use the authenticated workspace limits.


    Rate limits (per user, per minute) depend on subscription plan:

    - plan_id 1: 75 req/min

    - plan_id 2: 150 req/min

    - plan_id 3: 750 req/min

    - plan_id 4: 1500 req/min
servers:
  - url: https://mallary.ai
    description: Production
security:
  - bearerAuth: []
externalDocs:
  description: Full product docs
  url: https://docs.mallary.ai/
paths:
  /api/v1/posts:
    get:
      summary: List grouped posts
      description: >-
        Returns grouped multi-platform posts with per-platform outcomes,
        retries, warnings, and capabilities.
      operationId: listPosts
      parameters:
        - in: query
          name: page
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - in: query
          name: per_page
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
        - in: query
          name: profile_id
          required: false
          schema:
            $ref: '#/components/schemas/ProfileId'
          description: >-
            Filter grouped posts to one connection profile. Omit to use the
            default profile.
      responses:
        '200':
          description: Posts retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPostsResponse'
        '401':
          description: Missing or invalid API key
        '403':
          description: Supplied `user_id` (if any) does not match API key owner
components:
  schemas:
    ProfileId:
      type: string
      pattern: ^[A-Za-z0-9]{6,32}$
      example: AbC123xYz90
      description: Random public connection profile ID returned by `GET /api/v1/profiles`.
    ListPostsResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - ok
        data:
          type: object
          properties:
            posts:
              type: array
              items:
                $ref: '#/components/schemas/Post'
            warnings:
              type: array
              items:
                $ref: '#/components/schemas/AutoReplyWarning'
            capabilities:
              $ref: '#/components/schemas/Capabilities'
            profile_id:
              type: string
              pattern: ^[A-Za-z0-9]{6,32}$
              nullable: true
            meta:
              type: object
              properties:
                page:
                  type: integer
                per_page:
                  type: integer
                total:
                  type: integer
    Post:
      type: object
      properties:
        id:
          type: integer
        batch_id:
          type: string
          nullable: true
        revision:
          type: integer
          minimum: 0
          description: Current edit revision when available.
        editable:
          type: boolean
          description: Whether the grouped post can still be edited.
        profile_id:
          type: string
          pattern: ^[A-Za-z0-9]{6,32}$
          nullable: true
        job_ids:
          type: array
          items:
            type: integer
        auto_reply_enabled:
          type: boolean
        message:
          type: string
        media:
          type: array
          items:
            $ref: '#/components/schemas/MediaItem'
        status:
          type: string
          enum:
            - queued
            - scheduled
            - processing
            - action_required
            - partial
            - completed
            - failed
            - cancelled
        source:
          type: string
          enum:
            - api
            - dashboard
            - cli
            - mcp
            - make
        created_at:
          type: string
        posted_at:
          type: string
          nullable: true
        scheduled_at:
          type: string
          nullable: true
        scheduled_timezone:
          type: string
          nullable: true
        action_required:
          type: object
          nullable: true
          additionalProperties: true
        platforms:
          type: array
          items:
            $ref: '#/components/schemas/Platform'
        results:
          type: array
          items:
            $ref: '#/components/schemas/PostResult'
        retry:
          $ref: '#/components/schemas/RetryInfo'
        analytics:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/AnalyticsMetrics'
    AutoReplyWarning:
      type: object
      properties:
        scope:
          type: string
        platform:
          type: string
        code:
          type: string
        severity:
          type: string
          enum:
            - warning
            - error
            - info
        message:
          type: string
        details:
          nullable: true
        retry_at:
          type: string
          nullable: true
        expires_at:
          type: string
          nullable: true
        updated_at:
          type: string
          nullable: true
    Capabilities:
      type: object
      properties:
        can_schedule:
          type: boolean
        can_analytics:
          type: boolean
        can_auto_reply:
          type: boolean
        tier:
          $ref: '#/components/schemas/CapabilityTier'
        max_accounts_per_platform:
          type: integer
    MediaItem:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          format: uri
          description: Media URL (`mediaUrl` must be obtained from `/api/v1/upload`).
        type:
          type: string
          description: Optional MIME type hint.
        thumbnail_url:
          type: string
          format: uri
          description: >-
            Optional Mallary-hosted image URL to use as the custom thumbnail or
            cover for a video post when supported by the target platform.
        alt_text:
          type: string
          maxLength: 2000
          description: >-
            Optional media description for accessibility. Bluesky adds it to the
            matching image or video.
    Platform:
      type: string
      description: Supported publishing platform identifier.
      enum:
        - twitter
        - x
        - facebook
        - instagram
        - linkedin
        - youtube
        - tiktok
        - pinterest
        - reddit
        - threads
        - bluesky
    PostResult:
      type: object
      properties:
        job_id:
          type: integer
        platform:
          $ref: '#/components/schemas/Platform'
        success:
          type: boolean
          nullable: true
        platform_post_id:
          type: string
          nullable: true
        platform_post_url:
          type: string
          nullable: true
        shortcode:
          type: string
          nullable: true
        platform_username:
          type: string
          nullable: true
        post_type:
          type: string
          nullable: true
        error_message:
          type: string
          nullable: true
        error_code:
          type: string
          nullable: true
        quota_reset_at:
          type: string
          nullable: true
          description: >-
            Expected YouTube project upload-quota reset time in ISO 8601 format
            when `error_code` is `youtube_project_upload_quota_exhausted`.
        retryable:
          type: boolean
          nullable: true
        action_required:
          type: object
          nullable: true
          additionalProperties: true
        retry_exhausted:
          type: boolean
          nullable: true
        next_retry_at:
          type: string
          nullable: true
        attempt:
          type: integer
          nullable: true
        attempts_allowed:
          type: integer
          nullable: true
    RetryInfo:
      type: object
      properties:
        exhausted:
          type: boolean
        next_retry_at:
          type: string
          nullable: true
        attempt:
          type: integer
        attempts_allowed:
          type: integer
    AnalyticsMetrics:
      type: object
      properties:
        captured_at:
          type: string
          format: date-time
          nullable: true
        impressions:
          type: integer
          nullable: true
        reach:
          type: integer
          nullable: true
        likes:
          type: integer
          nullable: true
        comments:
          type: integer
          nullable: true
        shares:
          type: integer
          nullable: true
        clicks:
          type: integer
          nullable: true
        views:
          type: integer
          nullable: true
        saves:
          type: integer
          nullable: true
        bookmarks:
          type: integer
          nullable: true
        outbound_clicks:
          type: integer
          nullable: true
        pin_clicks:
          type: integer
          nullable: true
        url_clicks:
          type: integer
          nullable: true
        profile_clicks:
          type: integer
          nullable: true
        engaged_users:
          type: integer
          nullable: true
        engagementRate:
          type: number
          nullable: true
          description: >-
            Interaction rate as a ratio, retained for API compatibility. Use the
            denominator field to interpret it.
        engagementRatePercent:
          type: number
          nullable: true
          description: The same interaction rate as a percentage.
        engagementRateDenominator:
          type: string
          nullable: true
          enum:
            - views
            - impressions
            - reach
        metric_window:
          type: string
          nullable: true
          enum:
            - lifetime
            - rolling_30d
            - rolling_90d
        metric_semantics_version:
          type: integer
          nullable: true
    CapabilityTier:
      type: string
      enum:
        - free
        - starter
        - pro
        - business
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use `Authorization: Bearer {api_key}`'

````

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