xpost API

xpost API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-29); not the provider's own document.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 10

POST /api/v1/media postMediaForm(form) → parsed JSON from multipart POST /api/v1/media #
GET /api/v1/post-results Check the delivery receipt #
POST /api/v1/posts Make the first post #
GET /api/v1/social-accounts Which accounts can I post to? #
POST /api/v1/social-accounts POST /api/v1/social-accounts #
POST /media Upload media #
POST /posts Create a post #
PATCH /posts/{id} Change a post that hasn't gone out #
POST /posts/{id}/takedown Remove a published post from every platform it is live on #
POST /your/endpoint Webhook endpoint receives events #

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/xpost-to:xpost-to-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

xpost-to-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: xpost API
  version: '2026-11-29'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-29: 10 operation(s) read from 11 public documentation page(s) (each
    operation names its page in x-source). This is not the provider''s published contract; xpost has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 9
    pages-with-code: 4
    pages-read: 11
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-29'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://xpost.to/docs/api
  - https://dev.xpost.to/docs/api
  - https://xpost.to/docs
  - https://xpost.to/docs/skill
  - https://dev.xpost.to/docs/skill
  - https://xpost.to/api/v1/openapi.json
  - https://dev.xpost.to/docs
  - https://xpost.to/docs/mcp/create-post
  - https://xpost.to/docs/dist/tools.mjs
  - https://dev.xpost.to/docs/mcp/create-post
  - https://dev.xpost.to/docs/dist/tools.mjs
