SocialBu Media Upload API

Upload media files to your posts. It involves a three-step process: 1. Get a signed URL for direct media upload to SocialBu's storage using `POST /upload_media`. 2. Use the signed_url from Step 1 to upload your actual file (video/image) directly to SocialBu’s storage. 3. Once the file is uploaded, confirm its status using the media key returned in Step 1 via `/upload_media/status`. Now that the media is uploaded and verified, you can attach this file to your post using the upload_token recieved in Step 3.

GitHub OpenAPI

Operations 3

POST /upload_media Initiate media upload #
GET /upload_media/status Check media upload status #
POST /upload_media_by_url Upload media by 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/socialbu-com:socialbu-com-media-upload-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

socialbu-com-media-upload-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Socialbu Com Media Upload API
  version: 1.0.0
  contact:
    email: support@socialbu.com
  termsOfService: https://socialbu.com/about/terms
  description: 'Operations tagged Media Upload across 2 of this provider''s published API definitions: socialbu-com-openapi-openapi.yml, socialbu-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: SocialBu API
  url: https://socialbu.com/api/v1
security:
- bearerAuth: []
tags:
- name: Media Upload
  description: 'Upload media files to your posts.


    It involves a three-step process:

    1. Get a signed URL for direct media upload to SocialBu''s storage using `POST /upload_media`.

    2. Use the signed_url from Step 1 to upload your actual file (video/image) directly to SocialBu’s storage.

    3. Once the file is uploaded, confirm its status using the media key returned in Step 1 via `/upload_media/status`.


    Now that the media is uploaded and verified, you can attach this file to your post using the upload_token recieved in Step 3.'
paths:
  /upload_media:
    post:
      tags:
      - Media Upload
      summary: Initiate media upload
      description: Generate a pre-signed URL to upload a media file.
      operationId: uploadMediaFile
      responses:
        '200':
          description: file uploaded
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                    description: File name e.g, ("document.pdf" ,"image.png")
                  mime_type:
                    type: string
                    description: File type e.g, ("application/pdf" ,"image/png")
                  signed_url:
                    type: string
                    description: "This parameter provides a pre-signed URL to which you should upload your media file using the HTTP PUT method. \n\nTo ensure a successful upload, you must set the following headers in your request:\n- `Content-Type`: Set this header to the MIME type of the file you are uploading (e.g., `image/jpeg`, `video/mp4`). This header informs the server about the type of the media content being uploaded.\n- `Content-Length`: Set this header to be the size of the file being uploaded (bytes).\n- `x-amz-acl`: Set this to `private`.\n"
                  key:
                    type: string
                    description: A unique identifier used to check the upload status.
                  secure_key:
                    type: string
                    description: File secure key.
                  url:
                    type: string
                    description: File public URL.
        '422':
          description: The given data was invalid.
      requestBody:
        description: Send the file name and MIME type to generate a pre-signed URL and key.
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              - mime_type
              properties:
                name:
                  type: string
                  description: File name e.g, ("document.pdf" ,"image.png")
                mime_type:
                  type: string
                  description: File type e.g, ("application/pdf" ,"image/png")
    servers:
    - description: SocialBu API
      url: https://socialbu.com/api/v1
  /upload_media/status:
    get:
      tags:
      - Media Upload
      summary: Check media upload status
      description: Check your media upload status and get upload token.
      operationId: checkMediaStatus
      parameters:
      - name: key
        in: query
        description: The key value returned in /upload_media endpoint.
        schema:
          type: string
      responses:
        '200':
          description: File status
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates whether the file has been uploaded.
                  message:
                    type: string
                    description: A message confirming the media upload.
                  upload_token:
                    type: string
                    nullable: true
                    description: Pass this token value in existing_attachments when creating a post.
        '400':
          description: Bad Request
        '422':
          description: The given data was invalid.
    servers:
    - description: SocialBu API
      url: https://socialbu.com/api/v1
  /upload_media_by_url:
    post:
      tags:
      - Media Upload
      summary: Upload media by URL
      description: 'Upload a media file by providing an HTTP(S) URL or a base64 data URL. The server downloads HTTP(S) URLs and stores data URLs directly, returning an `upload_token` in a single step.


        This is simpler than the three-step signed URL flow — no separate upload or status check is needed. The `upload_token` returned can be used in `existing_attachments` when creating a post, the same as the token from the three-step flow.


        Supported file types: jpg, jpeg, png, gif, webp, mp4, mov, avi, webm, mkv, pdf. The maximum decoded file size is about 56 MiB. Base64 data URL payloads are limited to 75 MiB.'
      operationId: uploadMediaByUrl
      requestBody:
        required: true
        description: HTTP(S) URL or base64 data URL of the media file, with an optional custom filename.
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              properties:
                url:
                  type: string
                  maxLength: 78643264
                  description: HTTP(S) URL to download or a base64 data URL. Base64 payloads are limited to 75 MiB.
                name:
                  type: string
                  maxLength: 255
                  description: Custom filename for the stored file. If not provided, the filename is extracted from the URL.
      responses:
        '200':
          description: File uploaded successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates whether the file was uploaded successfully.
                  message:
                    type: string
                    description: A message confirming the media upload.
                  name:
                    type: string
                    description: File name e.g, ("document.pdf", "image.png")
                  mime_type:
                    type: string
                    description: File MIME type e.g, ("image/jpeg", "video/mp4")
                  size:
                    type: integer
                    description: File size in bytes.
                  key:
                    type: string
                    description: A unique storage key for the uploaded file.
                  upload_token:
                    type: string
                    description: Pass this token value in existing_attachments when creating a post.
                  url:
                    type: string
                    description: Preview URL of the uploaded file.
        '400':
          description: Bad Request. Possible reasons — file too large (about 56 MiB decoded, or 75 MiB base64 payload), unsupported file type, empty file, invalid data URL, download failed, URL not found, or access denied.
        '422':
          description: The given data was invalid. The `url` field is missing or malformed.
        '500':
          description: Internal server error.
    servers:
    - description: SocialBu API
      url: https://socialbu.com/api/v1
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
x-refined-from:
- socialbu-com-openapi-openapi.yml
- socialbu-com-openapi.yml