Webcite Upload API

Store a file once and get an asset_id for extraction, figures or review.

GitHub OpenAPI

Operations 2

POST /api/v1/upload Upload a file #
POST /api/v1/upload/url Upload a file from a public HTTPS 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/webcite:webcite-upload-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

webcite-upload-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Webcite Upload API
  version: '1.0'
  description: 'Webcite parses documents and checks claims against sources. The API converts PDFs, scans, images, spreadsheets and office files to Markdown with page and sheet locations, splits them into citation-ready chunks, verifies a claim against web sources with citations, a stance for each source and a verdict, checks that quotes appear in the sources you give, searches for sources, and extracts and cross-checks financial figures. Send your API key in the x-api-key header; create a key at https://webcite.co/api-keys (sign-in required). Documentation: https://webcite.co/api-docs'
  contact:
    name: Webcite support
    url: https://webcite.co/support
    email: support@webcite.co
  termsOfService: https://webcite.co/terms-and-conditions
servers:
- description: Production
  url: https://api.webcite.co
security:
- x-api-key: []
tags:
- name: Upload
  description: Store a file once and get an asset_id for extraction, figures or review.
paths:
  /api/v1/upload:
    post:
      description: 'Store a file and get the `asset_id` that `POST /extract` and the other document endpoints take. Send `multipart/form-data` with one `file` part; the part''s filename decides the format, so keep its extension.


        **Cost: 0 credits.** Uploading is free and needs no credit balance; `usage.credits` is 0. Reading the file with `POST /extract` is charged for each page read.


        **Limits.** The file can be at most 100 MB and must not be empty. Uploads are not counted against the plan''s request limits; the general limit of 300 requests per minute applies and answers `429` with a `Retry-After` header.'
      operationId: ApiV1Controller_uploadFile
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              properties:
                file:
                  description: File to upload
                  format: binary
                  type: string
              required:
              - file
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadResponseDto'
          description: File uploaded successfully
        '400':
          description: No `file` part was sent, the file is empty or over 100 MB (`Invalid source metadata or bytes`), or the account has too few credits
        '401':
          description: Unauthorized - API key required
        '403':
          description: 'APP_KEY_ROUTE_FORBIDDEN: app keys cannot use this endpoint'
        '429':
          description: More than 300 requests in a minute. Wait for `Retry-After`
        '503':
          description: 'Private evidence storage required: set EVIDENCE_STORAGE_ROOT or EVIDENCE_BUCKET_NAME (I1; never public-first)'
      security:
      - x-api-key: []
      - bearer: []
      summary: Upload a file
      tags:
      - Upload
  /api/v1/upload/url:
    post:
      description: 'Fetches the file server-side and stores it exactly like a multipart upload, returning asset_id and source_version_id for review and extraction.


        The URL must be public HTTPS. Every redirect hop is re-checked; private, loopback, link-local, metadata, multicast and reserved addresses (IPv4 and IPv6) are refused, no caller credentials or headers are forwarded, the body is capped at 100 MB while streaming and the fetch times out after 30 s. The bytes must be one of: PDF, PNG, JPEG, WebP, DOCX, PPTX, XLSX, XLSM, XLSB, XLS, ODS, CSV, TSV, TXT, MD.


        **Cost: 0 credits.** Uploading is free and needs no credit balance; `usage.credits` is 0.'
      operationId: ApiV1Controller_uploadFromUrl
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadUrlDto'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadResponseDto'
          description: File fetched and stored
        '400':
          description: URL not allowed (non-https, private address, credentials, bad redirect)
        '413':
          description: File larger than 100 MB
        '415':
          description: Bytes are not a supported format
        '422':
          description: URL returned a non-2xx status or an empty body
        '504':
          description: Fetch timed out
      security:
      - x-api-key: []
      - bearer: []
      summary: Upload a file from a public HTTPS URL
      tags:
      - Upload
components:
  schemas:
    BillingUsageDto:
      properties:
        credits:
          description: Credits actually deducted; null when a priced operation was not metered. Zero denotes a genuinely free operation.
          type:
          - number
          - 'null'
      required:
      - credits
      type: object
    UploadedAssetDto:
      properties:
        asset_id:
          description: Identifier to pass to `POST /extract` and the other document endpoints.
          type: string
        asset_url:
          description: Private storage address of the stored bytes. Not a public web address.
          type: string
        filename:
          description: The filename sent with the upload.
          type: string
        size:
          description: Size of the stored file in bytes.
          type: number
        source_version_id:
          description: Immutable identifier of exactly these bytes.
          type: string
      required:
      - asset_id
      - asset_url
      - source_version_id
      - filename
      - size
      type: object
    UploadUrlDto:
      properties:
        filename:
          description: Display filename. Its extension must match the fetched bytes.
          type: string
        url:
          description: Public HTTPS URL of the file. Fetched server-side with no caller credentials or headers; private, loopback, link-local and metadata addresses are refused on every redirect.
          example: https://example.com/report.pdf
          type: string
      required:
      - url
      type: object
    CreditUsageDto:
      properties:
        credits_remaining:
          description: Credits left in the current billing period after this request.
          type:
          - number
          - 'null'
        credits_used:
          description: Credits this request deducted. Null when the charge was not recorded.
          type:
          - number
          - 'null'
        monthly_allocation:
          description: Credits the plan grants each billing period.
          type:
          - number
          - 'null'
        operation_id:
          description: The same identifier as the top-level `operation_id`.
          type:
          - string
          - 'null'
        overage_enabled:
          description: Whether the account continues past its allocation on overage billing.
          type:
          - boolean
          - 'null'
      required:
      - credits_used
      - credits_remaining
      - monthly_allocation
      - overage_enabled
      - operation_id
      type: object
    UploadResponseDto:
      properties:
        credit_usage:
          allOf:
          - $ref: '#/components/schemas/CreditUsageDto'
          description: The charge with a snapshot of the account balance.
        data:
          $ref: '#/components/schemas/UploadedAssetDto'
        message:
          example: File uploaded successfully
          type: string
        operation_id:
          description: Identifier of this billed operation.
          type:
          - string
          - 'null'
        successCode:
          description: The HTTP status repeated in the body.
          example: 200
          type: number
        usage:
          allOf:
          - $ref: '#/components/schemas/BillingUsageDto'
          description: 'What the upload was charged: 0 credits. Uploading is free.'
      required:
      - successCode
      - message
      - data
      - operation_id
      - usage
      type: object
  securitySchemes:
    apiKey:
      in: header
      name: x-api-key
      type: apiKey
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Webcite API key. Create one at https://webcite.co/api-keys (sign-in required).
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Session token of a user signed in to the Webcite web app. Agents and server code use the x-api-key header.
    oauth2:
      type: oauth2
      description: 'OAuth 2.0 authorization code flow with PKCE (S256) for the hosted MCP server at https://api.webcite.co/mcp. Clients register dynamically or use a Client ID Metadata Document. Discovery: https://api.webcite.co/.well-known/oauth-authorization-server. The REST operations here take the x-api-key header.'
      flows:
        authorizationCode:
          authorizationUrl: https://api.webcite.co/api/v1/oauth/authorize
          tokenUrl: https://api.webcite.co/api/v1/oauth/token
          refreshUrl: https://api.webcite.co/api/v1/oauth/token
          scopes:
            webcite:mcp: Use the Webcite MCP tools, billed to your account like an API key.
externalDocs:
  description: Webcite API documentation
  url: https://webcite.co/api-docs