servers:
- url: https://xpost.to
paths:
  /api/v1/media:
    post:
      operationId: post_api_v1_media
      tags:
      - Api
      summary: postMediaForm(form) → parsed JSON from multipart POST /api/v1/media
      x-source: https://xpost.to/docs/dist/tools.mjs
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/post-results:
    get:
      operationId: get_api_v1_post_results
      tags:
      - Api
      summary: Check the delivery receipt
      x-source: https://xpost.to/docs
      parameters:
      - name: post_id
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/posts:
    post:
      operationId: post_api_v1_posts
      tags:
      - Api
      summary: Make the first post
      x-source: https://xpost.to/docs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1PostsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1PostsResponse'
      x-evidence:
        kind: documentation
  /api/v1/social-accounts:
    get:
      operationId: get_api_v1_social_accounts
      tags:
      - Api
      summary: Which accounts can I post to?
      x-source: https://xpost.to/docs
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_v1_social_accounts
      tags:
      - Api
      summary: POST /api/v1/social-accounts
      x-source: https://xpost.to/docs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1SocialAccountsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -s https://xpost.to/api/v1/social-accounts  -H \"Authorization: Bearer xp_live_YOUR_KEY\" copy 4  ·  Make the first post\
          \ curl -s -X POST https://xpost.to/api/v1/posts  -H \"Authorization: Bearer xp_live_YOUR_KEY\"  -H \"Content-Type: application/json\"\
          \  -d '{\"caption\": \"Hello from my agent \U0001F916\",\n \"social_accounts\": [\"<account-uuid>\"]}' copy With no time on it, the\
          \ post goes out now: 201 {\n \"status\": "
  /media:
    post:
      operationId: post_media
      tags:
      - Media
      summary: Upload media
      description: 'Attach an image, video or PDF for a post. Three shapes: JSON `{url}` (the server fetches a public https URL — also how an
        MCP host''s attachment arrives, through its temporary download url), JSON `{ticket}` (redeems an upload slot from `POST /media/ticket`),
        or multipart form-data with a `file` field. ≤100 MB. Optional: a video''s cover is `thumbnail_timestamp_ms` (a frame) or `cover_media_id`
        (the id of a picture already uploaded, used in place of a frame — one or the other); `alt_text` (≤1000 chars) sets an image''s accessibility
        text (applied natively on X and Bluesky); `people_tags` tags people in a picture (see the field — Instagram only, and every handle is
        checked before the file is stored). Returns `{id, kind}` — pass `id` in create_post `media_ids`. A PDF (`kind: "document"`) is a LinkedIn
        document post: one per post, attached on its own, and only to a LinkedIn account.'
      x-source: https://xpost.to/api/v1/openapi.json
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostMediaRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostMediaResponse'
      x-evidence:
        kind: documentation
  /posts:
    post:
      operationId: post_posts
      tags:
      - Posts
      summary: Create a post
      description: 'Create a post targeting one or more connected accounts. Guardrails run on ALL outbound text (caption, per‑platform overrides,
        the X and Bluesky thread, the X and Instagram first comment) — a block returns 422 with the violations, never a silent drop. **Creating
        a post sends it**: `scheduled` is the ordinary answer and the post goes out at its time. In copilot mode it is held for human approval
        instead, and a `pending_approval` response is the system working, not an error. Either way the response carries a signed, no‑login link
        to the post — `preview_url`, or `approval_url` on a hold — meant to be handed to the person. Omit `scheduled_at` to publish as soon as
        it''s created (or approved). Instagram, TikTok, YouTube, and Pinterest require media; YouTube requires a video. `caption` may be omitted
        when no destination insists on one: a story (`placement: "stories"`) prints no caption, so text sent with one is dropped, and X, Instagram
        and LinkedIn all publish media with no words.'
      x-source: https://xpost.to/api/v1/openapi.json
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostPostsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostPostsResponse'
      x-evidence:
        kind: documentation
  /posts/{id}:
    patch:
      operationId: patch_posts_id
      tags:
      - Posts
      summary: Change a post that hasn't gone out
      description: 'Caption, attachments, time, per‑platform options — anything omitted is kept. It takes the composer''s own edit path: a new
        post supersedes the old one, so guardrails, caps and the signature all run again on the words that will actually be published (and the
        response carries the NEW id). Any post in the project that hasn''t gone out — `pending_approval` / `draft` / `scheduled` / `rejected`,
        whoever wrote it. **An agent''s edit of a post a human approved (or rejected) goes back into the queue**, because the approval was for
        the old words. A post that has already been tried can''t be edited: retry the delivery that failed instead.'
      x-source: https://xpost.to/api/v1/openapi.json
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchPostsIdRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatchPostsIdResponse'
      x-evidence:
        kind: documentation
  /posts/{id}/takedown:
    post:
      operationId: post_posts_id_takedown
      tags:
      - Posts
      summary: Remove a published post from every platform it is live on
      description: 'Takes a whole POST down: every delivery of it that is live right now, or only the ones on `platform`. Same effect and the
        same care as `/post-results/{id}/takedown` — no undo, receipt rows stay, the actor is recorded — without fetching the receipt first to
        learn a delivery id. One platform refusing does not stop the others: each delivery answers for itself in `deliveries`, with `error_code`
        and `retriable` where it was refused.'
      x-source: https://xpost.to/api/v1/openapi.json
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostPostsIdTakedownRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostPostsIdTakedownResponse'
      x-evidence:
        kind: documentation
  /your/endpoint:
    post:
      operationId: post_your_endpoint
      tags:
      - Your
      summary: Webhook endpoint receives events
      x-source: https://dev.xpost.to/docs/api
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiV1PostsRequest:
      type: object
      properties:
        caption:
          type: string
        social_accounts:
          type: array
          description: Array of account UUID strings
      required:
      - caption
      - social_accounts
    PostApiV1PostsResponse:
      type: object
      properties:
        status:
          type: string
        publishes:
          type: string
        preview_url:
          type: string
        message:
          type: string
    PostApiV1SocialAccountsRequest:
      type: object
      properties:
        caption:
          type: string
        social_accounts:
          type: array
          items:
            type: string
    PostMediaRequest:
      type: object
      properties:
        url:
          type: string
          description: Public https URL to fetch
        ticket:
          type: string
          description: Redeems an upload slot from POST /media/ticket
        file:
          type: string
          description: Multipart form-data file field
        thumbnail_timestamp_ms:
          type: integer
          description: Video frame timestamp
        cover_media_id:
          type: string
          description: ID of an already‑uploaded picture to use as cover
        alt_text:
          type: string
          description: Accessibility text (≤1000 chars)
        people_tags:
          type: array
          description: Instagram‑only tags for people in the picture
    PostMediaResponse:
      type: object
      properties:
        id:
          type: string
          description: Media identifier (UUID)
        kind:
          type: string
          description: Media type (e.g., "image", "video", "document")
    PostPostsRequest:
      type: object
      properties:
        caption:
          type: string
          description: Required for every destination that prints one — omit it only on a story‑only post
        social_accounts:
          type: array
          description: 'Where it posts: an account id, `platform:username`, or a bare username'
        media_ids:
          type: array
          description: From POST /media; order = carousel order, first item leads
        upload_ticket:
          type: string
          description: Ticket from POST /media/ticket that files have been posted to
        media_pending:
          type: boolean
          description: The picture is still to come
        scheduled_at:
          type: string
          description: ISO‑8601 with Z or offset; or `next_slot`
        is_draft:
          type: boolean
          description: Create as draft
        platform_configurations:
          type: object
          description: Per‑platform options
        idempotency_key:
          type: string
          description: Your own identifier for this post
      required:
      - social_accounts
    PostPostsResponse:
      type: object
      properties:
        id:
          type: string
          description: Post UUID
        status:
          type: string
          description: post status (e.g., pending_approval, scheduled)
        preview_url:
          type: string
          description: Signed preview link when no approval needed
        approval_url:
          type: string
          description: Signed approval link when held
    PatchPostsIdRequest:
      type: object
      properties:
        caption:
          type: string
          description: New caption (max 10000 chars)
        media_ids:
          type: array
          description: Replace media list with these IDs
        upload_ticket:
          type: string
          description: Ticket from POST /media/ticket to attach files
        add_media_ids:
          type: array
          description: Append these media IDs
        scheduled_at:
          type: string
          description: New scheduled time (ISO‑8601) or null
    PatchPostsIdResponse:
      type: object
      properties:
        id:
          type: string
          description: New post UUID
        status:
          type: string
          description: Post status after edit
    PostPostsIdTakedownRequest:
      type: object
      properties:
        platform:
          type: string
          description: Only take it down here (e.g. `x`). Omit for every platform it is live on.
    PostPostsIdTakedownResponse:
      type: object
      properties:
        post_id:
          type: string
          description: UUID of the post
        taken_down:
          type: integer
          description: How many deliveries came down
        deliveries:
          type: array
          description: Result per delivery
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Media
- name: Posts
- name: Your