Webcite Check quotes API
Check that quotes appear in the sources you give, and open a citation at its quoted passage.
Check that quotes appear in the sources you give, and open a citation at its quoted passage.
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/webcite:webcite-check-quotes-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: Webcite Check quotes 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: Check quotes
description: Check that quotes appear in the sources you give, and open a citation at its quoted passage.
paths:
/api/v1/citations/source-preview:
post:
description: 'Resolve a citation back to its exact source and render it, so you can show the evidence behind a claim.
- **Web sources** (`url`): returns a text-fragment deep link (`url#:~:text=quote`) that scrolls a browser to the quote.
- **Document sources** (`asset_id`, from POST /upload): returns the cited page''s extracted text and a `asset_url#page=N` deep link. Spreadsheets return the sheet grid.
Every preview includes a **bindBack** result: whether the cited quote is actually present in the source (`grounded`) and how it matched (`exact`, `normalized`, `fuzzy`, `reflowed`, or `unbound`). A `reflowed` match used a derived OCR reading and always requires review. A citation that cannot be bound back is never reported as grounded.
**Cost: 1 credit.** Deterministic, but a web preview fetches the source URL, so this endpoint is subject to your plan''s rate limits.'
operationId: ApiV1Controller_sourcePreview
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SourcePreviewRequestDto'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SourcePreviewResponseDto'
description: Source preview with bindBack verification
'400':
description: Provide a web url or an asset_id
'401':
description: Unauthorized - API key required
'429':
description: Rate limit exceeded
security:
- x-api-key: []
- bearer: []
summary: Preview a citation source
tags:
- Check quotes
/api/v1/verify/batch:
post:
description: 'Bind every claim to its source in a single request. Each item is a quote plus its source (inline text, a url, or an asset). The response gives, per item, whether the quote is grounded, how it matched (exact, normalized, fuzzy, reflowed, or unbound), the best-matching passage and score even when unbound, the verification tier, and a feedback token.
A fuzzy match is capped at needs_review, never verified. A reflowed match uses a derived OCR reading and is also capped at needs_review. Use this to check every citation in a document at once.
App keys require evidence_scope with a readable folder and verify permission. Their items must omit source_text, url, asset_id, source_version_id, representation_id and source_unit_id. Each quote is grounded in filed-source citations; unmatched quotes return explicit item errors. The folder organization billing owner pays the batch, after scope and payer validation.
**Cost: 1 credit per item.** BindBack is deterministic, but a batch can be large and `url`/`asset` items fetch their source, so this endpoint is rate-limited more strictly than compute-only endpoints.'
operationId: ApiV1Controller_verifyBatch
parameters:
- description: Optional 1-128 printable non-space ASCII key scoped per API key (with its app, folder limit and permissions) or per user for a user key, and to the verify/batch endpoint. Reuse with the same body (the whole validated request) to recover a completed result without re-running or charging twice. A different body or changed app-batch billing owner returns 409; a repeat while the first is running returns 503. Completed results are retained for 24 hours.
in: header
name: Idempotency-Key
required: false
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VerifyBatchRequestDto'
required: true
responses:
'200':
content:
application/json:
schema:
items:
$ref: '#/components/schemas/VerifyBatchResultDto'
type: array
description: Per-item verification results
'401':
description: Unauthorized - API key required
'403':
description: 'APP_KEY_EVIDENCE_SCOPE_REQUIRED: app keys need evidence_scope. APP_KEY_BATCH_SOURCE_FORBIDDEN: app items must not supply their own source. FOLDER_BILLING_OWNER_UNAVAILABLE: the folder has no active org payer. KEY_SCOPE_DENIED: missing read or verify permission.'
'409':
description: Idempotency-Key reused with a different batch request or app-batch billing owner
'429':
description: Rate limit exceeded
security:
- x-api-key: []
- bearer: []
summary: Verify many claims in one call
tags:
- Check quotes
components:
schemas:
VerifyBatchResultDto:
properties:
binding:
$ref: '#/components/schemas/BindBackDto'
engine:
enum:
- context_graph
type: string
error:
type: string
feedback_token:
type: string
id:
description: Caller id echoed from the request.
type: string
judgment:
additionalProperties: true
type: object
quote:
type: string
source_check:
enum:
- read
- not_read
type: string
verification:
$ref: '#/components/schemas/VerificationStampDto'
required:
- quote
- binding
- verification
- feedback_token
type: object
BatchItemDto:
properties:
asset_id:
description: An uploaded asset id to check against.
type: string
id:
description: Caller id echoed back on the result.
type: string
meaning:
description: 'A meaning-preservation problem you have already found, from an assessment such as POST /api/v2/context/assess-meaning. Only the cautious states are accepted: "changed" and "ambiguous" stop a citation presenting as verified. "faithful" is deliberately NOT accepted here — a clearance asserted by the party asking for the check is not a check, and this field exists precisely so that "nobody assessed this" cannot be mistaken for "an assessor cleared this". Omit it when you found no problem; the result then reports meaning "not_checked", which is what absence honestly means.'
enum:
- changed
- ambiguous
type: string
page:
description: 1-based page for an asset source.
type: number
quote:
description: The claim or quote to check.
type: string
representation_id:
type: string
source_text:
description: The source text to check the quote against. Provide this, or url, or asset_id.
type: string
source_unit_id:
type: string
source_version_id:
description: Immutable source version. Requires exact representation and unit IDs.
type: string
url:
description: A web source URL to resolve and check.
type: string
required:
- quote
type: object
SourcePreviewRequestDto:
properties:
asset_id:
description: Uploaded asset ID to preview (from POST /upload). Provide this OR url. Also accepts an "asset://<id>" citation url.
example: 123e4567-e89b-12d3-a456-426614174000
type: string
cell:
description: A1 cell anchor for a legacy spreadsheet preview.
type: string
full:
description: Return the capped full sheet instead of a cell window.
type: boolean
highlight_terms:
description: Terms to highlight in the preview.
items:
type: string
type: array
page:
default: 1
description: 1-based page (PDF) or sheet index (spreadsheet) to preview.
example: 3
type: number
quote:
description: The cited quote. It is bound back against the resolved source text; the response reports whether it was found (grounded) and how it matched.
example: the Eiffel Tower is 330 metres tall
type: string
representation_id:
description: Exact parser representation, never latest.
type: string
source_unit_id:
description: Exact unit within the immutable representation.
type: string
source_version_id:
description: Immutable source version. Requires representation_id and source_unit_id.
type: string
title:
description: Optional title for a web source.
type: string
url:
description: Web source URL to preview. Provide this OR asset_id. Returns a text-fragment deep link that scrolls to the quote.
example: https://en.wikipedia.org/wiki/Eiffel_Tower
type: string
type: object
SourcePreviewResponseDto:
properties:
anchor:
type: string
asset_id:
description: Asset ID (kind=page|grid).
type: string
binding:
allOf:
- $ref: '#/components/schemas/BindBackDto'
description: bindBack result — whether the quote is grounded in the source.
cells:
description: Bounded rows of cells with A1 refs, values and anchor flags.
items:
type: string
type: array
deep_link:
description: 'Deep link to the source at the cited location: url#:~:text=quote for web, asset_url#page=N for documents.'
type: string
highlight_terms:
description: Highlight terms.
items:
type: string
type: array
image_base64:
type: string
judgment:
type: object
kind:
description: Preview shape.
enum:
- web
- page
- grid
- unit
- image
type: string
locator:
type: object
mime_type:
enum:
- application/pdf
type: string
page:
description: Page/sheet number (kind=page|grid).
type: number
quote:
description: The cited quote.
type: string
representation_id:
type: string
sheet:
description: Sheet name (kind=grid).
type: string
source_unit_id:
type: string
source_version_id:
type: string
state:
type: object
text:
description: Resolved source text (kind=page|grid).
type: string
title:
description: Web source title (kind=web).
type: string
transcribed:
description: True when the stored page text is a model's transcription of the page (kind=page).
type: boolean
url:
description: Web source URL (kind=web).
type: string
required:
- kind
- deep_link
- binding
type: object
BindBackDto:
properties:
grounded:
description: True when the quote was found in the resolved source.
type: boolean
matched_quote:
description: The matched substring, when grounded verbatim.
type: string
matched_text:
description: The best-matching passage found in the source — present even when unbound, so a reviewer sees the closest evidence.
type: string
method:
description: 'How the quote matched: exact/normalized substring, fuzzy passage match, reflowed OCR reading, or unbound.'
enum:
- exact
- normalized
- fuzzy
- reflowed
- unbound
type: string
reading:
description: Derived body reading with page furniture removed; absent for stored text.
enum:
- body
type: string
rescue:
description: 'OCR rescue outcome: attempted=false with code/reason, attempted=true and rescued=false (optionally ambiguous), or rescued=true with transformations, raw dropped lines and retained spans. Unknown or unattempted is never a failed rescue.'
oneOf:
- properties:
attempted:
enum:
- false
type: boolean
code:
enum:
- not_ocr
- labels_not_available
- judge_unavailable
- not_prepared
- disabled
- resource_limit
type: string
reason:
type: string
required:
- attempted
- code
- reason
type: object
- properties:
ambiguous:
enum:
- true
type: boolean
attempted:
enum:
- true
type: boolean
rescued:
enum:
- false
type: boolean
required:
- attempted
- rescued
type: object
- properties:
attempted:
enum:
- true
type: boolean
basis:
enum:
- code
- measured
type: string
calibrationKey:
type: string
decidedAt:
format: date-time
type: string
droppedLines:
items:
type: string
type: array
model:
type:
- string
- 'null'
reading:
description: Derived matching text; display the raw preview text instead.
type: string
rescued:
enum:
- true
type: boolean
retainedSpans:
items:
properties:
fromLine:
type: integer
page:
type: integer
toLine:
type: integer
required:
- page
- fromLine
- toLine
type: object
type: array
transformations:
items:
properties:
afterLine:
type: integer
atLine:
type: integer
kind:
enum:
- dehyphenate
- join
- drop
type: string
line:
type: string
source:
enum:
- element_label
- repetition
- page_number
- margin_band
type: string
required:
- kind
type: object
type: array
required:
- attempted
- rescued
- reading
- transformations
- droppedLines
- retainedSpans
- calibrationKey
- basis
- model
- decidedAt
type: object
score:
description: Similarity of the best match, 0..1.
type: number
required:
- grounded
- method
type: object
VerifyBatchRequestDto:
properties:
evidence_scope:
description: 'Bind items that carry no source to a folder''s filed sources: {folder_id, include_descendants (default true)}. Each such item is checked against the best folder citation for its quote and returns it as `citation`; an item with no match returns an error. Items with their own source are unchanged. Omit for the unchanged behaviour.'
properties:
folder_id:
format: uuid
type: string
include_descendants:
default: true
type: boolean
type: object
items:
description: Claims to verify, each against its source. Bound back per item; a fuzzy match is capped at needs_review, never verified.
items:
$ref: '#/components/schemas/BatchItemDto'
type: array
required:
- items
type: object
VerificationStampDto:
properties:
band:
enum:
- verified
- needs_review
- unverified
type: string
binding_method:
enum:
- exact
- normalized
- fuzzy
- reflowed
- unbound
type: string
confidence:
maximum: 100
minimum: 0
type:
- number
- 'null'
grounded:
type: boolean
layer:
enum:
- deterministic
- bound
- model
- unbound
type: string
meaning:
enum:
- not_checked
- faithful
- changed
- ambiguous
type: string
review_reason:
type: string
required:
- layer
- band
- confidence
- grounded
- meaning
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