ShapelessAI Posts API

The Posts API from ShapelessAI — 4 operation(s) for posts.

GitHub OpenAPI

Operations 17

GET /api/posts/{id} One row's live state #
PATCH /api/posts/{id} Edit a still-scheduled post: time, text, media, settings, first comment, or the… #
DELETE /api/posts/{id} Cancel a scheduled or proposed post #
POST /api/posts/{id}/comments/refresh Read the thread from the platform now #
POST /api/posts/{id}/{id} Propose a paid boost of a published Meta post #
POST /api/posts/{postid} Cap endpoint (no description provided) #
GET /api/posts The queue: proposed, scheduled, published. ?status= and ?limit= narrow it #
POST /api/posts Queue a post: at a time, in the next free queue slot, or now. #
GET /api/posts/cap The Free plan's day: how many posts already go out on the UTC day ?at= falls… #
POST /api/posts/{id}/approve Approve one proposal: proposed -> scheduled #
POST /api/posts/{id}/publish Publish a queued post now #
POST /api/posts/{id}/mark-posted Record that you posted it yourself #
POST /api/posts/{id}/revise Rework a draft from feedback #
POST /api/posts/{id}/boost Propose a paid boost of a published Meta post #
GET /api/posts/{id}/comments The thread under a published post, with each drafted reply #
POST /api/posts/{id}/comments Stage your own reply to one comment #
POST /api/posts/resolve Resolve posts: {ids, verb: approve|dismiss}. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/shapelessai:shapelessai-posts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

shapelessai-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shapelessai Posts API
  x-refined-note:
  - x-authored-by differs across the merged source definitions and was not carried
  - x-engine differs across the merged source definitions and was not carried
  - x-evidence-tiers differs across the merged source definitions and was not carried
  - x-generated differs across the merged source definitions and was not carried
  - x-generated-from differs across the merged source definitions and was not carried
  - x-generator differs across the merged source definitions and was not carried
  - x-provenance differs across the merged source definitions and was not carried
  - x-sources differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged Posts across 2 of this provider''s published API definitions: shapelessai-openapi-generated.yml, shapelessai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://shapelessai.com
