CiteWise
Get started
DEVELOPER APIv1Stable

CiteWise API reference

Build citation quality control into your research workflow. Resolve metadata, inspect provider evidence, propose corrections, render styles, and process large batches through one workspace-aware API.

Base URL

https://api.citewise.devStart with a request

Make your first request

Make your first request

Build citation quality control into your research workflow. Resolve metadata, inspect provider evidence, propose corrections, render styles, and process large batches through one workspace-aware API.

bashCiteWise API
curl https://api.citewise.dev/api/v1/citations/parse \
  -X POST \
  -H "X-API-Key: cw_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "Vaswani A. Attention Is All You Need. 2017.",
    "async": false
  }'

Authentication at a glance

API integrations: use a paid workspace API key in X-API-Key.

Console and web sessions: use a Clerk JWT in Authorization: Bearer ....

Workspace isolation: every resource is scoped to the authenticated workspace.

View plan limits

From first request to an audit report

A production integration should preserve identifiers, poll durable jobs, and keep system findings separate from human decisions.

Access boundary

Create a workspace API key on a Pro or Team / Lab plan and keep it server-side. Credit packs add checks after the monthly allowance; they enable web batch audits, not API access. Browser sessions use a Clerk JWT.

  1. 1. Parse or preview

    Use POST /citations/parse for one reference. For RIS, BibTeX, EndNote .enw, or CSL-JSON, preview the multipart file first; previewing parses structure but does not verify scholarly identity or reserve quota.

  2. 2. Create durable work

    For a bibliography, POST the references to /citation-jobs or re-upload the file to /citation-imports/jobs. Save the returned job id and Location header. Job creation reserves verification quota.

  3. 3. Poll deliberately

    GET the Location until the job is completed, completed with errors, failed, or cancelled. Honor Retry-After on 429 and 503 responses and use bounded exponential backoff; do not blindly create a duplicate job.

  4. 4. Review and export

    Fetch job items and Reference Preflight. Record human decisions with the review endpoint, then export HTML, CSV, or JSON. Keep the original references and item-level failures in your audit trail.

curl -X POST "https://api.citewise.dev/api/v1/citation-imports/preview?format=RIS" \
  -H "X-API-Key: cw_live_your_key" \
  -F "file=@references.ris"

Do not set the multipart Content-Type header yourself: curl and your HTTP library must add the boundary.

401 means credentials are missing or invalid; 403 means the authenticated workspace lacks the required plan or permission; 429 means a quota, rate, or concurrency limit; 503 means capacity is temporarily unavailable. Retry only when the response is retryable.

Verification rules and data handling

Identity and evidence

Not found means no match in the completed searches, not proof of fabrication or AI origin. Historical POSSIBLE_HALLUCINATION labels only mean no matching record was found under older rules. LLM-completed fields are retrieval hints only; matching scores use the original submitted fields.

Check completeness

COMPLETE: the applicable search strategy completed. PARTIAL: some searches did not complete. INCOMPLETE: no usable search completed. NOT_RUN: not checked. Missing diagnostics never count as success. Without DOI, two core sources (Crossref, OpenAlex, Semantic Scholar) must complete, plus explicit PMID/arXiv lookups when applicable. Negative DOI searches require Crossref and DataCite; an exact DOI record can establish identity independently. Provider failures remain visible.

Reservation and settlement

A check is reserved before execution. COMPLETE delivered results consume one check, including no match or insufficient evidence. PARTIAL results consume a check only for VERIFIED or an evidence-supported DOI conflict; other partial results release the reservation. Technical failure, incomplete execution and cancelled unexecuted entries release it. A release restores the original month or credit purchase, never a refunded or frozen purchase. Preview, viewing, human review, export and publication-status retry are free.

Web batch and API access

Free includes 50 checks per month and up to 10 selected entries per web batch task within your balance. Credit packs also enable web batch audits; they do not enable API access or raise rate/concurrency limits. API integrations require Pro or Team / Lab. Review pasted entries before submitting: automatic splitting is editable and cannot guarantee accurate segmentation.

Publication updates

For a confirmed DOI identity, CiteWise checks Crossref update relations for retractions, corrections and expressions of concern. Notices include their DOI, type, date, source and check time. This is independent of identity verification. An unavailable source does not invalidate a verified identity; no recorded update does not guarantee that a work has never been retracted. Coverage and timeliness are limited by the source.

Third parties and retention

Only submitted bibliographic text and identifiers are used here, not full Word/PDF manuscripts. Queries may reach Crossref, DataCite, OpenAlex, Semantic Scholar, PubMed and arXiv. If optional LLM completion is enabled, bibliographic input may also reach the configured model provider; it is not verification evidence. Original uploaded files are not retained, but submitted references, imported source records, results, diagnostics and review decisions are stored for traceability. There is no promised automatic deletion period. Contact milo4210@gmail.com for data-handling questions or deletion requests.

Additive API contract (ruleset 2026-10-v2)

Existing identity status values remain compatible. New responses add verification.assessment and verification.publicationStatus. Each new citation, job item and export includes the ruleset version; report schemaVersion is 2. Historical stored results are not reclassified. Reason codes and enums are stable machine values, not translated labels.

Free publication-status retry

GET /api/v1/citations/{id}/publication-status requires an API key or Clerk JWT for the owning workspace. It returns the current cached or refreshed publication report without charging another check or rewriting historical results. Return fields: status, targetDoi, source, checkedAt, notices[{type,doi,url,date}], reasonCode. Errors use the normal 401/403/404 API contract.

