Socialync Media API

The Media API from Socialync — 2 operation(s) for media.

GitHub OpenAPI

Operations 2

POST /media Get presigned upload URLs #
POST /media/{id}/finalize Finish an upload and get its mediaId #

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/socialync-io:socialync-io-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

socialync-io-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Socialync Media API
  version: 1.0.0
  summary: Publish, schedule and read social posts from your own code.
  description: 'The same publishing engine as the Socialync MCP server, over plain JSON. Your API key is the one from https://www.socialync.io/api-keys. Rate limit: 60 requests per minute per key (429 with Retry-After). List endpoints return 20 items by default and at most 100. Browsers cannot call this API (no CORS headers). Keep keys on servers and in CI secrets.'
servers:
- url: https://mcp.socialync.io/v1
security:
- bearerAuth: []
tags:
- name: Media
paths:
  /media:
    post:
      operationId: createMediaUpload
      summary: Get presigned upload URLs
      description: One batch is up to 10 images (a carousel, in order) or exactly one video. PUT each file to its uploadUrl with the Content-Type shown, then call POST /v1/media/{id}/finalize. Unattached uploads are removed after about 12 hours.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MediaCreate'
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: 'A unique string (1 to 255 characters: letters, digits, _ . : -). Repeating a request with the same key and the same body returns the first response instead of doing the work again, for 24 hours. The same key with a different body is 422 idempotency_key_reuse. A refused request (4xx) frees the key, so it can be corrected and retried with the same key. A request that ends in 500 or 504 may still have completed, so the key keeps returning that answer: check GET /v1/posts, then use a new key. If a request started and its result could not be recorded, the key answers 409 idempotency_outcome_unknown until it expires and the request is not run again with it.'
        schema:
          type: string
          pattern: ^[A-Za-z0-9_.:-]{1,255}$
      responses:
        '201':
          description: Upload URLs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaUpload'
        '400':
          description: The request is not valid. error.code is invalid_request, invalid_json or payload_too_large.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, malformed or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The plan or the API key does not allow this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The request is well formed but the post cannot be made as asked. error.message says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: A cap or rate limit was reached. Retry-After says how many seconds to wait.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Media
  /media/{id}/finalize:
    post:
      operationId: finalizeMediaUpload
      summary: Finish an upload and get its mediaId
      parameters:
      - name: id
        in: path
        required: true
        description: The id from POST /v1/media. "upload:" in front is accepted.
        schema:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,128}$
      - name: Idempotency-Key
        in: header
        required: false
        description: 'A unique string (1 to 255 characters: letters, digits, _ . : -). Repeating a request with the same key and the same body returns the first response instead of doing the work again, for 24 hours. The same key with a different body is 422 idempotency_key_reuse. A refused request (4xx) frees the key, so it can be corrected and retried with the same key. A request that ends in 500 or 504 may still have completed, so the key keeps returning that answer: check GET /v1/posts, then use a new key. If a request started and its result could not be recorded, the key answers 409 idempotency_outcome_unknown until it expires and the request is not run again with it.'
        schema:
          type: string
          pattern: ^[A-Za-z0-9_.:-]{1,255}$
      responses:
        '200':
          description: The media.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaFinalized'
        '401':
          description: Missing, malformed or revoked API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The plan or the API key does not allow this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such resource on a profile this key can use.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The request is well formed but the post cannot be made as asked. error.message says why.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: A cap or rate limit was reached. Retry-After says how many seconds to wait.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Media
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - docs
          properties:
            code:
              type: string
              description: Stable. Switch on this. The message can change.
            message:
              type: string
              description: For people. May change.
            docs:
              type: string
              format: uri
            details:
              description: 'Extra structure for some errors: validation issues, per platform results, skipped entries.'
    MediaFinalized:
      type: object
      required:
      - id
      - mediaId
      - mediaType
      properties:
        id:
          type: string
        mediaId:
          type: string
          description: Pass this as mediaId on POST /v1/posts, like "upload:abc123".
        mediaType:
          type: string
          enum:
          - image
          - video
        fileCount:
          type: integer
        totalSizeMB:
          type: number
    MediaCreate:
      type: object
      properties:
        files:
          type: array
          items:
            type: object
            properties:
              fileName:
                type: string
                minLength: 1
                maxLength: 255
              contentType:
                type: string
                minLength: 1
                maxLength: 100
              sizeBytes:
                type: integer
                exclusiveMinimum: 0
            required:
            - fileName
            - contentType
            additionalProperties: false
          minItems: 1
          maxItems: 10
      required:
      - files
      additionalProperties: false
    MediaUpload:
      type: object
      required:
      - id
      - mediaType
      - files
      properties:
        id:
          type: string
          description: The upload id. Pass it to POST /v1/media/{id}/finalize after the PUTs.
        mediaType:
          type: string
          enum:
          - image
          - video
        expiresAt:
          type: string
          format: date-time
          description: The upload URLs stop working at this time (one hour).
        files:
          type: array
          items:
            type: object
            required:
            - index
            - method
            - uploadUrl
            - contentType
            properties:
              index:
                type: integer
              fileName:
                type: string
              contentType:
                type: string
                description: Send this exact value as the Content-Type header of the PUT.
              method:
                type: string
                enum:
                - PUT
              uploadUrl:
                type: string
                format: uri
                description: PUT the raw bytes here. No Authorization header.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Authorization: Bearer sk_live_... An API key from the API keys page. OAuth tokens are not accepted here.'