Link in Seconds Uploads API

The Uploads API from Link in Seconds — 2 operation(s) for uploads.

GitHub OpenAPI

Operations 2

POST /uploads Start an upload and get a short-lived signed PUT URL (valid 10 minutes) #
POST /uploads/complete Verify, scan and publish an uploaded file #

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/linkinseconds-com:linkinseconds-com-uploads-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

linkinseconds-com-uploads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Link in Seconds Uploads API
  version: 1.0.0
  description: 'Upload a file and get a public link. Uploads go straight to storage in three steps: create an upload, PUT the bytes to the signed URL, complete it. The account''s plan limits, file-type checks and moderation apply to every upload. Each API key has a request rate limit in units (analytics calls cost 5, other calls 1): Free 60/minute and 2000/day, paid 300/minute and 20000/day (UTC). Over the limit returns 429 with a Retry-After header; responses carry X-RateLimit-Limit and X-RateLimit-Remaining for the current minute.'
servers:
- url: https://linkinseconds.com/api/v1
security:
- apiKey: []
tags:
- name: Uploads
paths:
  /uploads:
    post:
      operationId: createUpload
      summary: Start an upload and get a short-lived signed PUT URL (valid 10 minutes)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: File name with extension
                type:
                  type: string
                  description: MIME type; send the same value as Content-Type on the PUT
                size:
                  type: integer
                  description: Exact size in bytes
                slug:
                  type: string
                  description: Optional custom link name (the last part of the link address); checked early, send it again on /uploads/complete
                idempotencyKey:
                  type: string
                  format: uuid
                  description: Optional; retry-safe key, reuse it on /uploads/complete
              required:
              - name
              - type
              - size
      responses:
        '200':
          description: Upload URL ready (or the existing link when the idempotency key was already used)
          content:
            application/json:
              schema:
                type: object
                properties:
                  path:
                    type: string
                  signedUrl:
                    type: string
                    format: uri
                  existing:
                    $ref: '#/components/schemas/Link'
        '400':
          description: Invalid input or file type
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
        '401':
          description: Missing, invalid or revoked API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
        '403':
          description: Plan limit reached, HTML pages need Pro or Lifetime (html_pro_required / html_account_too_new), or account banned
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
        '429':
          description: 'code rate_limited: over the per-key request limit (scope minute/day/burst/auth) or the hourly upload cap (scope upload_hour). Wait Retry-After seconds, then retry.'
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      tags:
      - Uploads
  /uploads/complete:
    post:
      operationId: completeUpload
      summary: Verify, scan and publish an uploaded file
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                path:
                  type: string
                name:
                  type: string
                type:
                  type: string
                linkName:
                  type: string
                  description: Optional link title
                slug:
                  type: string
                  description: 'Optional custom link name (the last part of the link address): letters, numbers and dashes, must be free, reserved words refused. Omitted: made from the title.'
                idempotencyKey:
                  type: string
                  format: uuid
              required:
              - path
              - name
              - type
      responses:
        '200':
          description: The new link
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Link'
        '400':
          description: Invalid input or file type
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
        '401':
          description: Missing, invalid or revoked API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
        '403':
          description: Plan limit reached, HTML pages need Pro or Lifetime (html_pro_required / html_account_too_new), or account banned
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
        '429':
          description: 'code rate_limited: over the per-key request limit (scope minute/day/burst/auth) or the hourly upload cap (scope upload_hour). Wait Retry-After seconds, then retry.'
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before retrying
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                - error
      tags:
      - Uploads
components:
  schemas:
    Link:
      type: object
      properties:
        slug:
          type: string
        title:
          type: string
        url:
          type: string
          format: uri
        review:
          type: boolean
          description: Held for moderation review; goes live once cleared.
        processing:
          type: boolean
          description: A video still being scanned.
      required:
      - slug
      - title
      - url
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: API key from /dashboard/api-keys (starts with lis_).
externalDocs:
  url: https://linkinseconds.com/docs/developers