{
  "assessment": {
    "rulesetVersion": "2026-10-v2",
    "checkCompleteness": "COMPLETE",
    "coverage": "LIMITED",
    "reasonCodes": [
      "COVERAGE_LIMITED",
      "NO_MATCH_IN_CHECKED_SOURCES"
    ],
    "recommendedAction": "MANUAL_CHECK"
  },
  "publicationStatus": {
    "status": "NOT_RUN",
    "targetDoi": null,
    "source": null,
    "checkedAt": null,
    "notices": [],
    "reasonCode": "IDENTITY_NOT_CONFIRMED"
  }
}

reasonCodes: DIAGNOSTICS_MISSING | NO_USABLE_SOURCE | REQUIRED_SOURCE_FAILED | SUPPLEMENTARY_SOURCE_FAILED | INPUT_FIELDS_INSUFFICIENT | COVERAGE_LIMITED | NO_MATCH_IN_CHECKED_SOURCES | IDENTIFIER_CONFLICT | METADATA_CONFLICT | MULTIPLE_CANDIDATES

publicationStatus.status: RETRACTED | CORRECTED | EXPRESSION_OF_CONCERN | UPDATE_FOUND | NO_UPDATE_FOUND | UNAVAILABLE | NOT_RUN

Conventions

Conventions

Build citation quality control into your research workflow. Resolve metadata, inspect provider evidence, propose corrections, render styles, and process large batches through one workspace-aware API.

Content type

JSON or multipart

Send application/json for JSON endpoints. Use multipart/form-data for citation import uploads.

Traceability

X-Trace-Id

Optional request ID. The response exposes the trace ID for support.

Pagination

page + size

Batch item pages are zero-indexed; size is capped at 200.

Retries

Retry-After

Honor this header for rate, concurrency, and system-busy responses.

CITATION API

Verify and enrich references

Parse first, then use the returned citationId for evidence, corrections, and rendering. Every citation endpoint is workspace-scoped.

POST/api/v1/citations/parse

Parse and verify a reference

Normalizes input, resolves candidate records across scholarly providers, fuses field-level evidence, stores the citation, and returns a verification report.

API key or Clerk JWThttps://api.citewise.dev

Request body

Content-Type: application/json

FieldTypeRequiredDescription
referencestringrequiredRaw citation, DOI, URL, or incomplete reference. Maximum 8,000 characters.
asyncbooleanoptionalReserved for asynchronous processing. Defaults to false; send false for the immediate parse response.
jsonCiteWise API
{
  "reference": "Vaswani, A. Attention Is All You Need. 2017.",
  "async": false
}

Response

200 OK
FieldTypeRequiredDescription
citationIdUUID-Identifier for follow-up citation endpoints.
statusstring-Verification decision.
confidencenumber-Overall confidence from 0 to 1.
citationCitationDto-Full persisted citation, metadata fields, verification details, and APA rendering.
jsonCiteWise API
{
  "citationId": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
  "status": "VERIFIED",
  "confidence": 0.99,
  "citation": {
    "id": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
    "status": "VERIFIED",
    "confidence": 0.99,
    "title": { "fieldName": "title", "value": "Attention Is All You Need", "confidence": 0.99, "algorithm": "PROVIDER_FUSION", "evidence": [] },
    "verification": { "rawReference": "Vaswani A. ...", "normalizedReference": "Vaswani A... 2017", "matchScore": 0.99, "candidateMargin": 0.42, "features": {}, "matchedProviders": ["CROSSREF", "OPENALEX"], "contradictions": [], "candidates": [], "providerDiagnostics": [] },
    "renderedApa": "Vaswani, A., ... (2017).",
    "createdAt": "2026-01-15T10:20:30Z"
  }
}
Implementation notes

The current synchronous contract returns a complete result. The async field is accepted for forward compatibility; use citation jobs for durable asynchronous batch processing.

GET/api/v1/citations

List recent citations

Returns saved citations for the authenticated workspace, newest first. Reading history does not rerun verification or consume credits.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
pageinteger (query)-Zero-indexed page number. Defaults to 0.
limitinteger (query)-Page size, defaults to 50 and is clamped to 1-100.

Response

200 OK
FieldTypeRequiredDescription
[]CitationSummary[]-Each summary contains id, rawReference, status, confidence, renderedApa, and createdAt.
jsonCiteWise API
[
  {
    "id": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
    "rawReference": "Vaswani A. Attention Is All You Need. 2017.",
    "status": "VERIFIED",
    "confidence": 0.99,
    "renderedApa": "Vaswani, A., ... (2017).",
    "createdAt": "2026-01-15T10:20:30Z"
  }
]
GET/api/v1/citations/{id}

Get a citation

Retrieves the complete stored citation report by ID, including resolved fields, evidence references, candidates, contradictions, and APA rendering.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredCitation ID returned by parse or list citations.

Response

200 OK
FieldTypeRequiredDescription
verification.assessmentCheckAssessment-rulesetVersion, checkCompleteness (COMPLETE/PARTIAL/INCOMPLETE/NOT_RUN), coverage, reasonCodes and recommendedAction. See the verification rules below.
verification.publicationStatusPublicationStatusReport-Independent publication update report: status, targetDoi, source, checkedAt, notices and reasonCode. No recorded update does not prove absence of retraction.
idUUID-Persisted citation identifier.
statusstring-VERIFIED, PROBABLY_VERIFIED, AMBIGUOUS, CONFLICTING_METADATA, NOT_FOUND, INSUFFICIENT_EVIDENCE, or historical POSSIBLE_HALLUCINATION (legacy only; not generated by new checks).
confidencenumber-Overall confidence from 0 to 1.
parsingConfidencenumber-Confidence that the submitted string was parsed into bibliographic fields correctly.
identityConfidencenumber-Confidence that the resolved record represents the same scholarly work as the submitted reference.
title ... publisherFieldDto | null-Resolved metadata fields. Each field includes value, confidence, algorithm, and evidence.
verificationVerificationDto-Normalized input, match scores, provider diagnostics, contradictions, and candidate matches.
renderedApastring | null-APA rendering generated during verification.
createdAtISO-8601 timestamp-Creation time in UTC.
jsonCiteWise API
{
  "id": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
  "status": "VERIFIED",
  "confidence": 0.99,
  "title": { "fieldName": "title", "value": "Attention Is All You Need", "confidence": 0.99 },
  "verification": { "matchedProviders": ["CROSSREF"], "contradictions": [], "candidates": [] },
  "renderedApa": "Vaswani, A., ... (2017).",
  "createdAt": "2026-01-15T10:20:30Z"
}
GET/api/v1/citations/{id}/publication-status

