Ravenpost Media API

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

GitHub OpenAPI

Operations 4

GET /v1/media The workspace media library #
POST /v1/media Step 2 of an upload: register the uploaded object as an asset #
POST /v1/media/uploads Step 1 of an upload: get a presigned PUT URL #
POST /v1/media/{id}/variants Reshape one image into several platform canvases in a single call #

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/ravenpo-st:ravenpo-st-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

ravenpo-st-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ravenpost Media API
  version: 1.0.0
  description: Schedule and publish social posts across Instagram, TikTok, X, Telegram, LinkedIn, Threads, Bluesky, Discord, Mastodon, YouTube, Pinterest, DEV and Hashnode. Every endpoint delegates to the same service the Ravenpost dashboard uses. Authenticate with a personal access token from Settings → API tokens; the token carries one workspace, which is why no route takes a workspace id.
  contact:
    name: Ravenpost support
    email: support@ravenpo.st
servers:
- url: https://api.ravenpo.st
security:
- bearerAuth: []
tags:
- name: Media
paths:
  /v1/media:
    get:
      summary: The workspace media library
      tags:
      - Media
      operationId: getMedia
      parameters:
      - name: folderId
        in: query
        required: false
        description: Limit to one folder.
        schema:
          type: string
      responses:
        '200':
          description: Success
        '401':
          description: Missing, malformed or revoked token
        '429':
          description: Rate limited (120 requests/minute)
    post:
      summary: 'Step 2 of an upload: register the uploaded object as an asset'
      description: Returns the asset `id` to put in `mediaIds`.
      tags:
      - Media
      operationId: postMedia
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  description: Asset kind.
                storageKey:
                  type: string
                  description: From the presign response.
                url:
                  type: string
                  description: The `publicUrl` from the presign response, unchanged — any other address is refused.
                mimeType:
                  type: string
                  description: Recorded for the per-platform compatibility check.
                width:
                  type: number
                  description: Pixels.
                height:
                  type: number
                  description: Pixels.
                durationSec:
                  type: number
                  description: Video length.
                sizeBytes:
                  type: number
                  description: File size, checked against each platform’s cap.
              required:
              - type
              - storageKey
              - url
              additionalProperties: true
      responses:
        '200':
          description: Success
        '401':
          description: Missing, malformed or revoked token
        '429':
          description: Rate limited (120 requests/minute)
  /v1/media/uploads:
    post:
      summary: 'Step 1 of an upload: get a presigned PUT URL'
      description: The client sends the bytes straight to object storage, so a large video never travels through the API — and never has to be base64-encoded into a request. PUT them to `uploadUrl` within ten minutes, with the same `Content-Type` as `contentType`, then register them with POST /v1/media.
      tags:
      - Media
      operationId: postMediaUploads
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filename:
                  type: string
                  description: Original filename, used for a readable storage key.
                contentType:
                  type: string
                  description: 'MIME type of the bytes you are about to PUT: an image (JPEG, PNG, WebP, GIF, HEIC, AVIF) or a video (MP4, MOV, WebM). Anything else is refused.'
              required:
              - filename
              - contentType
              additionalProperties: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                uploadUrl: https://...
                storageKey: '...'
                publicUrl: https://cdn...
        '401':
          description: Missing, malformed or revoked token
        '429':
          description: Rate limited (60 requests/minute)
  /v1/media/{id}/variants:
    post:
      summary: Reshape one image into several platform canvases in a single call
      description: 'Cropping is saliency-based by default — an off-centre subject survives a 4:5 → 9:16 cut, where a centre crop would keep the wall behind them. Pass `crop: "centre"` for posters, screenshots and flat graphics composed around their middle. Two formats with the same dimensions produce one file, not two, and each variant inherits the source’s alt text and folder. Images only.'
      tags:
      - Media
      operationId: postMediaIdVariants
      parameters:
      - name: id
        in: path
        required: true
        description: Source image asset id.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                formats:
                  type: array
                  items:
                    type: string
                  description: 'Canvases to produce: 1080×1350 (4:5), 1080×1080 (1:1), 1080×566 (1.91:1), 1080×1920 (9:16 — also reels and TikTok photos).'
                fit:
                  type: string
                  description: '''cover'' crops to fill (default); ''contain'' pads so nothing is cut off.'
                crop:
                  type: string
                  description: '''smart'' is saliency-based and the default; ''centre'' is the predictable middle crop.'
              required:
              - formats
              additionalProperties: true
            example:
              formats:
              - feed_portrait
              - story
              - landscape
              crop: smart
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                sourceId: med_b2
                variants:
                - id: med_c1
                  url: https://cdn...
                  format: feed_portrait
                  width: 1080
                  height: 1350
                - id: med_c2
                  url: https://cdn...
                  format: story
                  width: 1080
                  height: 1920
        '401':
          description: Missing, malformed or revoked token
        '429':
          description: Rate limited (30 requests/minute)
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: rvp_…