tags:
- name: Posts
paths:
  /api/posts/{id}:
    get:
      operationId: get_api_posts_id
      tags:
      - Posts
      summary: One row's live state
      x-source: https://shapelessai.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiPostsIdResponse'
      x-evidence:
        kind: documentation
      security:
      - bearer: []
    patch:
      summary: 'Edit a still-scheduled post: time, text, media, settings, first comment, or the…'
      operationId: patchPostsId
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostPatch'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Post'
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "write" scope.
        '409':
          description: Already publishing, or the new account is another platform.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - write
      - oauth:
        - write
      x-scope: write
      x-status: live
      tags:
      - Posts
    delete:
      summary: Cancel a scheduled or proposed post
      operationId: deletePostsId
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "write" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - write
      - oauth:
        - write
      x-scope: write
      x-status: live
      tags:
      - Posts
  /api/posts/{id}/comments/refresh:
    post:
      operationId: post_api_posts_id_comments_refresh
      tags:
      - Posts
      summary: Read the thread from the platform now
      x-source: https://shapelessai.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
      security:
      - bearer: []
  /api/posts/{id}/{id}:
    post:
      operationId: post_api_posts_id_id
      tags:
      - Posts
      summary: Propose a paid boost of a published Meta post
      x-source: https://shapelessai.com/docs/api
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiPostsIdIdRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
        collapsed_from: 5 example path(s) differing only at id
      security:
      - bearer: []
  /api/posts/{postid}:
    post:
      operationId: post_api_posts_postid
      tags:
      - Posts
      summary: Cap endpoint (no description provided)
      x-source: https://shapelessai.com/docs/api
      parameters:
      - name: postid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
        collapsed_from: 2 example path(s) differing only at postId
      security:
      - bearer: []
  /api/posts:
    get:
      summary: 'The queue: proposed, scheduled, published. ?status= and ?limit= narrow it'
      operationId: getPosts
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostList'
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "read" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - read
      - oauth:
        - read
      x-scope: read
      x-status: live
      tags:
      - Posts
    post:
      summary: 'Queue a post: at a time, in the next free queue slot, or now.'
      operationId: postPosts
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: 'Any string unique to this one intended thing (a UUID you keep). A retry with the same key answers what the first request made, with replayed: true and an Idempotency-Replayed: true header, and makes nothing new; 409 idempotency_in_flight (with Retry-After) while the first request still runs. A refused request frees its key. Remembered 30 days.'
        schema:
          type: string
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostCreate'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostCreated'
        '401':
          description: No credential, or not valid.
        '402':
          description: 'A plan limit: Free''s day is full, or X''s allowance is (PlanLimit). The body names the plan that lifts it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanLimit'
        '403':
          description: The key is missing the "publish" scope.
        '409':
          description: 'audio given on an Instagram account connected through Instagram Login: {needsConnection: ''instagram'', connect: {platform, url, expiresAt}} - connect.url opens the Facebook Login connect. Or code idempotency_in_flight: the first request with this Idempotency-Key is still running (Retry-After).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A platform rule refused the post; the message names the rule.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - publish
      - oauth:
        - publish
      x-scope: publish
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
  /api/posts/cap:
    get:
      summary: 'The Free plan''s day: how many posts already go out on the UTC day ?at= falls…'
      operationId: getPostsCap
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RailCap'
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "read" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - read
      - oauth:
        - read
      x-scope: read
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
  /api/posts/{id}/approve:
    post:
      summary: 'Approve one proposal: proposed -> scheduled'
      operationId: postPostsIdApprove
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '402':
          description: A plan limit (PlanLimit).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlanLimit'
        '403':
          description: The key is missing the "publish" scope.
        '409':
          description: 'Needs a connected account: {needsConnection, connect: {platform, url, expiresAt}} - hand connect.url to the human.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - publish
      - oauth:
        - publish
      x-scope: publish
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
  /api/posts/{id}/publish:
    post:
      summary: Publish a queued post now
      operationId: postPostsIdPublish
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "publish" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - publish
      - oauth:
        - publish
      x-scope: publish
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
  /api/posts/{id}/mark-posted:
    post:
      summary: Record that you posted it yourself
      operationId: postPostsIdMarkPosted
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "publish" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - publish
      - oauth:
        - publish
      x-scope: publish
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
  /api/posts/{id}/revise:
    post:
      summary: Rework a draft from feedback
      operationId: postPostsIdRevise
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "write" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - write
      - oauth:
        - write
      x-scope: write
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
  /api/posts/{id}/boost:
    post:
      summary: Propose a paid boost of a published Meta post
      operationId: postPostsIdBoost
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "publish" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - publish
      - oauth:
        - publish
      x-scope: publish
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
  /api/posts/{id}/comments:
    get:
      summary: The thread under a published post, with each drafted reply
      operationId: getPostsIdComments
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "read" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - read
      - oauth:
        - read
      x-scope: read
      x-status: live
      tags:
      - Posts
    post:
      summary: Stage your own reply to one comment
      operationId: postPostsIdComments
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "publish" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - publish
      - oauth:
        - publish
      x-scope: publish
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
  /api/posts/resolve:
    post:
      summary: 'Resolve posts: {ids, verb: approve|dismiss}.'
      operationId: postPostsResolve
      responses:
        '200':
          description: OK
        '401':
          description: No credential, or not valid.
        '403':
          description: The key is missing the "publish" scope.
        '429':
          description: Over the key's rate limit (600 requests an hour).
      security:
      - apiKey:
        - publish
      - oauth:
        - publish
      x-scope: publish
      x-status: live
      tags:
      - Posts
    servers:
    - url: https://shapelessai.com