Publication updates

Free publication-status retry

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredCitation ID returned by parse or list citations.

Response

200 OK
FieldTypeRequiredDescription
status / targetDoi / source / checkedAt / notices / reasonCodePublicationStatusReport-See the localized verification rules and response example below.
jsonCiteWise API
{
  "status": "RETRACTED",
  "targetDoi": "10.1038/nature12968",
  "source": "CROSSREF",
  "checkedAt": "2026-10-26T00:00:00Z",
  "notices": [
    {
      "type": "RETRACTION",
      "doi": "10.1038/nature13598",
      "url": "https://doi.org/10.1038/nature13598",
      "date": "2014-07-02"
    }
  ],
  "reasonCode": null
}
GET/api/v1/citations/{id}/evidence

Get field evidence

Returns provider evidence grouped by metadata field. Use this to show why a field was accepted or investigate a contradiction.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredCitation ID returned by parse or list citations.

Response

200 OK
FieldTypeRequiredDescription
{fieldName}EvidenceDto[]-Dynamic keys such as title, authors, year, doi, or journal map to evidence arrays.
source / valuestring / unknown-Provider identifier and provider-returned value.
sourceReliabilitynumber-Configured provider reliability, from 0 to 1.
extractionConfidencenumber-Confidence that the value was extracted correctly.
contextMatchScorenumber-How well the provider result matches the submitted reference.
weightedScorenumber-Combined evidence score.
createdAtISO-8601 timestamp-Evidence collection time in UTC.
jsonCiteWise API
{
  "title": [
    { "source": "CROSSREF", "value": "Attention Is All You Need", "sourceReliability": 0.98, "extractionConfidence": 1.0, "contextMatchScore": 0.99, "weightedScore": 0.97, "createdAt": "2026-01-15T10:20:30Z" }
  ],
  "doi": []
}
POST/api/v1/citations/{id}/correction-proposals

Generate correction proposals

Compares the stored citation against its strongest candidates and returns provider-backed changes or unresolved conflicts.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredCitation ID returned by parse or list citations.

Response

200 OK
FieldTypeRequiredDescription
citationIdUUID-Citation being evaluated.
decisionstring-PROPOSED, NO_CHANGES, or REVIEW_REQUIRED.
changesCorrectionChangeDto[]-Field-level changes with confidence, provenance, sources, and reason.
unresolvedConflictsstring[]-Conflicts that could not be resolved automatically.
jsonCiteWise API
{
  "citationId": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
  "decision": "PROPOSED",
  "changes": [{ "field": "doi", "changeType": "RECOVERED", "originalValue": null, "proposedValue": "10.48550/arXiv.1706.03762", "confidence": 0.98, "provenance": "PROVIDER_BACKED", "sources": ["CROSSREF"], "reason": "Proposed value is supported by external scholarly metadata" }],
  "unresolvedConflicts": []
}
POST/api/v1/citations/render

Render citation styles

Renders a stored citation or caller-supplied metadata in one or more supported styles. Exactly one of citationId or metadata is required.

API key or Clerk JWThttps://api.citewise.dev

Request body

Content-Type: application/json

FieldTypeRequiredDescription
citationIdUUID-Stored citation. Mutually exclusive with metadata.
metadataCitationMetadataRequest-Inline metadata. Include at least one field; mutually exclusive with citationId.
stylesstring[]-Up to 10 styles. Defaults to ["APA7"]. Supported: APA7, MLA9, CHICAGO_AUTHOR_DATE, IEEE, VANCOUVER, GBT7714.
jsonCiteWise API
{
  "citationId": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
  "styles": ["APA7", "MLA9", "IEEE"]
}

Response

200 OK
FieldTypeRequiredDescription
citationIdUUID | null-Stored citation ID, or null when rendering inline metadata.
renderingsobject-Map of canonical style name to rendered citation string.
jsonCiteWise API
{
  "citationId": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
  "renderings": { "APA7": "Vaswani, A., ... (2017).", "MLA9": "Vaswani, Ashish, et al. ...", "IEEE": "A. Vaswani et al., ..." }
}
Implementation notes

For inline rendering, send metadata with fields such as title, authors, year, doi, and publisher. Inline metadata is not persisted.

BATCH JOBS

Process larger workflows

Use durable jobs for many references, progress polling, or deduplication. Job creation returns HTTP 202 and a Location header.

POST/api/v1/citation-imports/preview

Preview a structured import

Parses a multipart BibTeX, RIS, EndNote Tagged Text, or CSL-JSON file and returns counts, warnings, and sample metadata without reserving quota. RIS and EndNote use dedicated tolerant parsers; CSL-JSON uses Jackson; BibTeX uses citeproc-java's jbibtex reader. citeproc-java is used later for CSL rendering.

API key or Clerk JWThttps://api.citewise.dev

Request body

Content-Type: multipart/form-data

