Sprkly Media API

The Media API from Sprkly — 3 operation(s) for media.

GitHub OpenAPI

Operations 3

POST /api/v1/media Upload media #
POST /api/v1/media/upload Upload media (alias of POST /api/v1/media) #
POST /api/v1/media/from-url Add media from a public link #

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-media-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-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: sprkly Media 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: Media
paths:
  /api/v1/media:
    post:
      summary: Upload media
      description: 'Multipart upload (field file, 50 MB max). Returns a mediaId (scope: media:write).'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
              required:
              - file
      responses:
        '200':
          description: 'The same file was already stored: its mediaId, isDuplicate true'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaResponse'
        '201':
          description: Stored
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaResponse'
        '400':
          description: Missing file, wrong type or too large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Media
      operationId: postApiV1Media
      x-operation-id-source: derived
  /api/v1/media/upload:
    post:
      summary: Upload media (alias of POST /api/v1/media)
      description: 'The same multipart upload as POST /api/v1/media (scope: media:write).'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
              required:
              - file
      responses:
        '200':
          description: 'The same file was already stored: its mediaId, isDuplicate true'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaResponse'
        '201':
          description: Stored
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaResponse'
        '400':
          description: Missing file, wrong type or too large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Media
      operationId: postApiV1MediaUpload
      x-operation-id-source: derived
  /api/v1/media/from-url:
    post:
      summary: Add media from a public link
      description: 'sprkly downloads the URL server-side and returns a mediaId (scope: media:write). Required for TikTok and YouTube video, which cannot publish from an external URL.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              properties:
                url:
                  type: string
                  format: uri
      responses:
        '200':
          description: The same file was already stored
        '201':
          description: Stored
        '422':
          description: The URL could not be used (not a file, too large, unsupported type)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Media
      operationId: postApiV1MediaFromUrl
      x-operation-id-source: derived
components:
  schemas:
    MediaResponse:
      type: object
      properties:
        success:
          type: boolean
        mediaId:
          type: string
        url:
          type: string
          format: uri
        isDuplicate:
          type: boolean
    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.
  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.'