uploads.sh Public API
Read public files, galleries and live links without a token.
Read public files, galleries and live links without a token.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/uploads-sh:uploads-sh-public-api"
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.
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: 3.2.0
info:
title: uploads.sh Public 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: Public
description: Read public files, galleries and live links without a token.
paths:
/public/feeds/{feedId}:
parameters:
- $ref: '#/components/parameters/FeedId'
get:
operationId: getPublicFeed
summary: Get a public live link
description: Returns one page (up to 50) of the public newest-first item list for a feed, plus `nextCursor` for the next page. It omits workspace ownership and object keys. Items are resolved at view time from `gh.repo` and optional `gh.number` metadata.
security: []
parameters:
- $ref: '#/components/parameters/Cursor'
responses:
'200':
description: The public feed, one page of items, and live PR state.
content:
application/json:
schema:
$ref: '#/components/schemas/PublicFeed'
'404':
$ref: '#/components/responses/NotFound'
'503':
description: Feed storage is unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
tags:
- Public
/public/galleries/{galleryId}:
parameters:
- $ref: '#/components/parameters/GalleryId'
get:
operationId: getPublicGallery
summary: Get a public gallery
description: Returns the public allowlisted projection. It omits workspace ownership and object keys.
security: []
responses:
'200':
description: The public gallery and its public item projection.
content:
application/json:
schema:
$ref: '#/components/schemas/PublicGallery'
'404':
$ref: '#/components/responses/NotFound'
'503':
description: Gallery storage is unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
tags:
- Public
/public/files/{workspace}/{key}:
parameters:
- $ref: '#/components/parameters/Workspace'
- $ref: '#/components/parameters/FileKey'
get:
operationId: getPublicFile
security: []
summary: Get a public file
description: Public details for one file. Private and held files return 404. `download=1` streams the bytes as an attachment instead.
parameters:
- name: download
in: query
schema:
type: string
enum:
- '1'
- 'true'
responses:
'200':
description: File details, or the bytes with `download=1`.
content:
application/json:
schema:
$ref: '#/components/schemas/PublicFile'
application/octet-stream:
schema:
type: string
format: binary
'404':
$ref: '#/components/responses/NotFound'
tags:
- Public
/public/galleries/{galleryId}/items/{itemId}/download:
parameters:
- $ref: '#/components/parameters/GalleryId'
- name: itemId
in: path
required: true
schema:
type: string
get:
operationId: downloadPublicGalleryItem
security: []
summary: Download a gallery item
description: Streams the item as an attachment. Items that are missing, private or held return 404.
responses:
'200':
description: The item's bytes.
content:
application/octet-stream:
schema:
type: string
format: binary
'404':
$ref: '#/components/responses/NotFound'
'503':
description: Gallery storage is unavailable.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
tags:
- Public
/public/feeds/{feedId}/items/{itemId}:
parameters:
- $ref: '#/components/parameters/FeedId'
- name: itemId
in: path
required: true
schema:
type: string
get:
operationId: getPublicFeedItem
security: []
summary: Get a live link item
description: One item with its neighbours, for paging through a feed.
responses:
'200':
description: The item and its position in the feed.
content:
application/json:
schema:
$ref: '#/components/schemas/PublicFeedItemPage'
'404':
$ref: '#/components/responses/NotFound'
tags:
- Public
components:
schemas:
Metadata:
type: object
additionalProperties:
type: string
ErrorEnvelope:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- type
- message
properties:
code:
type: string
type:
type: string
message:
type: string
details: {}
PublicFile:
type: object
required:
- workspace
- key
- url
- previewUrl
- embedUrl
- size
- contentType
properties:
workspace:
type: string
key:
type: string
url:
type: string
format: uri
previewUrl:
type: string
format: uri
embedUrl:
type:
- string
- 'null'
format: uri
size:
type: integer
minimum: 0
contentType:
type: string
uploaded:
type: string
format: date-time
modified:
type: string
format: date-time
metadata:
allOf:
- $ref: '#/components/schemas/Metadata'
description: Public metadata. Internal and `ai.*` labels are removed.
github:
type: object
required:
- repo
- kind
- number
- url
properties:
repo:
type: string
kind:
type: string
enum:
- pull
- issue
number:
type: integer
minimum: 1
url:
type: string
format: uri
title:
type: string
avatarUrl:
type: string
format: uri
posterUrl:
type: string
format: uri
videoDimensions:
$ref: '#/components/schemas/VideoDimensions'
counterpart:
type: object
required:
- key
- url
- previewUrl
- state
description: The other half of a before/after pair, when it is public.
properties:
key:
type: string
url:
type: string
format: uri
previewUrl:
type: string
format: uri
state:
type: string
enum:
- before
- after
PublicGalleryItem:
type: object
required:
- id
- filename
- position
- caption
- altText
- status
- url
- embedUrl
- contentType
- size
properties:
id:
type: string
filename:
type: string
position:
type: integer
minimum: 0
caption:
type:
- string
- 'null'
altText:
type:
- string
- 'null'
status:
type: string
enum:
- available
- missing
- withheld
url:
type:
- string
- 'null'
format: uri
embedUrl:
type:
- string
- 'null'
format: uri
contentType:
type:
- string
- 'null'
size:
type:
- integer
- 'null'
minimum: 0
uploaded:
type: string
format: date-time
modified:
type: string
format: date-time
posterUrl:
type: string
format: uri
videoDimensions:
$ref: '#/components/schemas/VideoDimensions'
metadata:
$ref: '#/components/schemas/Metadata'
PublicFeedItem:
type: object
required:
- id
- filename
- status
- url
- embedUrl
- contentType
- size
- path
- state
properties:
id:
type: string
filename:
type: string
status:
type: string
enum:
- available
- missing
- withheld
url:
type:
- string
- 'null'
format: uri
embedUrl:
type:
- string
- 'null'
format: uri
contentType:
type:
- string
- 'null'
size:
type:
- integer
- 'null'
minimum: 0
uploaded:
type: string
format: date-time
modified:
type: string
format: date-time
path:
type:
- string
- 'null'
state:
type:
- string
- 'null'
metadata:
$ref: '#/components/schemas/Metadata'
posterUrl:
type: string
format: uri
videoDimensions:
$ref: '#/components/schemas/VideoDimensions'
PublicGallery:
type: object
required:
- id
- title
- description
- visibility
- coverItemId
- version
- createdAt
- updatedAt
- items
properties:
id:
type: string
pattern: ^gal_
title:
type: string
description:
type:
- string
- 'null'
visibility:
const: public
coverItemId:
type:
- string
- 'null'
version:
type: integer
minimum: 1
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
items:
type: array
items:
$ref: '#/components/schemas/PublicGalleryItem'
PublicFeed:
type: object
required:
- id
- title
- repo
- path
- number
- kind
- createdAt
- updatedAt
- items
- nextCursor
- github
properties:
id:
type: string
pattern: ^feed_
title:
type: string
repo:
type: string
path:
type:
- string
- 'null'
number:
type:
- integer
- 'null'
minimum: 1
kind:
type:
- string
- 'null'
enum:
- pull
- issue
- null
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
items:
type: array
items:
$ref: '#/components/schemas/PublicFeedItem'
nextCursor:
type:
- string
- 'null'
description: Cursor for the next 50 items, or null on the last page.
github:
type:
- object
- 'null'
required:
- title
- state
description: Live PR or issue title and state, public repos only. Null for a repo-wide feed.
properties:
title:
type:
- string
- 'null'
state:
type:
- string
- 'null'
enum:
- open
- closed
- merged
- null
VideoDimensions:
type: object
required:
- width
- height
properties:
width:
type: integer
minimum: 1
height:
type: integer
minimum: 1
PublicFeedItemPage:
type: object
required:
- feed
- item
- prev
- next
- index
- total
properties:
feed:
type: object
required:
- id
- title
- repo
- number
- kind
properties:
id:
type: string
title:
type: string
repo:
type: string
number:
type:
- integer
- 'null'
kind:
type:
- string
- 'null'
enum:
- pull
- issue
- null
item:
$ref: '#/components/schemas/PublicFeedItem'
prev:
type:
- string
- 'null'
description: Newer neighbour item id.
next:
type:
- string
- 'null'
description: Older neighbour item id.
index:
type: integer
minimum: 0
total:
type: integer
minimum: 0
description: Items in the feed's scope, capped at 2,000.
github:
type:
- object
- 'null'
required:
- title
- state
description: Live PR or issue title and state, public repos only. Null for a repo-wide feed.
properties:
title:
type:
- string
- 'null'
state:
type:
- string
- 'null'
enum:
- open
- closed
- merged
- null
responses:
NotFound:
description: The resource was not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
parameters:
Cursor:
name: cursor
in: query
schema:
type: string
description: Opaque cursor returned by the previous page.
FeedId:
name: feedId
in: path
required: true
schema:
type: string
pattern: ^feed_
Workspace:
name: workspace
in: path
required: true
schema:
type: string
FileKey:
name: key
in: path
required: true
schema:
type: string
description: Object key. It may include slashes.
GalleryId:
name: galleryId
in: path
required: true
schema:
type: string
pattern: ^gal_
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