FieldTypeRequiredDescription
filemultipart filerequiredA .bib, .ris, .enw, or .json CSL-JSON file, up to 10 MB and 1,000 records.
formatstring (query)-Optional explicit format: BIBTEX, RIS, ENDNOTE, or CSL_JSON. The extension is used by default.
bashCiteWise API
curl -X POST "https://api.citewise.dev/api/v1/citation-imports/preview?format=RIS" -H "X-API-Key: cw_live_your_key" -F "file=@references.ris"

The upload is processed for this request only; no original file is persisted.

Response

200 OK
FieldTypeRequiredDescription
formatstring-Detected format: BIBTEX, RIS, ENDNOTE, or CSL_JSON.
totalRecordsinteger-Number of source records found in the file.
validRecordsinteger-Records successfully converted to common CSL metadata.
invalidRecordsinteger-Records that could not be converted and will not enter a job.
warningCountinteger-Total warnings across all parsed records.
recordsImportRecordPreview[]-All parsed record previews, including index, sourceKey, title, authors, year, doi, warnings, and valid. Only valid records can be selected for a job.
jsonCiteWise API
{
  "format": "BIBTEX",
  "totalRecords": 2, "validRecords": 2, "invalidRecords": 0, "warningCount": 0,
  "records": [{ "index": 1, "sourceKey": "vaswani2017", "title": "Attention Is All You Need", "authors": "Vaswani, Ashish", "year": 2017, "doi": null, "warnings": [], "valid": true }]
}
POST/api/v1/citation-imports/jobs

Create an import job

Re-uploads a previously previewed structured file and creates a durable verification job. Only valid records are submitted, at least two valid records are required, and quota is reserved at this point.

API key or Clerk JWThttps://api.citewise.dev

Request body

Content-Type: multipart/form-data

FieldTypeRequiredDescription
filemultipart filerequiredThe same supported structured file used for preview.
stylesstring[] (repeated multipart parts)-Optional repeated form parts such as styles=APA7&styles=MLA9; defaults to APA7.
formatstring (query)-Optional explicit format override.
selectedIndicesinteger[] (repeated multipart parts)-Optional distinct valid record indices from preview. Omit to submit all valid records; at least two selected records are required.
bashCiteWise API
curl -X POST "https://api.citewise.dev/api/v1/citation-imports/jobs?format=RIS" -H "X-API-Key: cw_live_your_key" -F "file=@references.ris" -F "styles=APA7" -F "styles=IEEE"

The response is the same 202 job resource returned by /api/v1/citation-jobs. Each item stores its original source record, while the upload itself is not persisted. At least two valid records are required.

Response

202 Accepted
FieldTypeRequiredDescription
idUUID-Job identifier used for polling.
typestring-VERIFY_AND_CORRECT or DEDUPLICATE.
statusstring-PREPARING, QUEUED, RUNNING, COMPLETED, COMPLETED_WITH_ERRORS, CANCELLED, or FAILED.
totalItems / processedItemsinteger-Total inputs and items that have finished processing.
succeededItems / failedItemsinteger-Successful and failed item counters.
cancelRequestedboolean-Whether cancellation has been requested.
resultobject | null-Aggregate result when the job completes.
errorCode / errorMessagestring | null-Job-level failure details, when applicable.
createdAt ... updatedAtISO-8601 timestamp-Job lifecycle timestamps in UTC.
jsonCiteWise API
{
  "id": "3f0f7d3c-7033-4b0d-92df-5e8d5ab2e7f6",
  "type": "VERIFY_AND_CORRECT",
  "status": "QUEUED",
  "totalItems": 2, "processedItems": 0, "succeededItems": 0, "failedItems": 0
}
POST/api/v1/citation-jobs

Create a citation job

Queues verification/correction or deduplication work. Web batch access uses the available monthly allowance and purchased credits; Free workspaces without purchased credits are limited to 10 items per job. API-key access still requires an eligible subscription. Deduplication requires Pro or Team / Lab and at least two existing citation IDs.

API key or Clerk JWThttps://api.citewise.dev

Request body

Content-Type: application/json

FieldTypeRequiredDescription
typestringrequiredVERIFY_AND_CORRECT for references, or DEDUPLICATE for existing citationIds.
referencesstring[]-Up to 1,000 references, each up to 8,000 characters. Required for VERIFY_AND_CORRECT.
citationIdsUUID[]-Up to 1,000 stored citation IDs. Required for DEDUPLICATE.
options.stylesstring[]-Up to 10 render styles. Defaults to ["APA7"].
jsonCiteWise API
{
  "type": "VERIFY_AND_CORRECT",
  "references": ["Vaswani A. Attention Is All You Need. 2017.", "Devlin J. BERT: Pre-training of Deep Bidirectional Transformers. 2019."],
  "options": { "styles": ["APA7", "IEEE"] }
}

Response

202 Accepted
FieldTypeRequiredDescription
idUUID-Job identifier used for polling.
typestring-VERIFY_AND_CORRECT or DEDUPLICATE.
statusstring-PREPARING, QUEUED, RUNNING, COMPLETED, COMPLETED_WITH_ERRORS, CANCELLED, or FAILED.
totalItems / processedItemsinteger-Total inputs and items that have finished processing.
succeededItems / failedItemsinteger-Successful and failed item counters.
cancelRequestedboolean-Whether cancellation has been requested.
resultobject | null-Aggregate result when the job completes.
errorCode / errorMessagestring | null-Job-level failure details, when applicable.
createdAt ... updatedAtISO-8601 timestamp-Job lifecycle timestamps in UTC.
jsonCiteWise API
{
  "id": "3f0f7d3c-7033-4b0d-92df-5e8d5ab2e7f6",
  "type": "VERIFY_AND_CORRECT",
  "status": "QUEUED",
  "totalItems": 2, "processedItems": 0, "succeededItems": 0, "failedItems": 0,
  "cancelRequested": false, "result": null, "errorCode": null, "errorMessage": null,
  "createdAt": "2026-01-15T10:20:30Z", "startedAt": null, "completedAt": null, "updatedAt": "2026-01-15T10:20:30Z"
}
GET/api/v1/citation-jobs

