PostQuest Media API

Upload and manage reusable workspace media.

GitHub OpenAPI

Operations 3

GET /media List reusable media #
POST /media Upload media #
DELETE /media/{media} Delete unused media #

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/post-quest-com:post-quest-com-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

post-quest-com-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Post Quest Com Media API
  version: 1.0.0
  contact:
    name: PostQuest Support
    email: support@post-quest.com
  license:
    name: Proprietary
  description: 'Operations tagged Media across 2 of this provider''s published API definitions: openapi.yaml, post-quest-com-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.post-quest.com/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: Media
  description: Upload and manage reusable workspace media.
paths:
  /media:
    get:
      tags:
      - Media
      operationId: listMedia
      summary: List reusable media
      description: Requires `media:read`. Returned signed URLs expire after five minutes.
      parameters:
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Offset'
      responses:
        '200':
          description: Offset-paginated media.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/BillingRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    post:
      tags:
      - Media
      operationId: createMedia
      summary: Upload media
      description: 'Requires `media:write`. Supply exactly one multipart file, public HTTPS

        URL, or base64 value. URL redirects, credentials, non-standard ports,

        IP literals, and private destinations are rejected. Decoded base64 is

        limited to 3 MiB; all other uploads use the workspace transfer policy.'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              properties:
                file:
                  type: string
                  format: binary
          application/json:
            schema:
              oneOf:
              - $ref: '#/components/schemas/MediaUrlInput'
              - $ref: '#/components/schemas/MediaBase64Input'
      responses:
        '201':
          description: Media saved to the workspace library.
          headers:
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/BillingRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.post-quest.com/v1
      description: Production
  /media/{media}:
    delete:
      tags:
      - Media
      operationId: deleteMedia
      summary: Delete unused media
      description: Requires `media:write`. Media attached to a post returns `409 media_in_use`.
      parameters:
      - $ref: '#/components/parameters/MediaId'
      responses:
        '200':
          description: Media deleted.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - deleted
                - media_id
                properties:
                  deleted:
                    type: boolean
                    const: true
                  media_id:
                    type: string
                    format: uuid
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/BillingRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/ServerError'
    servers:
    - url: https://api.post-quest.com/v1
      description: Production
