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

# Get platform rules

> What each platform accepts, such as text length, media counts, file sizes, video lengths and post options. Check a post against these rules with [Check posts](/api-reference/posts/check-posts).



## OpenAPI

````yaml /openapi.yaml get /capabilities
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:
  /capabilities:
    get:
      tags:
        - Channels
      summary: Get platform rules
      description: >-
        What each platform accepts, such as text length, media counts, file
        sizes, video lengths and post options. Check a post against these rules
        with [Check posts](/api-reference/posts/check-posts).
      operationId: listPlatformRules
      responses:
        '200':
          description: The rules for every platform.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PlatformRules'
              example:
                data:
                  - platform: linkedin
                    label: LinkedIn
                    contentStyle: >-
                      informative, relevant to the industry and professional in
                      tone
                    text:
                      max: 3000
                    media:
                      required: false
                      maxItems: 20
                      mixed: false
                      image:
                        allowed: true
                        maxItems: 20
                      video:
                        allowed: true
                        maxItems: 1
                    features:
                      firstComment: true
                      visibility:
                        - PUBLIC
                        - CONNECTIONS
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  schemas:
    PlatformRules:
      type: object
      required:
        - platform
        - label
        - text
        - media
        - features
      properties:
        platform:
          $ref: '#/components/schemas/Platform'
        label:
          type: string
          description: The platform's name, such as `X`.
        contentStyle:
          type: string
          description: How posts on this platform usually read.
        connectHint:
          type: string
          description: Which accounts can be connected.
        accountKind:
          type: string
        accountNoun:
          type: string
        audienceNoun:
          type: string
        text:
          type: object
          required:
            - max
          properties:
            max:
              type: integer
              description: The longest a post can be.
            recommendedMax:
              type: integer
            unit:
              type: string
              enum:
                - chars
                - bytes
                - x-weighted
              description: >-
                How length is counted. `x-weighted` counts the way X does, with
                every link as 23 characters.
            maxWithVideo:
              type: integer
            forbiddenChars:
              type: string
        title:
          type: object
          properties:
            required:
              type: boolean
            max:
              type: integer
            forbiddenChars:
              type: string
        media:
          type: object
          required:
            - required
            - maxItems
            - mixed
            - image
            - video
          properties:
            required:
              type: boolean
              description: Whether every post needs an image or video.
            maxItems:
              type: integer
            mixed:
              type: boolean
              description: Whether images and videos can share a post.
            image:
              $ref: '#/components/schemas/MediaLimits'
            video:
              $ref: '#/components/schemas/MediaLimits'
            gif:
              $ref: '#/components/schemas/MediaLimits'
            byPostType:
              type: object
              description: Different limits for some post types, such as Instagram stories.
        postTypes:
          type: array
          items:
            type: string
        features:
          type: object
          properties:
            threads:
              type: boolean
            firstComment:
              type: boolean
            collaborators:
              type: boolean
            repost:
              type: boolean
            visibility:
              type: array
              items:
                type: string
            visibilityRequired:
              type: boolean
            allowUsersTo:
              type: object
              description: >-
                What viewers can be allowed to do, by the kind of media in the
                post.
              properties:
                image:
                  type: array
                  items:
                    type: string
                video:
                  type: array
                  items:
                    type: string
            promotion:
              type: object
              description: The platform's rules for posts that disclose a promotion.
              properties:
                missing:
                  type: string
                  description: >-
                    What to tell the person when a disclosed post doesn't say
                    what it promotes.
                labels:
                  type: array
                  description: >-
                    The label the platform shows on a disclosed post. The first
                    entry whose option the post has applies.
                  items:
                    type: object
                    properties:
                      option:
                        type: string
                      label:
                        type: string
                limits:
                  type: array
                  description: Promotion options that limit who can see the post.
                  items:
                    type: object
                    properties:
                      option:
                        type: string
                      visibility:
                        type: array
                        items:
                          type: string
                      note:
                        type: string
            agreements:
              type: array
              description: >-
                The platform's terms a person agrees to by posting. Show them
                before the post goes out. An entry with an option applies only
                when the post's promotion includes it.
              items:
                type: object
                properties:
                  label:
                    type: string
                  url:
                    type: string
                    format: uri
                  option:
                    type: string
        maxHashtags:
          type: integer
        maxMentions:
          type: integer
    Platform:
      type: string
      description: '`twitter` is X.'
      enum:
        - linkedin
        - twitter
        - instagram
        - facebook
        - tiktok
        - youtube
    MediaLimits:
      type: object
      properties:
        allowed:
          type: boolean
        maxItems:
          type: integer
        maxBytes:
          type: integer
        minBytes:
          type: integer
        recommendedMaxBytes:
          type: integer
        minDurationSec:
          type: number
        maxDurationSec:
          type: number
        recommendedMaxDurationSec:
          type: number
        formats:
          type: array
          items:
            type: string
    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:
    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
    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.