List audit jobs

Returns VERIFY_AND_CORRECT audit tasks for the authenticated workspace, newest first. Opening a task reads its saved state and does not submit it again.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
pageinteger (query)-Zero-indexed page number. Defaults to 0.
limitinteger (query)-Page size, defaults to 50 and is clamped to 1-100.

Response

200 OK
FieldTypeRequiredDescription
[]CitationJobResponse[]-Saved audit tasks with status, counters, timestamps, and error details.
jsonCiteWise API
[
  {
    "id": "3f0f7d3c-7033-4b0d-92df-5e8d5ab2e7f6",
    "type": "VERIFY_AND_CORRECT",
    "status": "COMPLETED",
    "totalItems": 3, "processedItems": 3, "succeededItems": 3, "failedItems": 0,
    "createdAt": "2026-10-31T10:20:30Z"
  }
]
GET/api/v1/citation-jobs/{id}

Get job status

Polls the current state and aggregate counters for a job.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredJob ID returned by create a citation job.

Response

200 OK
FieldTypeRequiredDescription
idUUID-Job identifier used for polling.
typestring-VERIFY_AND_CORRECT or DEDUPLICATE.
statusstring-PREPARING, QUEUED, RUNNING, COMPLETED, COMPLETED_WITH_ERRORS, CANCELLED, or FAILED.
totalItems / processedItemsinteger-Total inputs and items that have finished processing.
succeededItems / failedItemsinteger-Successful and failed item counters.
cancelRequestedboolean-Whether cancellation has been requested.
resultobject | null-Aggregate result when the job completes.
errorCode / errorMessagestring | null-Job-level failure details, when applicable.
createdAt ... updatedAtISO-8601 timestamp-Job lifecycle timestamps in UTC.
jsonCiteWise API
{
  "id": "3f0f7d3c-7033-4b0d-92df-5e8d5ab2e7f6",
  "type": "VERIFY_AND_CORRECT",
  "status": "COMPLETED_WITH_ERRORS",
  "totalItems": 2, "processedItems": 2, "succeededItems": 1, "failedItems": 1,
  "cancelRequested": false, "result": null, "errorCode": null, "errorMessage": null,
  "createdAt": "2026-01-15T10:20:30Z", "startedAt": "2026-01-15T10:20:31Z", "completedAt": "2026-01-15T10:21:02Z", "updatedAt": "2026-01-15T10:21:02Z"
}
GET/api/v1/citation-jobs/{id}/items

List job items

Returns item-level results and failures in item-index order.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredJob ID returned by create a citation job.
pageinteger (query)-Zero-indexed page number. Defaults to 0.
sizeinteger (query)-Page size, defaults to 100 and is clamped to 1-200.

Response

200 OK
FieldTypeRequiredDescription
jobId / page / sizeUUID / integer / integer-Job ID and effective zero-indexed pagination values. Size is clamped to 1-200.
totalItems / totalPagesinteger-Pagination totals.
itemsCitationJobItemResponse[]-Each item includes its input/result, audit risk, recommended action, human review decision, selected candidate, review note, reviewer, review time, and item-level errors.
items[].rulesetVersionstring | null-Rules used for this item; null for legacy results. Historical results are not rewritten.
items[].recommendedActionstring | null-Recommended next step. RETRY means the check did not complete and should be run again.
jsonCiteWise API
{
  "jobId": "3f0f7d3c-7033-4b0d-92df-5e8d5ab2e7f6",
  "page": 0,
  "size": 100,
  "totalItems": 1,
  "totalPages": 1,
  "items": [
    {
      "id": "a3c12345-7033-4b0d-92df-5e8d5ab2e7f6",
      "index": 0,
      "status": "SUCCEEDED",
      "reference": "Vaswani A. et al. Attention Is All You Need. 2017. doi:10.48550/arXiv.1706.03762",
      "sourceRecord": null,
      "inputCitationId": null,
      "citationId": "7d9a1234-7033-4b0d-92df-5e8d5ab2e7f6",
      "rulesetVersion": "2026-10-v2",
      "riskLevel": "LOW",
      "recommendedAction": "NO_ACTION",
      "riskReasons": [],
      "result": {
        "citation": {
          "citationId": "7d9a1234-7033-4b0d-92df-5e8d5ab2e7f6",
          "status": "VERIFIED",
          "confidence": 0.98,
          "citation": {
            "id": "7d9a1234-7033-4b0d-92df-5e8d5ab2e7f6",
            "status": "VERIFIED",
            "confidence": 0.98,
            "verification": {
              "assessment": {
                "rulesetVersion": "2026-10-v2",
                "checkCompleteness": "COMPLETE",
                "coverage": "IDENTIFIER_LOOKUP",
                "reasonCodes": [],
                "recommendedAction": "NO_ACTION"
              }
            }
          }
        },
        "correctionProposal": null,
        "rendering": null
      },
      "reviewDecision": null,
      "errorCode": null,
      "errorMessage": null
    }
  ]
}
Implementation notes

Optional query parameters are page (default 0) and size (default 100, maximum 200).

PATCH/api/v1/citation-jobs/{jobId}/items/{itemId}/review

Record a human review decision

Records the reviewer decision separately from CiteWise's system-generated risk assessment. The original reference and system result remain unchanged. Only a completed item can be reviewed.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
jobIdUUIDrequiredReference Audit job ID.
itemIdUUIDrequiredItem ID returned by the job items endpoint.

Request body

Content-Type: application/json

