SocialRobot Media API

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

GitHub OpenAPI

Operations 2

POST /media/upload-url Get presigned URL for media upload #
POST /media/from-url Ingest media from a public URL #

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

socialrobot-io-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SocialRobot.io Scheduler Media API
  description: 'Access our API to efficiently schedule and manage your social media posts across multiple platforms.


    ## API versioning


    - **Current version:** `v1` (URL path prefix `/api/v1/`).

    - **Canonical base URL:** `https://socialrobot.io/api/v1`

    - **Legacy alias:** `/api/` (same routes, no version prefix) remains supported for existing integrations.

    - **Deprecation:** Breaking changes ship only in a new major path (for example `/api/v2`). When a route is deprecated, responses may include `Deprecation: true` and `Sunset` (HTTP-date) headers before removal.


    HTTP API consumers should authenticate with an API key in the `x-api-key` header.


    MCP consumers should connect to /api/mcp and use OAuth discovery from /.well-known/oauth-protected-resource, /.well-known/oauth-authorization-server, and /.well-known/openid-configuration. The issuer remains /api/auth. Dynamic client registration is available at /api/auth/oauth2/register when enabled.


    Additional machine-readable docs are available at /api/llm.txt.


    For detailed documentation and to utilize the assistant, click the link below:


    Go to Assistant'
  version: 1.0.0
servers:
- url: https://socialrobot.io/api/v1
tags:
- name: Media
paths:
  /media/upload-url:
    post:
      operationId: media-getUploadUrl
      summary: Get presigned URL for media upload
      description: Get a presigned URL to upload media files to storage. Returns upload URL and permanent file URL.
      tags:
      - Media
      security:
      - apiKey: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filename:
                  type: string
                  description: The original filename including extension
                contentType:
                  type: string
                  description: The MIME type that will be uploaded
              required:
              - filename
              - contentType
      responses:
        '200':
          description: Upload URL generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  presignedUrl:
                    type: string
                    description: The presigned URL for the media
                  key:
                    type: string
                    description: The storage key for the uploaded media
                  url:
                    type: string
                    description: The public URL for the uploaded media
                  uploadMethod:
                    type: string
                    const: PUT
                    description: The HTTP method used for upload
                  contentType:
                    type: string
                    description: Send exactly this Content-Type header with the PUT; it is part of the signature and comes from the file extension
                required:
                - presignedUrl
                - key
                - url
                - uploadMethod
                - contentType
                additionalProperties: false
        '400':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
  /media/from-url:
    post:
      operationId: media-uploadFromUrl
      summary: Ingest media from a public URL
      description: Fallback when the caller cannot PUT to a presigned URL. SocialRobot fetches a public https image/video URL, or a ChatGPT client-injected file.download_url, and stores it. Do not send file://, workspace paths, or placeholder hosts such as example.com. Prefer POST /media/upload-url plus PUT when the client can upload itself. Max 50MB.
      tags:
      - Media
      security:
      - apiKey: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sourceUrl:
                  description: Public https URL that already serves this image or video. Do not invent a URL, and do not use example.com. Do not pass file:// or workspace paths. Use only when you cannot PUT to the presigned URL from get_media_upload_url.
                  type: string
                file:
                  description: Leave unset. The ChatGPT client fills this when the user attaches a file. Do not build download_url from a local path. If you have the bytes, call get_media_upload_url and PUT them.
                  anyOf:
                  - type: object
                    properties:
                      download_url:
                        type: string
                        description: https URL injected by the ChatGPT client. Do not set this yourself. Never pass file://, blob:, /workspace, or any path on your machine.
                      file_id:
                        type: string
                        description: Stable ChatGPT file id
                      mime_type:
                        description: MIME type when ChatGPT provides one
                        type: string
                      file_name:
                        description: Original filename when ChatGPT provides one
                        type: string
                    required:
                    - download_url
                    - file_id
                  - minItems: 1
                    type: array
                    items:
                      type: object
                      properties:
                        download_url:
                          type: string
                          description: https URL injected by the ChatGPT client. Do not set this yourself. Never pass file://, blob:, /workspace, or any path on your machine.
                        file_id:
                          type: string
                          description: Stable ChatGPT file id
                        mime_type:
                          description: MIME type when ChatGPT provides one
                          type: string
                        file_name:
                          description: Original filename when ChatGPT provides one
                          type: string
                      required:
                      - download_url
                      - file_id
                filename:
                  description: Original filename including extension, if the source URL has none
                  type: string
                contentType:
                  description: MIME type hint when the source does not send one
                  type: string
      responses:
        '200':
          description: Media stored successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  key:
                    type: string
                    description: The storage key for the uploaded media
                  url:
                    type: string
                    description: The public URL to pass into create_post
                  contentType:
                    type: string
                    description: The stored MIME type
                required:
                - key
                - url
                - contentType
                additionalProperties: false
        '400':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.BAD_REQUEST'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.UNAUTHORIZED'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error.INTERNAL_SERVER_ERROR'
components:
  schemas:
    error.UNAUTHORIZED:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Unauthorized - Invalid or missing API key
        code:
          type: string
          description: The error code
          example: UNAUTHORIZED
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
            - message
            additionalProperties: false
      required:
      - message
      - code
      additionalProperties: false
      title: Unauthorized - Invalid or missing API key error (401)
      description: The error information
      example:
        code: UNAUTHORIZED
        message: Unauthorized - Invalid or missing API key
        issues: []
    error.INTERNAL_SERVER_ERROR:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Internal server error
        code:
          type: string
          description: The error code
          example: INTERNAL_SERVER_ERROR
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
            - message
            additionalProperties: false
      required:
      - message
      - code
      additionalProperties: false
      title: Internal server error error (500)
      description: The error information
      example:
        code: INTERNAL_SERVER_ERROR
        message: Internal server error
        issues: []
    error.BAD_REQUEST:
      type: object
      properties:
        message:
          type: string
          description: The error message
          example: Invalid request data
        code:
          type: string
          description: The error code
          example: BAD_REQUEST
        issues:
          description: An array of issues that were responsible for the error
          example: []
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
            - message
            additionalProperties: false
      required:
      - message
      - code
      additionalProperties: false
      title: Invalid request data error (400)
      description: The error information
      example:
        code: BAD_REQUEST
        message: Invalid request data
        issues: []
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key authentication