Schedchie Media API

Upload links, upload status and imports by URL. Permission group `media`.

GitHub OpenAPI

Operations 4

POST /media/uploads Create an upload link #
GET /media/uploads/{slotId} Get an upload's state #
POST /media/uploads/{slotId}/confirm Confirm an upload #
POST /media Import media from a 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/schedchie-com:schedchie-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

schedchie-com-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Schedchie Media API
  version: 1.0.0
  summary: Schedule, review and measure social posts from your own code.
  description: 'The Schedchie API is a REST API over your workspace: posts, approvals, media,

    notes and analytics. It is included in the Ultra and Ultra+ plans.


    **Base URL:** `https://api.schedchie.com/v1`. The same routes also answer on

    `https://mcp.schedchie.com/v1`.


    **Authentication:** every request carries an API key as

    `Authorization: Bearer schedchie_api_…`. Keys are created in the Schedchie

    dashboard under AI assistants, shown once, and become available after the

    workspace''s first paid invoice. A key acts only in its own workspace and

    only within the permission groups it was granted; a read-only key is

    refused on every write.


    **Format:** JSON both ways (`application/json; charset=utf-8`), request

    bodies up to 8 MiB. Field names are camelCase. A single resource is the

    object itself; a list is `{ "data": [...], "nextCursor": "…" | null }`.

    Creates answer `201`.


    **Errors:** one envelope, `{ "error": { "status", "code", "message",

    "requestId" } }`, with `details` on a `422 validation_failed`. Every

    response carries `X-Request-Id`; quote it when you write to support.


    **Limits:** 120 calls a minute and 1,200 an hour per key, and the same

    numbers once more for the whole workspace, so more keys never mean more

    calls (Ultra+: 3,600 an hour). Every response carries `RateLimit-Limit`,

    `RateLimit-Remaining` and `RateLimit-Reset`; a `429` adds `Retry-After`.

    Live reads (the analytics overview and account routes, which reach a social

    platform) are cached for 300 s per workspace and counted against 60

    uncached reads an hour (Ultra+: 120); `X-Schedchie-Cache: hit` marks a

    cached answer.


    **Pagination:** `GET /posts` pages with `cursor` and `limit` (default 25,

    max 100) and answers `nextCursor` (`null` on the last page). The other

    lists return everything with `nextCursor: null`; `limit` is accepted and

    reserved so paging can be added without a version bump.


    **Idempotency:** `POST /posts` takes an `Idempotency-Key` header (1 to 255

    characters of your choice). A repeat with the same key and the same API

    key answers the post already made with `200` and

    `Idempotent-Replayed: true`, never a second post. Keys are unique forever

    per API key. No other route is idempotent by header; `DELETE` routes are

    naturally idempotent (the second call answers `404`).


    **Versioning:** the version is in the path. Additive changes (new routes,

    new optional fields, new enum values) do not bump it. A breaking change

    ships as `/v2`; `/v1` keeps answering for at least six months after `/v2`

    is announced, with `Deprecation` and `Sunset` headers (RFC 9745, RFC 8594)

    on every `/v1` response and a changelog entry. A single route marked

    `deprecated` in this document carries a `Deprecation` header from the day

    of the notice and is removed only in the next major version.


    **Destructive routes:** `DELETE` is the confirmation. There is no

    confirmation header on REST routes.


    **Advanced: calling a tool directly.** The same keys reach every MCP tool

    over HTTPS: `GET /v1/tools` lists the tools a key may call and

    `POST /v1/tools/{name}` runs one with its arguments as the JSON body. That

    surface is documented by the tool descriptions themselves and is the

    escape hatch for what this reference does not wrap. Destructive tools need

    `X-Confirm-Destructive: true` there.'
  termsOfService: https://www.schedchie.com/terms
  license:
    name: Schedchie terms of service
    url: https://www.schedchie.com/terms
  contact:
    name: Schedchie support
    url: https://www.schedchie.com/contact
    email: support@schedchie.com
servers:
- url: https://api.schedchie.com/v1
  description: Production
- url: https://mcp.schedchie.com/v1
  description: The same server on the MCP host (the CLI and SDK default)
security:
- apiKey: []
tags:
- name: Media
  description: Upload links, upload status and imports by URL. Permission group `media`.