FieldTypeRequiredDescription
decisionstringrequiredACCEPT_RESOLVED, ACCEPT_CORRECTION, CHOOSE_CANDIDATE, KEEP_ORIGINAL, MARK_FOR_REVIEW, or UNABLE_TO_DETERMINE.
candidateSourceIdstring-Required for CHOOSE_CANDIDATE. Must match a candidate sourceId returned for this item.
notestring-Optional reviewer note, up to 2,000 characters.
jsonCiteWise API
{
  "decision": "CHOOSE_CANDIDATE",
  "candidateSourceId": "CROSSREF:10.5555/test",
  "note": "Confirmed against the publisher record."
}

Response

200 OK
FieldTypeRequiredDescription
reviewDecisionstring-Persisted human decision.
selectedCandidateSourceIdstring | null-Selected candidate for CHOOSE_CANDIDATE.
reviewNotestring | null-Reviewer-supplied note.
reviewedBy / reviewedAtUUID | null / timestamp-Reviewer identity when available and the decision time.
jsonCiteWise API
{
  "id": "a3c1...",
  "riskLevel": "REVIEW",
  "reviewDecision": "CHOOSE_CANDIDATE",
  "selectedCandidateSourceId": "CROSSREF:10.5555/test",
  "reviewNote": "Confirmed against the publisher record.",
  "reviewedAt": "2026-10-09T08:30:00Z"
}
Implementation notes

Human decisions are review-layer data. They do not replace the system risk level or mutate the original submitted reference.

POST/api/v1/citation-jobs/{id}/cancel

Cancel a job

Requests cancellation of a queued or running job. Terminal jobs are returned unchanged.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredJob ID returned by create a citation job.

Response

200 OK
FieldTypeRequiredDescription
idUUID-Job identifier used for polling.
typestring-VERIFY_AND_CORRECT or DEDUPLICATE.
statusstring-PREPARING, QUEUED, RUNNING, COMPLETED, COMPLETED_WITH_ERRORS, CANCELLED, or FAILED.
totalItems / processedItemsinteger-Total inputs and items that have finished processing.
succeededItems / failedItemsinteger-Successful and failed item counters.
cancelRequestedboolean-Whether cancellation has been requested.
resultobject | null-Aggregate result when the job completes.
errorCode / errorMessagestring | null-Job-level failure details, when applicable.
createdAt ... updatedAtISO-8601 timestamp-Job lifecycle timestamps in UTC.
jsonCiteWise API
{
  "id": "3f0f7d3c-7033-4b0d-92df-5e8d5ab2e7f6", "type": "VERIFY_AND_CORRECT", "status": "CANCELLED",
  "totalItems": 100, "processedItems": 12, "succeededItems": 12, "failedItems": 0, "cancelRequested": true,
  "result": null, "errorCode": null, "errorMessage": null, "createdAt": "2026-01-15T10:20:30Z", "startedAt": "2026-01-15T10:20:31Z", "completedAt": "2026-01-15T10:21:02Z", "updatedAt": "2026-01-15T10:21:02Z"
}
GET/api/v1/citation-jobs/{id}/preflight

Get Reference Preflight report

Returns persisted audit results without consuming new checks. New NOT_FOUND results require REVIEW; metadata conflicts are HIGH. INCOMPLETE and NOT_RUN checks are excluded from bibliographic-risk counts and recommend retrying. Publication updates are independent. BLOCKING remains in the response enum for compatibility with historical reports.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredJob ID returned by create a citation job.

Response

200 OK
FieldTypeRequiredDescription
schemaVersioninteger-Current Reference Audit schema version. Version 2 includes human review, check completeness, ruleset version and publication updates.
summaryPreflightSummary-Counts for verified, review, blocking, failures, risk distribution, reviewed, pendingReview, and unableToDetermine.
itemsCitationJobItemResponse[]-Item results enriched with risk assessment and human review fields.
limitationsstring[]-Important interpretation limits for the report.
jsonCiteWise API
{
  "schemaVersion": 2,
  "product": "CiteWise Reference Audit",
  "summary": { "jobId": "3f0f...", "complete": true, "totalReferences": 20, "processedReferences": 20, "verified": 14, "needsReview": 6, "blocking": 0, "reviewed": 12, "pendingReview": 8, "unableToDetermine": 1 },
  "items": [{ "index": 0, "riskLevel": "HIGH", "recommendedAction": "REPLACE_IDENTIFIER", "reviewDecision": "MARK_FOR_REVIEW" }],
  "limitations": ["Provider availability can affect an individual result."]
}
Implementation notes

A QUEUED or RUNNING job returns an incomplete report. CANCELLED and COMPLETED_WITH_ERRORS reports may contain only the records processed before cancellation or failure.

GET/api/v1/citation-jobs/{id}/preflight/export

Export a Preflight report

Downloads the persisted Reference Audit as JSON, CSV, or a human-readable HTML report. Exporting does not consume verification quota and is scoped to the authenticated workspace.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredJob ID returned by create a citation job.
formatstring (query)requiredjson, csv, or html.
includestring (query)optionalComma-separated optional sections for CSV and HTML: evidence (per-field confidence and the value each source returned), candidates, diagnostics, or all. Omit for the default columns. JSON always contains the full stored result.

Response

200 OK
FieldTypeRequiredDescription
JSONapplication/json-Versioned report with summary, enriched items, and limitations.
CSVtext/csv; charset=UTF-8-Flat spreadsheet-friendly rows with risk level, action, key metadata, and errors.
HTMLtext/html; charset=UTF-8-Standalone human-readable audit report suitable for browser viewing, printing, or saving as PDF.
jsonCiteWise API
GET /api/v1/citation-jobs/3f0f.../preflight/export?format=csv

Content-Disposition: attachment; filename="citewise-preflight-3f0f7d3c.csv"
Implementation notes

