Sprkly Publish API

The Publish API from Sprkly — 1 operation(s) for publish.

GitHub OpenAPI

Operations 1

POST /api/v1/publish Create a post for the next publisher run #

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/sprkly-app:sprkly-app-publish-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

sprkly-app-publish-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: sprkly Publish API
  version: 1.0.0
  description: 'Schedule and publish social media posts (Instagram, TikTok, YouTube Shorts, Threads, Facebook, Bluesky, X, LinkedIn, Telegram) programmatically. Authenticate with a Bearer API key created in Settings. API requests a month: Free 3,000, Creator and Brand 7,500, Pro 15,000, Agency 30,000 (MCP calls do not count; MCP has no monthly limit); requests a minute: Free 20, every paid plan 60. Over either limit the API answers 429 with code rate_limited or monthly_quota_exceeded, a Retry-After header, and X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (monthly) and X-RateLimit-Burst (per minute). Every error body is { error, code }.'
  contact:
    email: support@sprkly.app
    url: https://sprkly.app/docs/api
servers:
- url: https://sprkly.app
security:
- apiKey: []
tags:
- name: Publish
paths:
  /api/v1/publish:
    post:
      summary: Create a post for the next publisher run
      description: 'Same body as POST /api/v1/posts. Without scheduledTime it goes out on the next publisher run, about a minute later (scope: post:write).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePostRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePostResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Scope, plan or account limit refused
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: duplicate_external_id or duplicate content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit or monthly quota reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Publish
      operationId: postApiV1Publish
      x-operation-id-source: derived
components:
  schemas:
    CreatePostRequest:
      type: object
      description: 'Send platforms, profileIds, or both. profileIds alone is enough: the accounts name the platforms.'
      properties:
        platforms:
          type: array
          items:
            type: string
            enum:
            - instagram
            - tiktok
            - youtube
            - threads
            - facebook
            - bluesky
            - x
            - linkedin
            - telegram
        profileIds:
          type: array
          items:
            type: string
          description: Connected account IDs from GET /api/v1/connections.
        caption:
          type: string
        title:
          type: string
          description: Required for YouTube and TikTok.
        mediaUrls:
          type: array
          items:
            type: string
            format: uri
          description: 'Publicly reachable URLs, in slide order. Usable for every platform: Instagram and Threads fetch them directly, and for TikTok, YouTube and Facebook sprkly downloads the file into its own storage during this request, so a bad link is a 422 here rather than a publish-time failure later. Google Drive and Dropbox share links are converted automatically. 50 MB per file. Use mediaIds instead when the file is already in sprkly or is going on several posts.'
        mediaId:
          type: string
          description: A single id returned from POST /api/v1/media. Shorthand for a one-item mediaIds.
        mediaIds:
          type: array
          items:
            type: string
          description: Ids from POST /api/v1/media, in slide order. This is the carousel and photo-set path. Array order is the published order. Instagram takes at most 20 slides; TikTok photo sets take up to 35 and every image must be the same pixel size (mismatches are padded automatically).
        scheduledTime:
          type: string
          format: date-time
          description: ISO-8601. Omit to publish as soon as possible.
        externalId:
          type: string
          description: Caller-supplied idempotency key. A repeat answers 409 duplicate_external_id instead of a second post.
        requiresApproval:
          type: boolean
          description: Hold the post as pending_approval until the owner approves it. A plan without approvals is refused with upgrade_required.
        postType:
          type: string
          description: What the post is for. Optional label.
        platformMeta:
          type: object
          additionalProperties: true
    Error:
      type: object
      required:
      - error
      - code
      properties:
        error:
          type: string
          description: A sentence for a human.
        code:
          type: string
          description: A stable machine code, for example invalid_api_key, post_not_found, post_failed.
        details:
          type: object
          additionalProperties: true
          description: Optional context, such as sizes or a slide index.
    CreatePostResponse:
      type: object
      properties:
        postIds:
          type: array
          items:
            type: string
          description: One post per account.
        status:
          type: string
          enum:
          - scheduled
          - pending_approval
        approvalIds:
          type: array
          items:
            type: string
          description: Only when requiresApproval was true.
        scheduledTime:
          type: string
          format: date-time
        media:
          type: object
          additionalProperties: true
          description: willPublishAs, plus sizes and advisories when there are any.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'sprkly API key created in Settings, sent as `Authorization: Bearer <key>`. Scopes: post:write, post:read, media:write, account:read, automation:read, automation:write. inbox:read and inbox:write are for the MCP inbox tools and are only on keys made with inbox access ticked.'