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

# Approve posts

> Approve one or more posts pending review.



## OpenAPI

````yaml openapi.json POST /api/v1/posts/approve
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/posts/approve:
    post:
      tags:
        - Posts
      summary: Approve posts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApprovePost'
      responses:
        '200':
          description: Approval result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApproveResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ApprovePost:
      type: object
      properties:
        postIds:
          type: array
          items:
            type: string
          description: Array of post IDs to approve
          example:
            - post_abc123
        scheduleMode:
          type: string
          enum:
            - SCHEDULE_APPROVED
            - WAIT_FOR_ALL
          description: Scheduling mode for the approved posts
          example: SCHEDULE_APPROVED
        clientTxId:
          type: string
      required:
        - postIds
    PostApproveResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            approved:
              type: array
              items:
                type: string
              description: Approved post IDs
            updatedCount:
              type: number
              description: Number of posts approved
              example: 3
          required:
            - approved
            - updatedCount
        success:
          type: boolean
          description: Success status
        error:
          type: string
          description: Error message
        message:
          type: string
          description: Status message
      required:
        - data
        - success
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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