JSON and CSV include human review fields. HTML is a standalone report; direct PDF generation remains reserved for a later release after multilingual font rendering is verified.

WORKSPACE

Manage usage and credentials

These endpoints are workspace-scoped. Console users normally use a Clerk session; API-key access is also accepted by the current backend, while billing checkout still requires an interactive Clerk session.

GET/api/v1/console/overview

Get workspace overview

Returns the current user, workspace, plan entitlement, monthly reference usage, and admin flag.

API key or Clerk JWThttps://api.citewise.dev

Response

200 OK
FieldTypeRequiredDescription
userobject-id, email, displayName, imageUrl, and role.
workspaceobject-id, name, and slug.
entitlementEntitlementSnapshot-Plan code, status, monthly allowance, one-time credit balance, throughput, concurrency, and API access.
referencesUsedinteger-Settled checks consumed from the current monthly allowance, excluding active reservations and purchased credits.
referencesReservedinteger-Active reservations across monthly allowance and purchased credits. These are not settled usage.
monthlyReferencesReservedinteger-Active reservations against the current monthly allowance. Subtract this and referencesUsed from monthlyReferences to calculate the available monthly balance.
adminboolean-Whether the user has admin privileges.
jsonCiteWise API
{
  "user": { "id": "...", "email": "researcher@example.com", "displayName": "Ada", "imageUrl": null, "role": "USER" },
  "workspace": { "id": "...", "name": "Ada's workspace", "slug": "ada-workspace" },
  "entitlement": { "planCode": "FREE", "subscriptionStatus": "ACTIVE", "monthlyReferences": 10, "creditBalance": 100, "requestsPerMinute": 10, "concurrency": 1, "apiAccess": false, "currentPeriodEnd": null, "cancelAtPeriodEnd": false, "hasSubscription": false, "canCancel": false, "canResume": false },
  "referencesUsed": 2, "referencesReserved": 1, "monthlyReferencesReserved": 1, "admin": false
}
GET/api/v1/api-keys

List API keys

Lists key metadata for the workspace. Secret material is never returned by this endpoint.

API key or Clerk JWThttps://api.citewise.dev

Response

200 OK
FieldTypeRequiredDescription
id / nameUUID / string-Key identifier and human-readable name.
prefix / last4string-Safe display prefix and last four secret characters.
statusstring-ACTIVE or REVOKED.
createdAt / lastUsedAt / expiresAttimestamp | null-Key lifecycle metadata.
jsonCiteWise API
[
  { "id": "c4c7...", "name": "Production pipeline", "prefix": "cw_live_a1b2c3", "last4": "xYz9", "status": "ACTIVE", "createdAt": "2026-01-15T10:20:30Z", "lastUsedAt": null, "expiresAt": null }
]
POST/api/v1/api-keys

Create an API key

Creates a paid-plan API credential. Store the returned apiKey immediately; it cannot be retrieved later.

API key or Clerk JWThttps://api.citewise.dev

Request body

Content-Type: application/json

FieldTypeRequiredDescription
namestringrequiredHuman-readable name, trimmed and limited to 100 characters.
jsonCiteWise API
{
  "name": "Production pipeline"
}

Response

200 OK
FieldTypeRequiredDescription
keyApiKeyView-Safe key metadata returned for display.
apiKeystring-Complete secret. This is the only response that contains it.
jsonCiteWise API
{
  "key": { "id": "c4c7...", "name": "Production pipeline", "prefix": "cw_live_a1b2c3", "last4": "xYz9", "status": "ACTIVE", "createdAt": "2026-01-15T10:20:30Z", "lastUsedAt": null, "expiresAt": null },
  "apiKey": "cw_live_a1b2c3_your-secret-value"
}
Implementation notes

API access must be enabled for the workspace. A workspace can have up to 10 active keys. Treat the secret like a password.

DELETE/api/v1/api-keys/{id}

Revoke an API key

Immediately marks a workspace API key as revoked. Existing requests using it will fail authentication.

API key or Clerk JWThttps://api.citewise.dev

Path and query parameters

FieldTypeRequiredDescription
idUUIDrequiredAPI key ID returned by list API keys.

Response

204 No Content

No response body.

Implementation notes

The response has no body. Keep the key ID from the list endpoint for revocation workflows.

BILLING

Manage plans and billing

Billing endpoints are used by the Console. Creem is the system of record for checkout, subscription lifecycle, payment methods, and invoices.

GET/api/v1/billing/subscription

Get subscription entitlement

Returns the effective plan and limits for the authenticated workspace, including free-plan defaults and cancellation state.

API key or Clerk JWThttps://api.citewise.dev

Response

200 OK
FieldTypeRequiredDescription
planCode / subscriptionStatusstring-Effective plan and current subscription state.
monthlyReferencesinteger-Monthly reference allowance.
creditBalanceinteger-Remaining one-time credits, consumed after the monthly allowance.
requestsPerMinute / concurrencyinteger-Throughput and concurrent execution limits.
apiAccessboolean-Whether workspace API keys are enabled.
currentPeriodEndtimestamp | null-Current billing period end.
cancelAtPeriodEndboolean-Whether cancellation is scheduled at the end of the current period.
currentPeriodStarttimestamp | null-Current billing period start.
hasSubscriptionboolean-Whether the workspace has a provider-managed paid subscription.
canCancel / canResumeboolean-Whether the current subscription state supports the corresponding lifecycle action.
jsonCiteWise API
{
  "planCode": "PRO", "subscriptionStatus": "ACTIVE", "monthlyReferences": 500, "creditBalance": 100, "requestsPerMinute": 60, "concurrency": 5, "apiAccess": true,
  "currentPeriodEnd": "2026-02-15T00:00:00Z", "cancelAtPeriodEnd": false, "hasSubscription": true, "canCancel": true, "canResume": false
}
POST/api/v1/billing/checkout

