uploads.sh Review API

Files held for review because they may contain a secret or sensitive content.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /v1/workspaces/{workspace}/files/held List held files #
GET /v1/workspaces/{workspace}/files/held/download Download a held file #
POST /v1/workspaces/{workspace}/files/approve Approve a file #
POST /v1/workspaces/{workspace}/files/hold Hold a file #
GET /v1/workspaces/{workspace}/files/review Get review state #

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/uploads-sh:uploads-sh-review-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

uploads-sh-review-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: uploads.sh Review API
  version: 1.0.0
  description: 'Workspace-scoped file hosting for agents and humans. The canonical public hierarchy is `/v1/workspaces/{workspace}/...`. Full narrative docs: https://uploads.sh/docs/api'
  contact:
    url: https://github.com/buildinternet/uploads
  license:
    name: Apache-2.0
    url: https://github.com/buildinternet/uploads/blob/main/LICENSE
servers:
- url: https://api.uploads.sh
  description: Production API
security:
- bearerAuth: []
tags:
- name: Review
  description: Files held for review because they may contain a secret or sensitive content.
paths:
  /v1/workspaces/{workspace}/files/held:
    parameters:
    - $ref: '#/components/parameters/Workspace'
    get:
      operationId: listHeldFiles
      security:
      - bearerAuth:
        - files:read
      summary: List held files
      description: Keys held for approval, optionally under one key prefix. A held file on hosted storage is moved out of the public bucket, so the file list does not show it.
      parameters:
      - name: prefix
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Held files.
          content:
            application/json:
              schema:
                type: object
                required:
                - items
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      required:
                      - key
                      - reason
                      - moved
                      - area
                      properties:
                        key:
                          type: string
                        reason:
                          type:
                          - string
                          - 'null'
                        moved:
                          type: boolean
                        reviewUrl:
                          type:
                          - string
                          - 'null'
                          description: Hosted storage only. A link to the held file that works for 10 minutes, for a member to look at it before approving. Do not share it or post it in a pull request.
                        area:
                          type:
                          - object
                          - 'null'
                          required:
                          - top
                          - bottom
                          - left
                          - right
                          description: Flagged region as fractions of the image, when known.
                          properties:
                            top:
                              type: number
                              minimum: 0
                              maximum: 1
                            bottom:
                              type: number
                              minimum: 0
                              maximum: 1
                            left:
                              type: number
                              minimum: 0
                              maximum: 1
                            right:
                              type: number
                              minimum: 0
                              maximum: 1
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      tags:
      - Review
  /v1/workspaces/{workspace}/files/held/download:
    parameters:
    - $ref: '#/components/parameters/Workspace'
    get:
      operationId: downloadHeldFile
      security:
      - bearerAuth:
        - files:read
      summary: Download a held file
      description: Streams a held file as an attachment. A legacy hold comes from the held bucket. A hosted hold that never moved comes from the public object. 404 when neither is available.
      parameters:
      - name: key
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The held file's bytes.
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      tags:
      - Review
  /v1/workspaces/{workspace}/files/approve:
    parameters:
    - $ref: '#/components/parameters/Workspace'
    post:
      operationId: approveHeldFile
      security:
      - bearerAuth:
        - files:write
      summary: Approve a file
      description: 'The classifier holds a file that likely shows a secret or sensitive personal data. A held file is left out of the managed PR comment, public feeds, galleries, and its file page until a member approves it. A key that is not held answers 200 with `approved: false`.'
      parameters:
      - name: key
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Whether the file was released.
          content:
            application/json:
              schema:
                type: object
                required:
                - key
                - approved
                properties:
                  key:
                    type: string
                  approved:
                    type: boolean
                  reason:
                    type: string
                    enum:
                    - not_held
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Review
  /v1/workspaces/{workspace}/files/hold:
    parameters:
    - $ref: '#/components/parameters/Workspace'
    post:
      operationId: holdFileAgain
      security:
      - bearerAuth:
        - files:write
      summary: Hold a file
      description: 'For a file approved by mistake: puts it back under review, so its link stops working until a member approves it again. Only a file that was held and approved can be held again; any other key answers 200 with `held: false`.'
      parameters:
      - name: key
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Whether the file is held again.
          content:
            application/json:
              schema:
                type: object
                required:
                - key
                - held
                properties:
                  key:
                    type: string
                  held:
                    type: boolean
                  reason:
                    type: string
                    enum:
                    - not_approved
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Review
  /v1/workspaces/{workspace}/files/review:
    parameters:
    - $ref: '#/components/parameters/Workspace'
    get:
      operationId: getFileReview
      security:
      - bearerAuth:
        - files:read
      summary: Get review state
      description: Whether a file is held, was approved (with who approved it and when), or was never held. For workspace members; the public file API does not return it.
      parameters:
      - name: key
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The file's review state.
          content:
            application/json:
              schema:
                type: object
                required:
                - key
                - hold
                - reason
                - by
                - at
                properties:
                  key:
                    type: string
                  hold:
                    type:
                    - string
                    - 'null'
                    enum:
                    - pending
                    - approved
                    - null
                  reason:
                    type:
                    - string
                    - 'null'
                  by:
                    type:
                    - string
                    - 'null'
                  at:
                    type:
                    - string
                    - 'null'
                    format: date-time
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      tags:
      - Review
components:
  schemas:
    ErrorEnvelope:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - type
          - message
          properties:
            code:
              type: string
            type:
              type: string
            message:
              type: string
            details: {}
  responses:
    Unauthorized:
      description: Missing or invalid credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFound:
      description: The resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: The workspace rate limit or upload budget was exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: The credential lacks the required scope or role.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  parameters:
    Workspace:
      name: workspace
      in: path
      required: true
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Workspace token from `uploads login` or `/account/developers`. Canonical routes can also accept an uploads.sh browser session, but public API integrations should use a workspace token. Tokens carry named scopes `files:read`, `files:write`, and `files:delete`; each operation lists the required scope as a role name on this scheme. REST v1 does not accept OAuth access tokens (those are for the hosted MCP). Scope catalog: https://api.uploads.sh/.well-known/oauth-protected-resource'
    oauth2:
      type: oauth2
      description: 'Named permission scopes for workspace tokens (this API) and for OAuth 2.1 access tokens on the hosted MCP at https://agents.uploads.sh/mcp. REST v1 authenticates with `bearerAuth` only. Request the scopes listed on each operation. Discovery: https://uploads.sh/.well-known/oauth-authorization-server and https://api.uploads.sh/.well-known/oauth-protected-resource'
      flows:
        authorizationCode:
          authorizationUrl: https://uploads.sh/api/auth/oauth2/authorize
          tokenUrl: https://auth.uploads.sh/api/auth/oauth2/token
          scopes:
            files:read: List, search, read metadata, usage, galleries, and feeds.
            files:write: Upload, update metadata, galleries, feeds, and usage reconcile.
            files:delete: Delete stored objects and purge expired objects.
x-tagGroups:
- name: Core
  tags:
  - Files
  - Review
- name: Sharing
  tags:
  - Galleries
  - Live links
  - Public
- name: Workspace
  tags:
  - GitHub
  - Usage
  - Maintenance