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

# Reject posts

> Reject one or more posts with an optional reason.



## OpenAPI

````yaml openapi.json POST /api/v1/posts/reject
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/reject:
    post:
      tags:
        - Posts
      summary: Reject posts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RejectPost'
      responses:
        '200':
          description: Rejection result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostRejectResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RejectPost:
      type: object
      properties:
        postIds:
          type: array
          items:
            type: string
          description: Post IDs to reject
          example:
            - post_abc123
            - post_def456
        reason:
          type: string
          description: Rejection reason
          example: Content not appropriate
        clientTxId:
          type: string
      required:
        - postIds
    PostRejectResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            rejected:
              type: array
              items:
                type: string
              description: Rejected post IDs
            updatedCount:
              type: number
              description: Number of posts rejected
              example: 2
          required:
            - rejected
            - 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.