Create a checkout session

Creates a hosted Creem checkout session for a configured subscription or one-time credit pack and returns the URL to open.

Clerk JWT requiredhttps://api.citewise.dev

Request body

Content-Type: application/json

FieldTypeRequiredDescription
productKeystringrequiredConfigured product key, such as pro-monthly, team-yearly, starter-pack, research-pack, or lab-pack.
jsonCiteWise API
{
  "productKey": "pro-monthly"
}

Response

200 OK
FieldTypeRequiredDescription
checkoutIdstring-Provider checkout identifier.
checkoutUrlstring-Hosted checkout URL.
jsonCiteWise API
{
  "checkoutId": "ch_123456",
  "checkoutUrl": "https://checkout.creem.io/ch_123456"
}
POST/api/v1/billing/checkout/confirm

Confirm a returned checkout

Reconciles a completed hosted checkout using a server-to-server Creem lookup. CiteWise validates checkout status, configured product ID, and workspace metadata before updating entitlements; browser-supplied plan data is never trusted.

Clerk JWT requiredhttps://api.citewise.dev

Request body

Content-Type: application/json

FieldTypeRequiredDescription
checkoutIdstringrequiredCheckout ID returned by create checkout.
jsonCiteWise API
{
  "checkoutId": "chk_123456"
}

Response

200 OK
FieldTypeRequiredDescription
hasSubscriptionboolean-True when a recurring checkout has been linked successfully.
planCode / subscriptionStatusstring-The reconciled workspace entitlement.
jsonCiteWise API
{
  "planCode": "PRO", "subscriptionStatus": "ACTIVE", "hasSubscription": true, "canCancel": true
}
POST/api/v1/billing/subscription/cancel

Cancel a subscription

Schedules cancellation at the end of the current billing period. Access remains active until then and the request is idempotent. Immediate cancellation is restricted to administrators; regular users should always use scheduled cancellation.

Clerk JWT requiredhttps://api.citewise.dev

Request body

Content-Type: application/json

FieldTypeRequiredDescription
modestring (optional)-scheduled (default) or immediate.
jsonCiteWise API
{
  "mode": "scheduled"
}

Response

200 OK
FieldTypeRequiredDescription
cancelAtPeriodEndboolean-True after a scheduled cancellation.
currentPeriodEndtimestamp | null-The date through which access remains available.
jsonCiteWise API
{
  "planCode": "PRO", "subscriptionStatus": "SCHEDULED_CANCEL", "cancelAtPeriodEnd": true,
  "currentPeriodEnd": "2026-02-15T00:00:00Z"
}
POST/api/v1/billing/subscription/resume

Resume a subscription

Removes a scheduled cancellation (or resumes a paused subscription) before the current period ends. The operation is idempotent for an already-active subscription.

Clerk JWT requiredhttps://api.citewise.dev

Response

200 OK
FieldTypeRequiredDescription
subscriptionStatusstring-Usually ACTIVE after a successful resume.
cancelAtPeriodEndboolean-False after cancellation is removed.
jsonCiteWise API
{
  "planCode": "PRO", "subscriptionStatus": "ACTIVE", "cancelAtPeriodEnd": false
}
POST/api/v1/billing/portal

Open the billing portal

Generates a short-lived Creem customer portal link for payment methods, invoices, and provider-side subscription management.

Clerk JWT requiredhttps://api.citewise.dev

Response

200 OK
FieldTypeRequiredDescription
customerPortalLinkstring-Hosted Creem customer portal URL.
jsonCiteWise API
{
  "customerPortalLink": "https://creem.io/customer-portal/..."
}

Errors

Errors

Build citation quality control into your research workflow. Resolve metadata, inspect provider evidence, propose corrections, render styles, and process large batches through one workspace-aware API.

jsonCiteWise API
{
  "timestamp": "2026-01-15T10:20:30Z",
  "code": "QUOTA_EXCEEDED",
  "message": "monthly reference quota exhausted",
  "traceId": "f8c0f4d2a1b84e24"
}
HTTPCodeMeaning
400INVALID_REFERENCE / UNSUPPORTED_CITATION_STYLE / FUSION_FAILEDThe request body is invalid, a required field is missing, a citation style is unsupported, or evidence fusion could not complete.
400INVALID_REQUESTThe request body, path parameter, or required header is malformed.
401UNAUTHENTICATED / API_KEY_INVALID / WEBHOOK_SIGNATURE_INVALIDNo valid Clerk JWT or X-API-Key was provided, or a signed webhook request failed verification.
403FORBIDDEN / SUBSCRIPTION_REQUIREDThe credential is valid but cannot access this workspace or paid-only feature.
404CITATION_NOT_FOUND / JOB_NOT_FOUNDThe resource does not exist in the authenticated workspace.
405METHOD_NOT_ALLOWEDThe HTTP method is not supported by this endpoint.
415UNSUPPORTED_MEDIA_TYPEThe request Content-Type is not supported.
429QUOTA_EXCEEDED / API_KEY_LIMIT_REACHED / RATE_LIMIT_EXCEEDED / CONCURRENCY_LIMIT_EXCEEDED / SYSTEM_BUSYThe workspace allowance, active-key limit, or processing capacity has been reached. Honor Retry-After when present.
502/503BILLING_UNAVAILABLE / PROVIDER_UNAVAILABLE / PROVIDER_TIMEOUTA downstream billing or scholarly provider is unavailable. Retry with backoff.
500DATABASE_ERROR / INTERNAL_ERRORAn unexpected server error. Include traceId when contacting support.

Need help with an integration?

Contact support
Citation Verification API Reference | CiteWise