Webcite Retained sources API

Register, publish and read immutable source representations and units, and check arithmetic against them.

GitHub OpenAPI

Operations 6

POST /api/v2/sources Register original text or CSV bytes for an uploaded asset #
GET /api/v2/sources/{versionId}/representations/latest Get the latest representation and source unit IDs of a retained source #
POST /api/v2/sources/{versionId}/representations/text Publish a text or CSV representation of a retained source #
POST /api/v2/sources/{versionId}/representations/{representationId}/prepare-ocr-rescue Prepare judged OCR rescue for an owned source #
GET /api/v2/sources/{versionId}/representations/{representationId}/units/{unitId} Read one immutable source unit #
POST /api/v2/verify/numeric Check arithmetic against one or two retained figures #

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-retained-sources-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-retained-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Webcite Retained sources 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: Retained sources
  description: Register, publish and read immutable source representations and units, and check arithmetic against them.
paths:
  /api/v2/sources:
    post:
      operationId: SourceVersionController_register
      parameters: []
      responses:
        '201':
          description: ''
      security:
      - x-api-key: []
      - bearer: []
      tags:
      - Retained sources
      summary: Register original text or CSV bytes for an uploaded asset
  /api/v2/sources/{versionId}/representations/latest:
    get:
      operationId: SourceVersionController_latestRepresentation
      parameters:
      - in: path
        name: versionId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
      security:
      - x-api-key: []
      - bearer: []
      tags:
      - Retained sources
      summary: Get the latest representation and source unit IDs of a retained source
  /api/v2/sources/{versionId}/representations/text:
    post:
      operationId: SourceVersionController_publishTextRepresentation
      parameters:
      - in: path
        name: versionId
        required: true
        schema:
          type: string
      responses:
        '201':
          description: ''
      security:
      - x-api-key: []
      - bearer: []
      tags:
      - Retained sources
      summary: Publish a text or CSV representation of a retained source
  /api/v2/sources/{versionId}/representations/{representationId}/prepare-ocr-rescue:
    post:
      description: A new successful preparation costs 5 credits. Retained replays do not charge again. A dispatched outcome that cannot be confirmed remains pending reconciliation.
      operationId: OcrRescueController_prepare
      parameters:
      - in: path
        name: versionId
        required: true
        schema:
          type: string
      - in: path
        name: representationId
        required: true
        schema:
          type: string
      responses:
        '201':
          description: ''
      security:
      - x-api-key: []
      - bearer: []
      summary: Prepare judged OCR rescue for an owned source
      tags:
      - Retained sources
  /api/v2/sources/{versionId}/representations/{representationId}/units/{unitId}:
    get:
      operationId: SourceVersionController_unit
      parameters:
      - in: path
        name: versionId
        required: true
        schema:
          type: string
      - in: path
        name: representationId
        required: true
        schema:
          type: string
      - in: path
        name: unitId
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
      security:
      - x-api-key: []
      - bearer: []
      tags:
      - Retained sources
      summary: Read one immutable source unit
  /api/v2/verify/numeric:
    post:
      operationId: NumericClaimController_assess
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                claim:
                  maxLength: 10000
                  minLength: 1
                  type: string
                operands:
                  items:
                    additionalProperties: false
                    properties:
                      figure_index:
                        maximum: 10000
                        minimum: 0
                        type: integer
                      representation_id:
                        type: string
                      source_unit_id:
                        type: string
                      source_version_id:
                        type: string
                    required:
                    - source_version_id
                    - representation_id
                    - source_unit_id
                    - figure_index
                    type: object
                  maxItems: 2
                  minItems: 1
                  type: array
              required:
              - claim
              - operands
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                properties:
                  arithmetic:
                    properties:
                      computed:
                        type:
                        - number
                        - 'null'
                      reason:
                        type: string
                      tolerance:
                        type: number
                      verdict:
                        enum:
                        - holds
                        - fails
                        - not_computable
                        type: string
                    required:
                    - verdict
                    - computed
                    - tolerance
                    - reason
                    type:
                    - object
                    - 'null'
                  certificate:
                    description: Rerunnable receipt in the ProofArtifact shape. status is proved (supported), refuted (contradicted), unknown (escalate) or not_applicable. An independent checker recomputes the verdict from witness alone; check reports agreement or each disagreement. Figure readings, printed facet values and semantic comparability facets are premises bound by bindingHash and proofHash, not recomputed. Not persisted.
                    properties:
                      bindingHash:
                        type: string
                      check:
                        properties:
                          agrees:
                            type: boolean
                          disagreements:
                            items:
                              type: string
                            type: array
                        required:
                        - agrees
                        - disagreements
                        type: object
                      checkedAxioms:
                        items:
                          type: string
                        type: array
                      checkerDigest:
                        type: string
                      checkerPolicyRevision:
                        type: string
                      formalStatementHash:
                        type: string
                      premiseRevisionIds:
                        items:
                          type: string
                        type: array
                      proofHash:
                        type: string
                      property:
                        enum:
                        - equality
                        type: string
                      scope:
                        enum:
                        - arithmetic
                        type: string
                      status:
                        enum:
                        - proved
                        - refuted
                        - unknown
                        - not_applicable
                        type: string
                      toolchainVersion:
                        type: string
                      translationVersion:
                        type: string
                      witness:
                        properties:
                          arithmetic:
                            enum:
                            - holds
                            - fails
                            - not_computable
                            - null
                            type:
                            - string
                            - 'null'
                          claim:
                            properties:
                              bound:
                                enum:
                                - gte
                                - lte
                                - null
                                type:
                                - string
                                - 'null'
                              direction:
                                enum:
                                - -1
                                - 0
                                - 1
                                type: integer
                              hedged:
                                type: boolean
                              key:
                                description: The claimKey.
                                type: object
                              kind:
                                enum:
                                - growth_percent
                                - difference
                                - ratio
                                - absolute
                                type: string
                              stated:
                                properties:
                                  accounting:
                                    type: boolean
                                  comparator:
                                    enum:
                                    - gte
                                    - null
                                    type:
                                    - string
                                    - 'null'
                                  decimal:
                                    description: Printed decimal, unsigned and unscaled.
                                    type: string
                                  interval:
                                    description: Every value that rounds to the printed figure.
                                    items:
                                      type: string
                                    maxItems: 2
                                    minItems: 2
                                    type: array
                                  raw:
                                    type: string
                                  scale:
                                    type: number
                                  sign:
                                    enum:
                                    - -1
                                    - 1
                                    type: integer
                                  unit:
                                    type:
                                    - string
                                    - 'null'
                                  unitClass:
                                    type: string
                                  value:
                                    description: 'Exact value: a decimal, or n/d when it does not terminate.'
                                    type: string
                                type: object
                              tolerance:
                                description: Exact half-width of the stated band.
                                type: string
                            type:
                            - object
                            - 'null'
                          claimText:
                            type: string
                          comparability:
                            type:
                            - object
                            - 'null'
                          operands:
                            items:
                              properties:
                                accounting:
                                  type: boolean
                                comparator:
                                  enum:
                                  - gte
                                  - null
                                  type:
                                  - string
                                  - 'null'
                                decimal:
                                  description: Printed decimal, unsigned and unscaled.
                                  type: string
                                facets:
                                  description: As operands[].facets.
                                  items:
                                    type: object
                                  type: array
                                interval:
                                  description: Every value that rounds to the printed figure.
                                  items:
                                    type: string
                                  maxItems: 2
                                  minItems: 2
                                  type: array
                                raw:
                                  type: string
                                scale:
                                  type: number
                                sign:
                                  enum:
                                  - -1
                                  - 1
                                  type: integer
                                source:
                                  properties:
                                    figure_index:
                                      type: integer
                                    representation_id:
                                      type: string
                                    source_unit_id:
                                      type: string
                                    source_version_id:
                                      type: string
                                  type:
                                  - object
                                  - 'null'
                                unit:
                                  type:
                                  - string
                                  - 'null'
                                unitClass:
                                  type: string
                                value:
                                  description: 'Exact value: a decimal, or n/d when it does not terminate.'
                                  type: string
                              type: object
                            type: array
                          outcome:
                            enum:
                            - supported
                            - contradicted
                            - escalate
                            - not_applicable
                            type: string
                          relation:
                            properties:
                              interval:
                                description: Exact range over the operand intervals.
                                items:
                                  type: string
                                maxItems: 2
                                minItems: 2
                                type:
                                - array
                                - 'null'
                              value:
                                type:
                                - string
                                - 'null'
                            type:
                            - object
                            - 'null'
                        type: object
                    type: object
                  claimKey:
                    description: Fact key read deterministically from the claim text. A part is null unless the text prints exactly one value for it.
                    properties:
                      basis:
                        properties:
                          end:
                            type: integer
                          lexeme:
                            type: string
                          start:
                            type: integer
                          value:
                            type: string
                        type:
                        - object
                        - 'null'
                      currency:
                        properties:
                          end:
                            type: integer
                          lexeme:
                            type: string
                          start:
                            type: integer
                          value:
                            type: string
                        type:
                        - object
                        - 'null'
                      entity:
                        properties:
                          end:
                            type: integer
                          lexeme:
                            type: string
                          start:
                            type: integer
                          value:
                            type: string
                        type:
                        - object
                        - 'null'
                      measure:
                        properties:
                          end:
                            type: integer
                          lexeme:
                            type: string
                          start:
                            type: integer
                          value:
                            type: string
                        type:
                        - object
                        - 'null'
                      period:
                        properties:
                          end:
                            type: integer
                          lexeme:
                            type: string
                          start:
                            type: integer
                          value:
                            properties:
                              kind:
                                enum:
                                - fy
                                - year
                                - quarter
                                - half
                                - ytd
                                - ltm
                                type: string
                              part:
                                type: integer
                              year:
                                type: integer
                            type: object
                        type:
                        - object
                        - 'null'
                      role:
                        properties:
                          end:
                            type: integer
                          lexeme:
                            type: string
                          start:
                            type: integer
                          value:
                            type: string
                        type:
                        - object
                        - 'null'
                    type:
                    - object
                    - 'null'
                  comparability:
                    properties:
                      facets:
                        items:
                          properties:
                            decidedBy:
                              enum:
                              - code
                              - judge
                              type: string
                            facet:
                              enum:
                              - unit
                              - scale
                              - measure
                              - entity
                              - period
                              - basis
                              type: string
                            p:
                              type:
                              - number
                              - 'null'
                            passed:
                              type:
                              - boolean
                              - 'null'
                          type: object
                        type: array
                      reason:
                        type: string
                      verdict:
                        enum:
                        - comparable
                        - not_comparable
                        - unknown
                        type: string
                    required:
                    - verdict
                    - facets
                    - reason
                    type:
                    - object
                    - 'null'
                  limitation:
                    type: string
                  operands:
                    items:
                      properties:
                        binding:
                          enum:
                          - retained_source_slice
                          type: string
                        facets:
                          description: The claim's fact key checked against this figure's own line. Contradicted needs printed evidence; unknown never lowers the outcome. A contradiction escalates.
                          items:
                            properties:
                              claim:
                                type: string
                              evidence:
                                properties:
                                  end:
                                    type: integer
                                  lexeme:
                                    type: string
                                  start:
                                    type: integer
                                type:
                                - object
                                - 'null'
                              facet:
                                enum:
                                - measure
                                - entity
                                - period
                                - basis
                                - currency
                                - role
                                type: string
                              figure:
                                type:
                                - string
                                - 'null'
                              outcome:
                                enum:
                                - supported
                                - contradicted
                                - unknown
                                type: string
                            required:
                            - facet
                            - outcome
                            - claim
                            - figure
                            - evidence
                            type: object
                          type: array
                        figure:
                          properties:
                            accounting:
                              type: boolean
                            comparator:
                              enum:
                              - gte
                              type: string
                            index:
                              type: integer
                            magnitude:
                              type: number
                            raw:
                              type: string
                            scale:
                              type: number
                            sign:
                              enum:
                              - -1
                              - 1
                              type: integer
                            unit:
                              type:
                              - string
                              - 'null'
                            unitClass:
                              enum:
                              - percent
                              - percentage_point
                              - basis_point
                              - currency
                              - none
                              type: string
                            value:
                              type: number
                          type: object
                        source:
                          properties:
                            representation_id:
                              type: string
                            source_unit_id:
                              type: string
                            source_version_id:
                              type: string
                          type: object
                      required:
                      - figure
                      - source
                      - binding
                      type: object
                    type: array
                  outcome:
                    enum:
                    - supported
                    - contradicted
                    - escalate
                    - not_applicable
                    type: string
                  reason:
                    type: string
                  scope:
                    enum:
                    - arithmetic_only
                    type: string
                required:
                - outcome
                - arithmetic
                - comparability
                - reason
                - scope
                - limitation
                - operands
                type: object
          description: Arithmetic assessment over owned retained source figures, never full semantic verification.
      security:
      - x-api-key: []
      - bearer: []
      tags:
      - Retained sources
      summary: Check arithmetic against one or two retained figures
components:
  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