components:
  schemas:
    GetApiPostsIdResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        inspiration:
          type: object
        metrics:
          type: object
    PostApiPostsIdIdRequest:
      type: object
      properties:
        budgetCents:
          type: integer
        days:
          type: integer
        objective:
          type: string
      required:
      - budgetCents
      - days
      - objective
    RailCap:
      type: object
      properties:
        cap:
          type:
          - object
          - 'null'
          description: Null on a paid plan.
          properties:
            limit:
              type: integer
            used:
              type: integer
              description: Posts already going out that UTC day.
            day:
              type: string
              format: date
            resetsAt:
              type: string
              format: date-time
          required:
          - limit
          - used
          - day
          - resetsAt
      required:
      - cap
    PostList:
      type: object
      properties:
        posts:
          type: array
          items:
            $ref: '#/components/schemas/Post'
    PostCreate:
      type: object
      properties:
        connectionId:
          type: string
          description: The target account (GET /api/connections).
        postText:
          type: string
          maxLength: 10000
        mediaKeys:
          type: array
          items:
            type: string
          maxItems: 35
          description: Keys from an upload route; the account's own media only.
        documentTitle:
          type: string
          maxLength: 120
          description: Required on YouTube (the video title).
        scheduledAt:
          type: string
          format: date-time
          description: When it goes out. Omitted or past = publish now.
        queue:
          type: boolean
          enum:
          - true
          description: 'Instead of scheduledAt: the next free slot of the account''s queue.'
        settings:
          type: object
          description: Per-platform knobs; the schema is GET /api/platforms[].settingsSchema.
        firstComment:
          type: string
          maxLength: 1250
          description: Posted as the post's own first reply the moment it is live. LinkedIn (1250), X (280), Bluesky (300).
        audio:
          $ref: '#/components/schemas/ReelAudio'
        inspiration:
          $ref: '#/components/schemas/PostInspiration'
      required:
      - connectionId
      - postText
      additionalProperties: false
    Post:
      type: object
      properties:
        id:
          type: string
        connectionId:
          type:
          - string
          - 'null'
        platform:
          type:
          - string
          - 'null'
        postText:
          type: string
        mediaKeys:
          type: array
          items:
            type: string
        scheduledAt:
          type: string
          format: date-time
        status:
          type: string
          enum:
          - proposed
          - scheduled
          - publishing
          - published
          - handoff
          - failed
          - canceled
        settings:
          type:
          - object
          - 'null'
        firstComment:
          type:
          - string
          - 'null'
        firstCommentUrl:
          type:
          - string
          - 'null'
          description: Where the first comment landed, once it did.
        firstCommentError:
          type:
          - string
          - 'null'
          description: Set when the post published but its first comment did not.
        publishedLocation:
          type:
          - string
          - 'null'
        error:
          type:
          - string
          - 'null'
        handoffNote:
          type:
          - string
          - 'null'
        publishNote:
          type:
          - string
          - 'null'
          description: Set when the post is live but not exactly as sent, with the platform's reason (for example YouTube refused the designed thumbnail until the channel verifies a phone number).
        rationale:
          type:
          - string
          - 'null'
        inspiration:
          anyOf:
          - $ref: '#/components/schemas/PostInspiration'
          - type: 'null'
        metrics:
          type:
          - object
          - 'null'
        cover:
          type:
          - object
          - 'null'
          description: What the feed shows before the video plays. Null without a video.
          properties:
            kind:
              type: string
              enum:
              - designed
              - frame
              - platform
              description: 'designed: our thumbnail is uploaded as the cover (YouTube, LinkedIn, Facebook, Instagram). frame: a frame of the video at atMs (TikTok). platform: the platform picks its own frame.'
            url:
              type: string
              description: The cover image, signed for 48 hours.
            thumbnailKey:
              type:
              - string
              - 'null'
              description: The designed thumbnail's media key.
            atMs:
              type:
              - number
              - 'null'
              description: TikTok's cover frame, in milliseconds.
      required:
      - id
      - postText
      - scheduledAt
      - status
    Upgrade:
      type: object
      description: Links a person clicks to pay. Every 402 carries one.
      properties:
        pricing:
          type: string
          format: uri
        checkout:
          type: array
          items:
            type: object
            properties:
              tier:
                type: string
              name:
                type: string
              priceUsd:
                type: number
              monthlyCreditUsd:
                type: number
              url:
                type: string
                format: uri
            required:
            - tier
            - name
            - priceUsd
            - monthlyCreditUsd
            - url
      required:
      - pricing
      - checkout
    PostCreated:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - scheduled
          - published
          - failed
          - handoff
        scheduledAt:
          type: string
          format: date-time
        publishedLocation:
          type:
          - string
          - 'null'
        error:
          type:
          - string
          - 'null'
        handoffNote:
          type: string
        publishNote:
          type: string
          description: Live, but not exactly as sent, and why.
      required:
      - id
      - status
    PlanLimit:
      type: object
      description: 'A plan limit, refused before anything is scheduled; X''s allowance is checked again when the post goes out, and a post it refuses then fails with these same words. free_daily_cap: Free posts 10 a day (UTC day of the slot). free_x_daily_cap / free_x_link: X bills per post, so Free posts to X 1 a day and without links (a first comment counts). x_monthly_cap: Scheduler carries 150 X posts a month, a post with a link counts 10. Hand pitch and checkout to the human: one click signs in and pays.'
      properties:
        error:
          type: string
        code:
          type: string
          enum:
          - free_daily_cap
          - free_x_daily_cap
          - free_x_link
          - x_monthly_cap
        limit:
          type: integer
        used:
          type: integer
          description: 'X limits only: what the window already holds.'
        day:
          type: string
          format: date
          description: free_daily_cap only.
        resetsAt:
          type: string
          format: date-time
        pitch:
          type: string
          description: 'One sentence: the plan that lifts this limit and what it unlocks.'
        checkout:
          type: string
          format: uri
          description: Opens that plan's checkout (signs in first).
        upgrade:
          $ref: '#/components/schemas/Upgrade'
      required:
      - error
      - code
      - limit
      - resetsAt
      - pitch
      - checkout
      - upgrade
    PostPatch:
      type: object
      properties:
        scheduledAt:
          type: string
          format: date-time
        postText:
          type: string
          maxLength: 10000
        mediaKeys:
          type: array
          items:
            type: string
        settings:
          type: object
        connectionId:
          type: string
          description: Another connected account on the same platform.
        firstComment:
          type:
          - string
          - 'null'
          description: null clears it.
      additionalProperties: false
    ReelAudio:
      type: object
      description: 'Instagram Reels only (one video): a platform sound attached at publish by id. Needs the account connected through Facebook Login.'
      properties:
        audioId:
          type: string
          pattern: ^[0-9]+$
          description: From GET /api/v1/instagram/audio, or a reference reel's audio asset id.
        audioVolume:
          type: integer
          minimum: 1
          maximum: 100
          description: The sound's level; Meta's default 100.
        videoVolume:
          type: integer
          minimum: 1
          maximum: 100
          description: The video's own soundtrack under it; Meta's default 100.
      required:
      - audioId
    PostInspiration:
      type: object
      description: 'What the post was made from: the predicted half of predicted-vs-actual. A malformed one is dropped, never a 400. A post made from a reference carries kind reference-post, the member id from GET /api/v1/references and the mode.'
      properties:
        kind:
          type: string
          enum:
          - format-card
          - topical-story
          - reference-post
          - brand
        id:
          type: string
          maxLength: 200
          description: The source's own id, e.g. platform:post_id for a reference post.
        lane:
          type: string
        title:
          type: string
        url:
          type: string
        mode:
          type: string
          enum:
          - clone
          - format
          - inspiration
        memberId:
          type: string
          description: The reference member it was made from.
      required:
      - kind
      - id
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
    apiKey:
      type: http
      scheme: bearer
      description: slk_... key; scopes read, write, publish.
    oauth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://shapelessai.com/api/auth/mcp/authorize
          tokenUrl: https://shapelessai.com/api/auth/mcp/token
          scopes:
            read: Read anything the account holds.
            write: 'Create and edit: jobs, drafts, agents, Brand Memory.'
            publish: Anything that goes out to a platform, or spends.
            wiki: Write to the wiki at /vizipedia as this account, and nothing else. A key with `write` covers it.
x-refined-from:
- shapelessai-openapi-generated.yml
- shapelessai-openapi.json