paths:
  /media/uploads:
    post:
      tags:
      - Media
      operationId: createMediaUpload
      summary: Create an upload link
      description: 'Opens an upload slot and answers a page URL where a file up to 200 MB

        can be uploaded within 15 minutes (hand it to a person, or open it

        from a browser). Then `POST /media/uploads/{slotId}/confirm` and use

        the returned `media` in a post. To import a file your code already

        hosts, use `POST /media` instead.'
      x-schedchie-tool: request_media_upload
      x-schedchie-scope: media
      x-schedchie-read-only-key: false
      x-schedchie-live-read: false
      x-schedchie-idempotency: false
      x-schedchie-destructive: false
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUploadSlot'
            examples:
              video:
                value:
                  filename: launch-reel.mp4
                  mimeType: video/mp4
                  size: 48213991
      responses:
        '201':
          description: The slot was created.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadSlot'
              examples:
                created:
                  value:
                    slotId: slot_01hv3q8d7zk9
                    state: awaiting_upload
                    uploaded: false
                    uploadPageUrl: https://www.schedchie.com/upload/tok_01hv3q8d7zk9
                    linkExpiresAt: '2026-11-07T12:15:00.000Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/Timeout'
  /media/uploads/{slotId}:
    parameters:
    - $ref: '#/components/parameters/SlotId'
    get:
      tags:
      - Media
      operationId: getMediaUpload
      summary: Get an upload's state
      description: '`awaiting_upload` until the file arrives, `processing` while it is

        checked, `ready` with the `media` object to use in a post, or

        `quarantined`, `failed` or `revoked` with the reason.'
      x-schedchie-tool: get_media_status
      x-schedchie-scope: media
      x-schedchie-read-only-key: true
      x-schedchie-live-read: false
      x-schedchie-idempotency: false
      x-schedchie-destructive: false
      responses:
        '200':
          description: The slot's state.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaStatus'
              examples:
                ready:
                  value:
                    slotId: slot_01hv3q8d7zk9
                    filename: launch-reel.mp4
                    mimeType: video/mp4
                    size: 48213991
                    state: ready
                    uploaded: true
                    media:
                      gcsObjectName: uploads/5c2f0b1e-9a8d-4a1b-9f3e-2b7c6d5e4f30.mp4
                      originalName: launch-reel.mp4
                      mimeType: video/mp4
                      size: 48213991
                      type: video
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/Timeout'
  /media/uploads/{slotId}/confirm:
    parameters:
    - $ref: '#/components/parameters/SlotId'
    post:
      tags:
      - Media
      operationId: confirmMediaUpload
      summary: Confirm an upload
      description: 'Tells Schedchie the file has been uploaded to the slot and answers the

        `media` object to put in a post. `size` is optional and checked

        against the stored file when given.'
      x-schedchie-tool: confirm_upload
      x-schedchie-scope: media
      x-schedchie-read-only-key: false
      x-schedchie-live-read: false
      x-schedchie-idempotency: false
      x-schedchie-destructive: false
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfirmUpload'
            examples:
              plain:
                value: {}
      responses:
        '200':
          description: The upload is confirmed.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadedMedia'
              examples:
                confirmed:
                  value:
                    uploaded: true
                    media:
                      gcsObjectName: uploads/5c2f0b1e-9a8d-4a1b-9f3e-2b7c6d5e4f30.mp4
                      originalName: launch-reel.mp4
                      mimeType: video/mp4
                      size: 48213991
                      type: video
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/Timeout'
  /media:
    post:
      tags:
      - Media
      operationId: importMedia
      summary: Import media from a URL
      description: 'Fetches a public `https` image or video (up to 200 MB; Google Drive

        share links are accepted) and answers the `media` object to put in a

        post. Private addresses are refused. In v1 only a URL is accepted; use

        the upload link for files on your side.'
      x-schedchie-tool: upload_media
      x-schedchie-scope: media
      x-schedchie-read-only-key: false
      x-schedchie-live-read: false
      x-schedchie-idempotency: false
      x-schedchie-destructive: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportMedia'
            examples:
              image:
                value:
                  url: https://cdn.example.com/launch/hero.jpg
                  filename: hero.jpg
      responses:
        '201':
          description: The file was imported.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadedMedia'
              examples:
                imported:
                  value:
                    uploaded: true
                    media:
                      gcsObjectName: uploads/9b0d2e4f-6a7c-4d8e-b1f2-3c4d5e6f7a80.jpg
                      originalName: hero.jpg
                      mimeType: image/jpeg
                      size: 418230
                      type: image
                      finalUrlAfterProcessing: https://storage.schedchie.com/uploads/9b0d2e4f-6a7c-4d8e-b1f2-3c4d5e6f7a80.jpg
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/Timeout'
components:
  headers:
    Sunset:
      description: RFC 8594. Present with `Deprecation`, the date after which the route or version stops answering. Not set on v1 today.
      schema:
        type: string
    RateLimit-Limit:
      description: Calls allowed in the current minute for the ceiling that is closest to full (this key, or the workspace).
      schema:
        type: integer
    RateLimit-Reset:
      description: Seconds until the minute resets.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
    X-Request-Id:
      description: The id of this request in Schedchie's logs. Quote it when writing to support.
      schema:
        type: string
    Deprecation:
      description: RFC 9745. Present on every response of a deprecated route or version, with the date the deprecation was announced. Not set on v1 today.
      schema:
        type: string
    RateLimit-Remaining:
      description: Calls left in the current minute.
      schema:
        type: integer
  responses:
    Timeout:
      description: '`504`. `timeout`: the call did not finish within 15 minutes and was stopped.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            timeout:
              value:
                error:
                  status: 504
                  code: timeout
                  message: The tool call did not finish within 15 minutes and was stopped.
                  requestId: 7f3c9a2e5b1d4e8f
    Forbidden:
      description: '`403`. `not_permitted`: the key was not granted this route''s group, is

        read only for it, or is bound to an employee seat that cannot use this

        route. `plan_required`: the workspace left the Ultra plan.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            read-only-key:
              value:
                error:
                  status: 403
                  code: not_permitted
                  message: This API key is read only for "Posts" (schedchie:posts), and schedule_post changes data. Create a key with Read and write for it.
                  requestId: 7f3c9a2e5b1d4e8f
    ValidationFailed:
      description: '`422`. `validation_failed`: the body or the query did not match this

        route''s schema; `details` names each field. `tool_error`: the request

        was well formed and Schedchie or the social platform refused it (a

        caption too long for a platform, an account that needs reconnecting,

        a file the platform does not accept).

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            validation-failed:
              value:
                error:
                  status: 422
                  code: validation_failed
                  message: The request does not match the schema of POST /posts.
                  requestId: 7f3c9a2e5b1d4e8f
                  details:
                  - field: accountIds
                    message: '"accountIds" is a required property'
                  - field: scheduledTime
                    message: 12 is not of type "string"
            tool-error:
              value:
                error:
                  status: 422
                  code: tool_error
                  message: 'Instagram refused the post: a caption is limited to 2,200 characters.'
                  requestId: 7f3c9a2e5b1d4e8f
    MethodNotAllowed:
      description: '`405`. `method_not_allowed`: the path exists, the method does not. `Allow` lists the methods that do.'
      headers:
        Allow:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            wrong-method:
              value:
                error:
                  status: 405
                  code: method_not_allowed
                  message: Use GET, POST on this route.
                  requestId: 7f3c9a2e5b1d4e8f
    Internal:
      description: '`500`. `internal`: something failed on our side; the message carries a reference for support.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            internal:
              value:
                error:
                  status: 500
                  code: internal
                  message: internal server error (ref 3f9c1b2a)
                  requestId: 7f3c9a2e5b1d4e8f
    Unavailable:
      description: '`503`. `unavailable`: Schedchie could not verify the key or reach its own API right now. Retry after `Retry-After` seconds.'
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unavailable:
              value:
                error:
                  status: 503
                  code: unavailable
                  message: 'Schedchie could not verify this API key right now: retry shortly.'
                  requestId: 7f3c9a2e5b1d4e8f
    Unauthorized:
      description: '`401`. `missing_key`: no `Authorization: Bearer` header. `invalid_key`:

        not a Schedchie API key, or unknown or revoked. `key_refused`: the key

        was revoked during the call. The response carries

        `WWW-Authenticate: Bearer realm="schedchie-api"`.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing-key:
              value:
                error:
                  status: 401
                  code: missing_key
                  message: 'Send your API key as Authorization: Bearer schedchie_api_... Create one in Dashboard, AI assistants.'
                  requestId: 7f3c9a2e5b1d4e8f
    NotFound:
      description: '`404`. `not_found`: no resource with that id in this workspace, or no

        such route under `/v1`.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            no-such-post:
              value:
                error:
                  status: 404
                  code: not_found
                  message: No post with id 65c0000000000000000000ff in this workspace.
                  requestId: 7f3c9a2e5b1d4e8f
    BadRequest:
      description: '`400`. `invalid_json`: the body is not JSON. `invalid_arguments`: the

        tool behind the route refused the values (an unknown account id, a

        time in the wrong format, a caption over a platform''s limit).

        `workspace_not_allowed`: a `workspace` field named another workspace.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalid-arguments:
              value:
                error:
                  status: 400
                  code: invalid_arguments
                  message: 'Invalid arguments: `scheduledTime` must be an ISO 8601 date-time, got "tomorrow".'
                  requestId: 7f3c9a2e5b1d4e8f
    RateLimited:
      description: '`429`. `rate_limited`: over 120 calls this minute for this key or for

        the workspace''s keys together, or too many refused requests from one

        address. `budget_exhausted`: the hour''s calls are used up.

        `live_read_budget`: the workspace''s uncached live reads this hour are

        used up. `Retry-After` says how long to wait.

        '
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            minute:
              value:
                error:
                  status: 429
                  code: rate_limited
                  message: Too many calls this minute for this key (limit 120 a minute). Retry in 23 s.
                  requestId: 7f3c9a2e5b1d4e8f
  schemas:
    CreateUploadSlot:
      type: object
      additionalProperties: false
      properties:
        filename:
          type: string
          description: A hint; the file's own name is kept when it arrives.
        mimeType:
          type: string
          description: '`image/*` or `video/*`.'
        size:
          type: integer
          minimum: 0
          description: Byte count, when known.
        purpose:
          type: string
          description: Echoed back in the answer.
    MediaStatus:
      type: object
      required:
      - state
      - uploaded
      properties:
        slotId:
          type: string
        filename:
          type:
          - string
          - 'null'
        mimeType:
          type: string
        size:
          type: integer
        state:
          type: string
          enum:
          - awaiting_upload
          - processing
          - ready
          - quarantined
          - failed
          - revoked
        uploaded:
          type: boolean
          description: '`true` only when `state` is `ready`.'
        media:
          $ref: '#/components/schemas/Media'
        hint:
          type: string
        rejectReason:
          type: string
          description: When `quarantined`.
        message:
          type: string
        reason:
          type: string
          description: When `failed`.
    ImportMedia:
      type: object
      required:
      - url
      additionalProperties: false
      properties:
        url:
          type: string
          format: uri
          description: A public `https` URL of an image or video, up to 200 MB.
        filename:
          type: string
          description: The name to store the file under; the URL's last segment otherwise.
        mimeType:
          type: string
          description: '`image/*` or `video/*`, when the server does not say.'
    Error:
      type: object
      description: The one error envelope.
      required:
      - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
          - status
          - code
          - message
          - requestId
          additionalProperties: false
          properties:
            status:
              type: integer
              description: The HTTP status, repeated.
            code:
              type: string
              description: A stable machine-readable code.
              enum:
              - invalid_json
              - invalid_arguments
              - workspace_not_allowed
              - missing_key
              - invalid_key
              - key_refused
              - plan_required
              - not_permitted
              - not_found
              - method_not_allowed
              - body_too_large
              - validation_failed
              - tool_error
              - rate_limited
              - budget_exhausted
              - live_read_budget
              - unavailable
              - timeout
              - internal
            message:
              type: string
              description: What went wrong and, where possible, how to fix it.
            requestId:
              type: string
              description: The same value as the `X-Request-Id` header.
            details:
              type: array
              description: On `validation_failed`, one entry per field that failed.
              items:
                $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      required:
      - field
      - message
      additionalProperties: false
      properties:
        field:
          type: string
          description: The field's path in the body (`accountIds`, `media/0/url`) or the query parameter's name; `body` for the whole body.
        message:
          type: string
    UploadSlot:
      type: object
      required:
      - slotId
      - state
      - uploaded
      - uploadPageUrl
      properties:
        slotId:
          type: string
        state:
          type: string
          enum:
          - awaiting_upload
        uploaded:
          type: boolean
        uploadPageUrl:
          type: string
          format: uri
          description: The page where the file is uploaded. Valid until `linkExpiresAt`.
        linkExpiresAt:
          type: string
          format: date-time
        purpose:
          type: string
    UploadedMedia:
      type: object
      required:
      - uploaded
      - media
      properties:
        uploaded:
          type: boolean
        media:
          $ref: '#/components/schemas/Media'
    Media:
      type: object
      description: A stored media file, ready to be put in a post as is.
      required:
      - gcsObjectName
      - mimeType
      properties:
        gcsObjectName:
          type: string
        originalName:
          type: string
        mimeType:
          type: string
        size:
          type: integer
        type:
          type: string
          enum:
          - image
          - video
        finalUrlAfterProcessing:
          type: string
          format: uri
    ConfirmUpload:
      type: object
      additionalProperties: false
      properties:
        size:
          type: integer
          minimum: 0
          description: The file's byte count, checked against the upload.
  parameters:
    SlotId:
      name: slotId
      in: path
      required: true
      description: The upload slot's id, from `POST /media/uploads`.
      schema:
        type: string
        minLength: 1
        maxLength: 200
      example: slot_01hv3q8d7zk9
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: schedchie_api_ followed by 64 hex characters
      description: 'An API key from the Schedchie dashboard (AI assistants). Keys exist on

        Ultra and Ultra+, after the first paid invoice; at most 5 active keys

        per workspace (Ultra+: 10). Each key is granted permission groups

        (`posts`, `media`, `analytics`, `team`, `library`, each read and write

        or read only) and acts only in its own workspace.

        '