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

> ## Agent Instructions
> Postploy's MCP server for posting is https://api.postploy.com/mcp and signs in with OAuth. The REST API base URL is https://api.postploy.com/public/v1 and takes an API key as a Bearer token. The API calls channels accounts.

# Send posts for review

> Sends up to 50 drafts or posts waiting for approval to someone outside your team, like a client. They open a link, with no account, and approve each post, which schedules it for its time, or send it back with a note, which makes it a draft again with the note in `sentBack`. Give `reviewerId` for someone you've sent posts to before, or `reviewer` for a new person. With an email, they get the link by email. Their link stays the same for every post you send them.



## OpenAPI

````yaml /openapi.yaml post /reviews
openapi: 3.1.0
info:
  title: Postploy API
  version: '1'
  description: Schedule and manage social media posts in your Postploy team.
  contact:
    name: Postploy support
    email: support@postploy.com
servers:
  - url: https://api.postploy.com/public/v1
security:
  - apiKey: []
tags:
  - name: Channels
  - name: Posts
  - name: Approvals
  - name: Media
  - name: Trash
  - name: Webhooks
paths:
  /reviews:
    post:
      tags:
        - Approvals
      summary: Send posts for review
      description: >-
        Sends up to 50 drafts or posts waiting for approval to someone outside
        your team, like a client. They open a link, with no account, and approve
        each post, which schedules it for its time, or send it back with a note,
        which makes it a draft again with the note in `sentBack`. Give
        `reviewerId` for someone you've sent posts to before, or `reviewer` for
        a new person. With an email, they get the link by email. Their link
        stays the same for every post you send them.
      operationId: sendForReview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - postIds
              additionalProperties: false
              properties:
                postIds:
                  type: array
                  minItems: 1
                  maxItems: 50
                  items:
                    type: string
                    format: uuid
                reviewerId:
                  type: string
                  format: uuid
                  description: >-
                    Someone from [List
                    reviewers](/api-reference/approvals/list-reviewers). Give
                    this or `reviewer`.
                reviewer:
                  type: object
                  description: A new reviewer. Give this or `reviewerId`.
                  required:
                    - name
                  additionalProperties: false
                  properties:
                    name:
                      type: string
                      maxLength: 80
                    email:
                      type: string
                      format: email
                      description: >-
                        Where to email the link. Someone you already have with
                        this email is reused.
                message:
                  type: string
                  maxLength: 1000
                  description: A note shown with the posts and in the email.
            example:
              postIds:
                - 3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9
              reviewer:
                name: Grace Lin
                email: grace@lumen.pr
              message: Could you look by Thursday?
      responses:
        '201':
          description: Who the posts went to, with their link.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - reviewer
                      - sent
                      - emailed
                    properties:
                      reviewer:
                        $ref: '#/components/schemas/Reviewer'
                      sent:
                        type: integer
                      emailed:
                        type: boolean
                        description: Whether the link went out by email.
              example:
                data:
                  reviewer:
                    id: 8a1c5e2f-3b4d-4e6f-9a0b-1c2d3e4f5a6b
                    name: Grace Lin
                    email: grace@lumen.pr
                    url: https://postploy.com/review/gr4Lk9QzT7mB2sW8vY1cE6hJ
                    waiting: 1
                    seenAt: null
                    createdAt: '2030-01-10T12:00:00.000Z'
                  sent: 1
                  emailed: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    Reviewer:
      type: object
      description: Someone outside your team who approves posts from a link.
      required:
        - id
        - name
        - email
        - url
        - waiting
        - seenAt
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        email:
          type:
            - string
            - 'null'
        url:
          type: string
          format: uri
          description: >-
            Their review link. It stays the same for every post you send them,
            and anyone with it can answer as them.
        waiting:
          type: integer
          description: How many posts are waiting on them.
        seenAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When they last opened their link.
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - statusCode
        - message
        - errors
        - timestamp
        - route
      properties:
        statusCode:
          type: integer
        message:
          type: string
          description: What went wrong, in plain words. Safe to show to people.
        errors:
          type:
            - array
            - 'null'
          description: Every problem, when there's more than one place to look.
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                description: Where the problem is, such as `["posts", 0, "scheduledAt"]`.
                items:
                  type:
                    - string
                    - integer
              cause:
                type: string
              code:
                type: string
                description: >-
                  On plan limits, `PLATFORM_LIMIT_REACHED` or
                  `TOTAL_LIMIT_REACHED`.
              platform:
                type: string
        timestamp:
          type: string
          format: date-time
        route:
          type: string
  responses:
    BadRequest:
      description: >-
        The request is invalid, or a post breaks its platform's rules. `message`
        gives the first problem, and `errors` lists every one with its `path`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 400
            message: Scheduled date and time must be in the future
            errors:
              - message: Scheduled date and time must be in the future
                path:
                  - posts
                  - 0
                  - scheduledAt
                cause: custom
            timestamp: '2030-01-10T12:00:00.000Z'
            route: /public/v1/posts
    Unauthorized:
      description: The API key is missing, unknown or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            message: Invalid API key
            errors: null
            timestamp: '2030-01-10T12:00:00.000Z'
            route: /public/v1/accounts
    Forbidden:
      description: Your role in the team doesn't allow this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: It doesn't exist, or you can't see it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: >-
        The post can't change right now, for example while it's being published,
        or it isn't waiting for approval.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 409
            message: This post is being published right now
            errors: null
            timestamp: '2030-01-15T09:00:01.000Z'
            route: /public/v1/posts/3f6c2a1b-9d8e-4f7a-b6c5-d4e3f2a1b0c9
    TooManyRequests:
      description: >-
        More than 120 requests a minute to this endpoint. All of a person's keys
        count together. Wait the number of seconds in `Retry-After-caller`, then
        try again.
      headers:
        Retry-After-caller:
          description: Seconds to wait before trying again.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from **Settings › AI apps & API** in Postploy. Keys start
        with `ppk_`.

````

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