components:
  schemas:
    Error:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
        message:
          type: string
    Media:
      type: object
      required:
      - id
      - filename
      - original_filename
      - mime_type
      - category
      - type
      - byte_size
      - size_mb
      - dimensions
      - width
      - height
      - duration_seconds
      - thumbnail_url
      - preview_url
      - original_url
      - url
      - conversion_state
      - has_poster
      - collection
      - is_metered
      - original_removed
      - original_expires_at
      - usage_count
      - metadata_status
      - created_at
      - urls_expire_at
      - retention
      properties:
        id:
          type: string
          format: uuid
        filename:
          type: string
        original_filename:
          type: string
        mime_type:
          type:
          - string
          - 'null'
        category:
          type: string
        type:
          type: string
        byte_size:
          type: integer
          minimum: 1
        size_mb:
          type: number
        dimensions:
          type: object
          required:
          - width
          - height
          properties:
            width:
              type:
              - integer
              - 'null'
            height:
              type:
              - integer
              - 'null'
        width:
          type:
          - integer
          - 'null'
        height:
          type:
          - integer
          - 'null'
        duration_seconds:
          type:
          - number
          - 'null'
        thumbnail_url:
          type:
          - string
          - 'null'
          format: uri
        preview_url:
          type:
          - string
          - 'null'
          format: uri
        original_url:
          type:
          - string
          - 'null'
          format: uri
        url:
          type:
          - string
          - 'null'
          format: uri
        conversion_state:
          type: string
          enum:
          - ready
          - pending
          - not_applicable
        has_poster:
          type: boolean
        collection:
          type: string
        is_metered:
          type: boolean
        original_removed:
          type: boolean
        original_expires_at:
          type:
          - string
          - 'null'
          format: date-time
        usage_count:
          type: integer
          minimum: 0
        metadata_status:
          type: string
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        urls_expire_at:
          type: string
          format: date-time
        retention:
          type: string
    ValidationIssue:
      type: object
      required:
      - platform
      - field
      - code
      - message
      - blocking
      properties:
        platform:
          oneOf:
          - $ref: '#/components/schemas/Platform'
          - type: 'null'
        field:
          type: string
        code:
          type: string
        message:
          type: string
        blocking:
          type: boolean
    MediaBase64Input:
      type: object
      additionalProperties: false
      required:
      - base64
      - filename
      properties:
        base64:
          type: string
          contentEncoding: base64
          description: Raw base64 only, with a decoded maximum of 3 MiB.
        filename:
          type: string
          maxLength: 255
    PaginationMeta:
      type: object
      required:
      - total
      - limit
      - offset
      properties:
        total:
          type: integer
          minimum: 0
        limit:
          type: integer
          minimum: 1
          maximum: 100
        offset:
          type: integer
          minimum: 0
        timezone:
          type: string
          examples:
          - Asia/Singapore
    ValidationError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        properties:
          errors:
            type: object
            additionalProperties:
              type: array
              items:
                type: string
          issues:
            type: array
            items:
              $ref: '#/components/schemas/ValidationIssue'
    MediaListResponse:
      type: object
      required:
      - data
      - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Media'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    MediaResponse:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/Media'
    Platform:
      type: string
      enum:
      - instagram
      - facebook
      - x
      - youtube
      - tiktok
      - pinterest
      - linkedin
      - threads
      - bluesky
      - mastodon
    MediaUrlInput:
      type: object
      additionalProperties: false
      required:
      - url
      properties:
        url:
          type: string
          format: uri
          maxLength: 4096
        filename:
          type: string
          maxLength: 255
    RateLimitError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        required:
        - retry_after
        properties:
          retry_after:
            type: integer
            minimum: 1
  parameters:
    MediaId:
      name: media
      in: path
      required: true
      schema:
        type: string
        format: uuid
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    Offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
        default: 0
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: Unique visible-ASCII key, 1–255 characters. Retained for 24 hours.
      schema:
        type: string
        minLength: 1
        maxLength: 255
        pattern: ^[!-~]+$
  responses:
    NotFound:
      description: The resource does not exist or belongs to another workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: not_found
            message: The requested resource was not found.
    ServerError:
      description: Unexpected server failure. Internal details are never exposed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: server_error
            message: The request failed. Try again later.
    BadRequest:
      description: Malformed request, invalid idempotency key, or credential in the query string.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            queryCredential:
              value:
                code: credential_query_not_supported
                message: Credentials are not accepted in URLs. Use OAuth or the Authorization bearer header.
    Unauthorized:
      description: Missing, invalid, expired, revoked, or unbound API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: unauthenticated
            message: A valid API key is required.
    ValidationFailed:
      description: Request fields, platform capability, media, schedule, or quota validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    Forbidden:
      description: The key lacks an ability, onboarding is incomplete, or publish-now is disabled.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: forbidden
            message: This API token does not allow posts:write.
    Conflict:
      description: Resource state, idempotency payload, or in-progress idempotency conflict.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            idempotency:
              value:
                code: idempotency_conflict
                message: This Idempotency-Key was already used with a different request payload.
            mediaInUse:
              value:
                code: media_in_use
                message: Media attached to a post cannot be deleted.
    BillingRequired:
      description: The workspace does not have effective paid REST access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: billing_access_required
            message: The REST API requires an active Solo, Pro, or Agency subscription.
    RateLimited:
      description: The per-key global or media-specific request limit was exceeded.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          example:
            code: rate_limited
            message: Too many requests. Retry after 18 seconds.
            retry_after: 18
  headers:
    XRateLimitReset:
      description: Unix timestamp when the active limiting window resets.
      schema:
        type: integer
        format: int64
    XRateLimitRemaining:
      description: Requests remaining in the active limiting window.
      schema:
        type: integer
    IdempotentReplayed:
      description: Present and `true` only when a stored response was replayed.
      schema:
        type: string
        const: 'true'
    XRateLimitLimit:
      description: Maximum requests in the active limiting window.
      schema:
        type: integer
    RetryAfter:
      description: Seconds until another request should be attempted.
      schema:
        type: integer
        minimum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pq_live_
      description: Workspace-scoped PostQuest API key sent only in the Authorization header.
x-refined-from:
- openapi.yaml
- post-quest-com-openapi.yaml