uploads.sh Usage API

Usage counters, limits, and plan for a workspace.

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 1

GET /v1/workspaces/{workspace}/usage Get usage #

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-usage-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-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: uploads.sh Usage 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: Usage
  description: Usage counters, limits, and plan for a workspace.
paths:
  /v1/workspaces/{workspace}/usage:
    parameters:
    - $ref: '#/components/parameters/Workspace'
    get:
      operationId: getUsage
      security:
      - bearerAuth:
        - files:read
      summary: Get usage
      responses:
        '200':
          description: Usage counters, configured limits, credential scopes, and plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Usage'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      tags:
      - Usage
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: {}
    Usage:
      type: object
      required:
      - workspace
      - bytes
      - objects
      - uploadsInPeriod
      - scopes
      - plan
      - storageBudgetBasis
      - storage
      properties:
        workspace:
          type: string
        bytes:
          type: integer
          minimum: 0
        objects:
          type: integer
          minimum: 0
        sharedBytes:
          type: integer
          minimum: 0
        sharedObjects:
          type: integer
          minimum: 0
        uploadsInPeriod:
          type: integer
          minimum: 0
        periodStart:
          type: string
          pattern: ^\d{4}-\d{2}$
          description: Current billing period as `YYYY-MM` (UTC).
        updatedAt:
          type: string
          format: date-time
        scopes:
          type: array
          items:
            type: string
        plan:
          type: string
        maxStorageBytes:
          type: integer
          minimum: 0
        storageRemainingBytes:
          type: integer
          minimum: 0
        maxUploadsPerPeriod:
          type: integer
          minimum: 0
        uploadsRemaining:
          type: integer
          minimum: 0
        storageBudgetBasis:
          type: string
          enum:
          - total
          - shared
          description: Which byte count the storage cap applies to. `shared` for a workspace on its own bucket, where only hosted residue is metered.
        storage:
          type: object
          required:
          - mode
          - fallbackLanes
          - health
          properties:
            mode:
              type: string
              enum:
              - shared
              - byo
            fallbackLanes:
              type: integer
              minimum: 0
            health:
              type: object
              required:
              - ok
              properties:
                ok:
                  type: boolean
                code:
                  type: string
                  enum:
                  - auth
                  - bucket_missing
                  - unreachable
                message:
                  type: string
                since:
                  type: string
                  format: date-time
  responses:
    Unauthorized:
      description: Missing or invalid credential.
      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