CiteWise API リファレンス
研究ワークフローに引用品質管理を組み込みます。メタデータの解決、根拠の確認、修正案、スタイル整形、大規模バッチを一つの API で実行できます。
最初のリクエスト
最初のリクエスト
研究ワークフローに引用品質管理を組み込みます。メタデータの解決、根拠の確認、修正案、スタイル整形、大規模バッチを一つの 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
}'認証の概要
サーバー連携には有料ワークスペースの API キーを使い、ブラウザーセッションには Clerk JWT を使います。すべてのリソースは認証済みワークスペースに限定されます。
最初のリクエストから監査レポートまで
本番統合では ID を保存し、永続ジョブをポーリングし、システムの判定と人の判断を分けます。
アクセス範囲
Pro または Team / Lab でワークスペース API キーを作り、サーバー側だけで保管します。クレジットパックは月間枠の後に検証回数を追加し、Webバッチ監査も利用できますが、APIには有料サブスクリプションが必要です。ブラウザーでは Clerk JWT を使用します。
1. 解析またはプレビュー
1 件は POST /citations/parse を使います。RIS、BibTeX、EndNote .enw、CSL-JSON は multipart で先にプレビューします。プレビューは構造解析のみで、学術的同一性の検証や枠の予約は行いません。
2. 永続ジョブを作成
文献リストは /citation-jobs に送るか、/citation-imports/jobs に再アップロードします。返されたジョブ ID と Location を保存します。ここで検証枠が予約されます。
3. 適切にポーリング
完了、一部エラー、失敗、取消まで Location を GET します。429/503 では Retry-After と上限付き指数バックオフを使い、ジョブを不用意に再作成しないでください。
4. 確認して出力
項目と Reference Preflight を取得し、確認 API で人の判断を記録して、HTML、CSV、JSON を出力します。元の参考文献と項目エラーを監査履歴に残します。
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"multipart の Content-Type は手動指定せず、curl または HTTP ライブラリに boundary を付けさせてください。
401 は認証情報の欠落・無効、403 はプランまたは権限不足、429 は枠・速度・同時実行制限、503 は一時的な容量不足です。再試行可能な応答だけを再試行します。
検証ルールとデータ処理
同一性と根拠
未検出は完了した検索に一致がないことを示し、捏造やAI生成の証明ではありません。過去の POSSIBLE_HALLUCINATION は旧ルールで一致がなかったことだけを示します。LLM補完は検索の手掛かりのみで、評価には元の入力フィールドだけを使います。
検証の完了度
COMPLETE:該当する検索戦略が完了。PARTIAL:一部検索が未完了。INCOMPLETE:利用可能な検索結果なし。NOT_RUN:未確認。診断の欠落は成功ではありません。DOIなしでは Crossref、OpenAlex、Semantic Scholar のうち2つと、明示された PMID/arXiv の該当検索が必要です。DOI未検出には Crossref と DataCite の完了が必要ですが、完全一致DOIレコードは単独で同一性を裏付けます。情報源の失敗も表示します。
予約と精算
実行前に検証枠を予約します。提供済み COMPLETE 結果は一致なしや根拠不足でも1枠を消費します。PARTIAL は VERIFIED または根拠付きDOI競合のみ消費し、その他は解放します。技術的失敗、未完了、取消後の未実行項目は解放します。元の月または購入に戻し、返金・凍結された購入は復活させません。プレビュー、閲覧、人による確認、出力、出版状況の再確認は無料です。
WebバッチとAPI
無料プランは毎月50枠、Webバッチは残高内で1タスク最大10件です。クレジットパックでもWebバッチ監査を利用できますが、APIや速度・同時実行上限は変わりません。APIには Pro または Team / Lab が必要です。送信前に貼付プレビューを確認・編集してください。自動分割の正確性は保証されません。
出版情報の更新
同一性が確認されたDOIについて Crossref の更新関係から撤回、訂正、懸念表明を確認します。通知にはDOI、種類、日付、情報源、確認時刻が含まれます。同一性検証とは独立しており、情報源の失敗で確認済み同一性を否定しません。更新記録なしは撤回歴なしを保証せず、網羅性と鮮度は情報源に依存します。
第三者と保存
処理するのは送信された書誌情報と識別子で、Word/PDF原稿全体の抽出ではありません。検索は Crossref、DataCite、OpenAlex、Semantic Scholar、PubMed、arXiv に送られる場合があります。任意のLLM補完が有効なら書誌情報を設定済みモデル提供者にも送信しますが、検証根拠には使いません。元のアップロードファイルは保持せず、参考文献、取込元レコード、結果、診断、確認判断は追跡用に保存します。自動削除期限は保証しません。質問や削除依頼は milo4210@gmail.com へ。
追加API契約(2026-10-v2)
既存の同一性ステータスは互換性を保ちます。新しい応答に verification.assessment と verification.publicationStatus を追加します。新規文献、ジョブ項目、出力にルール版を記録し、レポート schemaVersion は2です。過去結果は再分類しません。理由コードと列挙値は翻訳しない安定した機械値です。
出版状況の無料再確認
GET /api/v1/citations/{id}/publication-status は所有ワークスペースのAPIキーまたはClerk JWTが必要です。追加枠を消費せず、過去結果を書き換えずにキャッシュまたは更新済みレポートを返します。フィールド:status、targetDoi、source、checkedAt、notices[{type,doi,url,date}]、reasonCode。エラーは通常の401/403/404契約です。
{
"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
リクエスト規約
リクエスト規約
研究ワークフローに引用品質管理を組み込みます。メタデータの解決、根拠の確認、修正案、スタイル整形、大規模バッチを一つの API で実行できます。
コンテンツタイプ
JSON or multipartリスク、主要メタデータ、人による確認項目を含むダウンロード可能な監査ファイルです。
追跡可能性
X-Trace-Id任意 request ID. The response exposes the trace ID for support.
ページング
page + sizeバッチ項目のページは 0 始まりで、サイズは 200 件までです。
再試行
Retry-Afterレート、同時実行数、システム混雑の応答ではこのヘッダーに従ってください。
引用 API
参考文献を検証・拡張
まず解析し、返された citationId で根拠、修正、整形を取得します。すべての引用 API はワークスペース単位です。
/api/v1/citations/parse参考文献を解析・検証
現在のワークスペース内のリソースと関連メタデータを返します。
リクエスト本文
コンテンツタイプ: application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| reference | string | 必須 | 元の引用、DOI、URL、または不完全な参考文献。 最大 8,000 文字。 |
| async | boolean | 任意 | Reserved for asynchronous processing. デフォルト false; send false for the immediate parse response. |
{
"reference": "Vaswani, A. Attention Is All You Need. 2017.",
"async": false
}レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| citationId | UUID | - | 識別子 for follow-up citation endpoints. |
| status | string | - | Verification decision. |
| confidence | number | - | 全体の信頼度を 0 から 1 で示します。 |
| citation | CitationDto | - | Full persisted citation, metadata fields, verification details, and APA rendering. |
{
"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"
}
}現在のワークスペース内のリソースと関連メタデータを返します。
/api/v1/citations最近の参考文献を一覧
返します saved citations for the authenticated workspace, newest first. Reading history does not rerun verification or consume credits.
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| page | integer (query) | - | Zero-indexed page number. デフォルト 0. |
| limit | integer (query) | - | Page size, defaults to 50 and is clamped to 1-100. |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| [] | CitationSummary[] | - | このフィールドは結果または抽出値の信頼度を 0 から 1 で示します。 |
[
{
"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"
}
]/api/v1/citations/{id}参考文献を取得
現在のワークスペース内のリソースと関連メタデータを返します。
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| verification.assessment | CheckAssessment | - | rulesetVersion(ルール版)、checkCompleteness(COMPLETE/PARTIAL/INCOMPLETE/NOT_RUN)、coverage(範囲)、reasonCodes(理由)、recommendedAction(推奨対応)。検証ルールを参照。 |
| verification.publicationStatus | PublicationStatusReport | - | 独立した出版状況レポート:status、targetDoi、source、checkedAt、notices、reasonCode。更新記録なしは撤回歴なしを保証しません。 |
| id | UUID | - | 保存された参考文献の識別子です。 |
| status | string | - | VERIFIED、PROBABLY_VERIFIED、AMBIGUOUS、CONFLICTING_METADATA、NOT_FOUND、INSUFFICIENT_EVIDENCE。過去の POSSIBLE_HALLUCINATION は旧ルールの未検出を示し、新規検証では生成しません。 |
| confidence | number | - | 全体の信頼度を 0 から 1 で示します。 |
| parsingConfidence | number | - | このフィールドは結果または抽出値の信頼度を 0 から 1 で示します。 |
| identityConfidence | number | - | このフィールドは結果または抽出値の信頼度を 0 から 1 で示します。 |
| title ... publisher | FieldDto | null | - | 解決済みメタデータのフィールドです。値、信頼度、アルゴリズム、根拠を含みます。 |
| verification | VerificationDto | - | 正規化入力、マッチスコア、プロバイダー診断、矛盾、候補を含みます。 |
| renderedApa | string | null | - | APA rendering generated during verification. |
| createdAt | ISO-8601 timestamp | - | UTC の作成時刻です。 |
{
"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"
}/api/v1/citations/{id}/publication-status出版情報の更新
検証枠を消費せず、キャッシュまたは更新済みの出版状況を取得します。
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| status / targetDoi / source / checkedAt / notices / reasonCode | PublicationStatusReport | - | フィールドと列挙値は以下の検証ルールとレスポンス例を参照してください。 |
{
"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
}/api/v1/citations/{id}/evidenceフィールド根拠を取得
返します provider evidence grouped by metadata field. Use this to show why a field was accepted or investigate a contradiction.
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| {fieldName} | EvidenceDto[] | - | Dynamic keys such as title, authors, year, doi, or journal map to evidence arrays. |
| source / value | string / unknown | - | プロバイダー識別子と返却値です。 |
| sourceReliability | number | - | 設定されたプロバイダー信頼性を 0 から 1 で示します。 |
| extractionConfidence | number | - | 値が正しく抽出された確度です。 |
| contextMatchScore | number | - | プロバイダー結果と入力参考文献の一致度です。 |
| weightedScore | number | - | 根拠を統合したスコアです。 |
| createdAt | ISO-8601 timestamp | - | UTC の根拠収集時刻です。 |
{
"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": []
}/api/v1/citations/{id}/correction-proposals修正案を生成
現在のワークスペース内のリソースと関連メタデータを返します。
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| citationId | UUID | - | Citation being evaluated. |
| decision | string | - | PROPOSED, NO_CHANGES, or REVIEW_REQUIRED. |
| changes | CorrectionChangeDto[] | - | このフィールドは結果または抽出値の信頼度を 0 から 1 で示します。 |
| unresolvedConflicts | string[] | - | Conflicts that could not be resolved automatically. |
{
"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": []
}/api/v1/citations/render引用スタイルを整形
Renders a stored citation or caller-supplied metadata in one or more supported styles. Exactly one of citationId or metadata is 必須.
リクエスト本文
コンテンツタイプ: application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| citationId | UUID | - | 保存された citation. Mutually exclusive with metadata. |
| metadata | CitationMetadataRequest | - | Inline metadata. Include at least one field; mutually exclusive with citationId. |
| styles | string[] | - | 最大 10 styles. デフォルト ["APA7"]. 対応: APA7, MLA9, CHICAGO_AUTHOR_DATE, IEEE, VANCOUVER, GBT7714. |
{
"citationId": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
"styles": ["APA7", "MLA9", "IEEE"]
}レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| citationId | UUID | null | - | 保存された citation ID, or null when rendering inline metadata. |
| renderings | object | - | Map of canonical style name to rendered citation string. |
{
"citationId": "7d9a7d7e-9df7-4c84-9f2a-2f4a7d9c4b11",
"renderings": { "APA7": "Vaswani, A., ... (2017).", "MLA9": "Vaswani, Ashish, et al. ...", "IEEE": "A. Vaswani et al., ..." }
}For inline rendering, send metadata with fields such as title, authors, year, doi, and publisher. Inline metadata is not persisted.
バッチジョブ
大規模ワークフローを処理
多数の参考文献、進捗確認、重複除去には永続ジョブを使用します。作成時に HTTP 202 と Location ヘッダーを返します。
/api/v1/citation-imports/preview構造化取込をプレビュー
解析結果またはジョブに含まれるレコード数です。
リクエスト本文
コンテンツタイプ: multipart/form-data
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| file | multipart file | 必須 | 構造化ファイルを処理し、形式、件数、警告、正規化メタデータを返します。 |
| format | string (query) | - | 任意 explicit format: BIBTEX, RIS, ENDNOTE, or CSL_JSON. The extension is used by default. |
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"構造化ファイルを処理し、形式、件数、警告、正規化メタデータを返します。
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| format | string | - | Detected format: BIBTEX, RIS, ENDNOTE, or CSL_JSON. |
| totalRecords | integer | - | 件数 source records found in the file. |
| validRecords | integer | - | Records successfully converted to common CSL metadata. |
| invalidRecords | integer | - | Records that could not be converted and will not enter a job. |
| warningCount | integer | - | 合計 warnings across all parsed records. |
| records | ImportRecordPreview[] | - | 全解析レコードのプレビュー。index、sourceKey、title、authors、year、doi、warnings、valid を含み、有効なレコードのみタスクに選択できます。 |
{
"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 }]
}/api/v1/citation-imports/jobs取込ジョブを作成
Re-uploads a previously previewed structured file and creates a durable verification job. Only valid records are submitted, at least two valid records are 必須, and quota is reserved at this point.
リクエスト本文
コンテンツタイプ: multipart/form-data
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| file | multipart file | 必須 | 構造化ファイルを処理し、形式、件数、警告、正規化メタデータを返します。 |
| styles | string[] (repeated multipart parts) | - | 任意 repeated form parts such as styles=APA7&styles=MLA9; defaults to APA7. |
| format | string (query) | - | 任意 explicit format override. |
| selectedIndices | integer[] (repeated multipart parts) | - | 任意。プレビューの有効なレコード番号を重複なく指定します。省略時は全有効レコードを送信し、最低2件が必要です。 |
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 必須.
レスポンス
202 Accepted| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | - | 後続リクエストで使用するリソース識別子です。 |
| type | string | - | VERIFY_AND_CORRECT or DEDUPLICATE. |
| status | string | - | PREPARING(準備中)、QUEUED(待機中)、RUNNING(実行中)、COMPLETED(完了)、COMPLETED_WITH_ERRORS(一部エラー)、CANCELLED(キャンセル)、FAILED(失敗)。 |
| totalItems / processedItems | integer | - | 合計 inputs and items that have finished processing. |
| succeededItems / failedItems | integer | - | 成功した and failed item counters. |
| cancelRequested | boolean | - | かどうか cancellation has been requested. |
| result | object | null | - | Aggregate result when the job completes. |
| errorCode / errorMessage | string | null | - | Job-level failure details, when applicable. |
| createdAt ... updatedAt | ISO-8601 timestamp | - | Job lifecycle timestamps in UTC. |
{
"id": "3f0f7d3c-7033-4b0d-92df-5e8d5ab2e7f6",
"type": "VERIFY_AND_CORRECT",
"status": "QUEUED",
"totalItems": 2, "processedItems": 0, "succeededItems": 0, "failedItems": 0
}/api/v1/citation-jobs引用ジョブを作成
検証・修正または重複除去をキューに登録します。Webの一括検証は月間残数と購入クレジットを使います。購入クレジットのないFreeは1タスク10件までです。APIキーには対応する有料契約が必要です。重複除去には Pro または Team / Lab と保存済みIDが2件以上必要です。
リクエスト本文
コンテンツタイプ: application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| type | string | 必須 | VERIFY_AND_CORRECT for references, or DEDUPLICATE for existing citationIds. |
| references | string[] | - | 最大 1,000 references, each up to 8,000 characters. Required for VERIFY_AND_CORRECT. |
| citationIds | UUID[] | - | 最大 1,000 stored citation IDs. Required for DEDUPLICATE. |
| options.styles | string[] | - | 最大 10 render styles. デフォルト ["APA7"]. |
{
"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"] }
}レスポンス
202 Accepted| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | - | 後続リクエストで使用するリソース識別子です。 |
| type | string | - | VERIFY_AND_CORRECT or DEDUPLICATE. |
| status | string | - | PREPARING(準備中)、QUEUED(待機中)、RUNNING(実行中)、COMPLETED(完了)、COMPLETED_WITH_ERRORS(一部エラー)、CANCELLED(キャンセル)、FAILED(失敗)。 |
| totalItems / processedItems | integer | - | 合計 inputs and items that have finished processing. |
| succeededItems / failedItems | integer | - | 成功した and failed item counters. |
| cancelRequested | boolean | - | かどうか cancellation has been requested. |
| result | object | null | - | Aggregate result when the job completes. |
| errorCode / errorMessage | string | null | - | Job-level failure details, when applicable. |
| createdAt ... updatedAt | ISO-8601 timestamp | - | Job lifecycle timestamps in UTC. |
{
"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"
}/api/v1/citation-jobsList audit jobs
返します VERIFY_AND_CORRECT audit tasks for the authenticated workspace, newest first. Opening a task reads its saved state and does not submit it again.
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| page | integer (query) | - | Zero-indexed page number. デフォルト 0. |
| limit | integer (query) | - | Page size, defaults to 50 and is clamped to 1-100. |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| [] | CitationJobResponse[] | - | リソースの現在の状態を返します。値は 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"
}
]/api/v1/citation-jobs/{id}ジョブ状態を取得
リソースの現在の状態を返します。値は API 定義を参照してください。
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | - | 後続リクエストで使用するリソース識別子です。 |
| type | string | - | VERIFY_AND_CORRECT or DEDUPLICATE. |
| status | string | - | PREPARING(準備中)、QUEUED(待機中)、RUNNING(実行中)、COMPLETED(完了)、COMPLETED_WITH_ERRORS(一部エラー)、CANCELLED(キャンセル)、FAILED(失敗)。 |
| totalItems / processedItems | integer | - | 合計 inputs and items that have finished processing. |
| succeededItems / failedItems | integer | - | 成功した and failed item counters. |
| cancelRequested | boolean | - | かどうか cancellation has been requested. |
| result | object | null | - | Aggregate result when the job completes. |
| errorCode / errorMessage | string | null | - | Job-level failure details, when applicable. |
| createdAt ... updatedAt | ISO-8601 timestamp | - | Job lifecycle timestamps in UTC. |
{
"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"
}/api/v1/citation-jobs/{id}/itemsジョブ項目を一覧
返します item-level results and failures in item-index order.
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
| page | integer (query) | - | Zero-indexed page number. デフォルト 0. |
| size | integer (query) | - | Page size, defaults to 100 and is clamped to 1-200. |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| jobId / page / size | UUID / integer / integer | - | Job ID and effective zero-indexed pagination values. Size is clamped to 1-200. |
| totalItems / totalPages | integer | - | ページング totals. |
| items | CitationJobItemResponse[] | - | 人による確認結果、メモ、時刻を記録し、システムのリスク判定と元の参考文献は保持します。 |
| items[].rulesetVersion | string | null | - | 項目のルール版。旧結果は null の場合があり、履歴は書き換えません。 |
| items[].recommendedAction | string | null | - | 推奨する次の対応。RETRY は検証未完了で再実行が必要なことを示します。 |
{
"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
}
]
}任意 query parameters are page (default 0) and size (default 100, maximum 200).
/api/v1/citation-jobs/{jobId}/items/{itemId}/review人による確認結果を記録
人による確認結果、メモ、時刻を記録し、システムのリスク判定と元の参考文献は保持します。
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| jobId | UUID | 必須 | 参考文献監査のリスク分類、推奨対応、確認進捗、集計を返します。 |
| itemId | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
リクエスト本文
コンテンツタイプ: application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| decision | string | 必須 | ACCEPT_RESOLVED, ACCEPT_CORRECTION, CHOOSE_CANDIDATE, KEEP_ORIGINAL, MARK_FOR_REVIEW, or UNABLE_TO_DETERMINE. |
| candidateSourceId | string | - | 後続リクエストで使用するリソース識別子です。 |
| note | string | - | 任意 reviewer note, up to 2,000 characters. |
{
"decision": "CHOOSE_CANDIDATE",
"candidateSourceId": "CROSSREF:10.5555/test",
"note": "Confirmed against the publisher record."
}レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| reviewDecision | string | - | 人による確認結果、メモ、時刻を記録し、システムのリスク判定と元の参考文献は保持します。 |
| selectedCandidateSourceId | string | null | - | Selected candidate for CHOOSE_CANDIDATE. |
| reviewNote | string | null | - | 人による確認結果、メモ、時刻を記録し、システムのリスク判定と元の参考文献は保持します。 |
| reviewedBy / reviewedAt | UUID | null / timestamp | - | 人による確認結果、メモ、時刻を記録し、システムのリスク判定と元の参考文献は保持します。 |
{
"id": "a3c1...",
"riskLevel": "REVIEW",
"reviewDecision": "CHOOSE_CANDIDATE",
"selectedCandidateSourceId": "CROSSREF:10.5555/test",
"reviewNote": "Confirmed against the publisher record.",
"reviewedAt": "2026-10-09T08:30:00Z"
}人による確認結果、メモ、時刻を記録し、システムのリスク判定と元の参考文献は保持します。
/api/v1/citation-jobs/{id}/cancelジョブをキャンセル
リクエストに従ってキャンセルを予約または実行し、更新後の状態を返します。
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | - | 後続リクエストで使用するリソース識別子です。 |
| type | string | - | VERIFY_AND_CORRECT or DEDUPLICATE. |
| status | string | - | PREPARING(準備中)、QUEUED(待機中)、RUNNING(実行中)、COMPLETED(完了)、COMPLETED_WITH_ERRORS(一部エラー)、CANCELLED(キャンセル)、FAILED(失敗)。 |
| totalItems / processedItems | integer | - | 合計 inputs and items that have finished processing. |
| succeededItems / failedItems | integer | - | 成功した and failed item counters. |
| cancelRequested | boolean | - | かどうか cancellation has been requested. |
| result | object | null | - | Aggregate result when the job completes. |
| errorCode / errorMessage | string | null | - | Job-level failure details, when applicable. |
| createdAt ... updatedAt | ISO-8601 timestamp | - | Job lifecycle timestamps in UTC. |
{
"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"
}/api/v1/citation-jobs/{id}/preflight参考文献監査レポートを取得
保存済み監査結果を追加消費なしで返します。新規のNOT_FOUNDはREVIEW、メタデータの矛盾はHIGHです。INCOMPLETEとNOT_RUNは書誌リスク集計から除外し再試行を推奨します。出版更新は独立しています。BLOCKINGは過去のレポートとの互換性のため残ります。
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| schemaVersion | integer | - | 監査スキーマ版は2です。人による確認、完了度、ルール版、出版更新を含みます。 |
| summary | PreflightSummary | - | 参考文献監査のリスク分類、推奨対応、確認進捗、集計を返します。 |
| items | CitationJobItemResponse[] | - | 人による確認結果、メモ、時刻を記録し、システムのリスク判定と元の参考文献は保持します。 |
| limitations | string[] | - | 構造化ファイルを処理し、形式、件数、警告、正規化メタデータを返します。 |
{
"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."]
}現在のワークスペース内のリソースと関連メタデータを返します。
/api/v1/citation-jobs/{id}/preflight/export参考文献監査をエクスポート
参考文献監査のリスク分類、推奨対応、確認進捗、集計を返します。
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
| format | string (query) | 必須 | json, csv, or html. |
| include | string (query) | 任意 | CSV と HTML に追加する任意セクション(カンマ区切り):evidence(フィールド別の信頼度と各ソースの返却値)、candidates、diagnostics、または all。省略時は既定の列のみです。JSON には保存済みの結果がすべて含まれます。 |
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| JSON | application/json | - | Versioned report with summary, enriched items, and limitations. |
| CSV | text/csv; charset=UTF-8 | - | 参考文献監査のリスク分類、推奨対応、確認進捗、集計を返します。 |
| HTML | text/html; charset=UTF-8 | - | リスク、主要メタデータ、人による確認項目を含むダウンロード可能な監査ファイルです。 |
GET /api/v1/citation-jobs/3f0f.../preflight/export?format=csv
Content-Disposition: attachment; filename="citewise-preflight-3f0f7d3c.csv"人による確認結果、メモ、時刻を記録し、システムのリスク判定と元の参考文献は保持します。
ワークスペース
利用量と認証情報を管理
これらの API はワークスペース単位です。通常のコンソールは Clerk セッションを使い、現在のバックエンドは API キーも受け付けますが、決済には対話的な Clerk セッションが必要です。
/api/v1/console/overviewワークスペース概要を取得
返します the current user, workspace, plan entitlement, monthly reference usage, and admin flag.
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| user | object | - | id, email, displayName, imageUrl, and role. |
| workspace | object | - | id, name, and slug. |
| entitlement | EntitlementSnapshot | - | Plan code, status, monthly allowance, one-time credit balance, throughput, concurrency, and API アクセス. |
| referencesUsed | integer | - | 今月の月間枠から確定消費した件数。予約中と購入クレジットは含みません。 |
| referencesReserved | integer | - | 月間枠と購入クレジットの予約中の件数。確定消費ではありません。 |
| monthlyReferencesReserved | integer | - | 今月の月間枠の予約件数。monthlyReferences からこの値と referencesUsed を引くと月間残数になります。 |
| admin | boolean | - | かどうか the user has admin privileges. |
{
"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
}/api/v1/api-keysAPI キーを一覧
現在のワークスペース内のリソースと関連メタデータを返します。
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id / name | UUID / string | - | 後続リクエストで使用するリソース識別子です。 |
| prefix / last4 | string | - | Safe display prefix and last four secret characters. |
| status | string | - | ACTIVE or REVOKED. |
| createdAt / lastUsedAt / expiresAt | timestamp | null | - | Key lifecycle metadata. |
[
{ "id": "c4c7...", "name": "Production pipeline", "prefix": "cw_live_a1b2c3", "last4": "xYz9", "status": "ACTIVE", "createdAt": "2026-01-15T10:20:30Z", "lastUsedAt": null, "expiresAt": null }
]/api/v1/api-keysAPI キーを作成
リクエストで指定されたリソースを作成または登録し、現在の状態を返します。
リクエスト本文
コンテンツタイプ: application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| name | string | 必須 | 表示用の name, trimmed and limited to 100 characters. |
{
"name": "Production pipeline"
}レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| key | ApiKeyView | - | Safe key metadata returned for display. |
| apiKey | string | - | 完全なシークレット. This is the only response that contains it. |
{
"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"
}API アクセス must be enabled for the workspace. A workspace can have up to 10 active keys. Treat the secret like a password.
/api/v1/api-keys/{id}API キーを削除
Immediately marks a workspace API key as revoked. Existing requests using it will fail authentication.
パスとクエリパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | UUID | 必須 | 後続リクエストで使用するリソース識別子です。 |
レスポンス
204 No Contentレスポンス本文はありません。
The response has no body. Keep the key ID from the list endpoint for revocation workflows.
請求
プランと請求を管理
請求 API はコンソールで使用します。決済、購読ライフサイクル、支払方法、請求書の正本は Creem です。
/api/v1/billing/subscription購読権限を取得
返します the effective plan and limits for the authenticated workspace, including free-plan defaults and cancellation state.
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| planCode / subscriptionStatus | string | - | リソースの現在の状態を返します。値は API 定義を参照してください。 |
| monthlyReferences | integer | - | 月間参考文献枠. |
| creditBalance | integer | - | 残り one-time credits, consumed after the monthly allowance. |
| requestsPerMinute / concurrency | integer | - | Throughput and concurrent execution limits. |
| apiAccess | boolean | - | かどうか workspace API keys are enabled. |
| currentPeriodEnd | timestamp | null | - | 現在の billing period end. |
| cancelAtPeriodEnd | boolean | - | かどうか cancellation is scheduled at the end of the current period. |
| currentPeriodStart | timestamp | null | - | 現在の billing period start. |
| hasSubscription | boolean | - | かどうか the workspace has a provider-managed paid subscription. |
| canCancel / canResume | boolean | - | かどうか the current subscription state supports the corresponding lifecycle action. |
{
"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
}/api/v1/billing/checkout決済セッションを作成
現在のワークスペース内のリソースと関連メタデータを返します。
リクエスト本文
コンテンツタイプ: application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| productKey | string | 必須 | Configured product key, such as pro-monthly, team-yearly, starter-pack, research-pack, or lab-pack. |
{
"productKey": "pro-monthly"
}レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| checkoutId | string | - | プロバイダー checkout identifier. |
| checkoutUrl | string | - | Hosted checkout URL. |
{
"checkoutId": "ch_123456",
"checkoutUrl": "https://checkout.creem.io/ch_123456"
}/api/v1/billing/checkout/confirm決済結果を確認
リソースの現在の状態を返します。値は API 定義を参照してください。
リクエスト本文
コンテンツタイプ: application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| checkoutId | string | 必須 | 後続リクエストで使用するリソース識別子です。 |
{
"checkoutId": "chk_123456"
}レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| hasSubscription | boolean | - | True when a recurring checkout has been linked successfully. |
| planCode / subscriptionStatus | string | - | The reconciled workspace entitlement. |
{
"planCode": "PRO", "subscriptionStatus": "ACTIVE", "hasSubscription": true, "canCancel": true
}/api/v1/billing/subscription/cancel購読をキャンセル
リクエストに従ってキャンセルを予約または実行し、更新後の状態を返します。
リクエスト本文
コンテンツタイプ: application/json
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| mode | string (optional) | - | scheduled (default) or immediate. |
{
"mode": "scheduled"
}レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| cancelAtPeriodEnd | boolean | - | リクエストに従ってキャンセルを予約または実行し、更新後の状態を返します。 |
| currentPeriodEnd | timestamp | null | - | 日付 through which access remains available. |
{
"planCode": "PRO", "subscriptionStatus": "SCHEDULED_CANCEL", "cancelAtPeriodEnd": true,
"currentPeriodEnd": "2026-02-15T00:00:00Z"
}/api/v1/billing/subscription/resume購読を再開
リクエストに従ってキャンセルを予約または実行し、更新後の状態を返します。
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| subscriptionStatus | string | - | Usually ACTIVE after a successful resume. |
| cancelAtPeriodEnd | boolean | - | リクエストに従ってキャンセルを予約または実行し、更新後の状態を返します。 |
{
"planCode": "PRO", "subscriptionStatus": "ACTIVE", "cancelAtPeriodEnd": false
}/api/v1/billing/portal請求ポータルを開く
リクエストで指定されたリソースを作成または登録し、現在の状態を返します。
レスポンス
200 OK| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| customerPortalLink | string | - | Hosted Creem customer portal URL. |
{
"customerPortalLink": "https://creem.io/customer-portal/..."
}エラー
エラー
研究ワークフローに引用品質管理を組み込みます。メタデータの解決、根拠の確認、修正案、スタイル整形、大規模バッチを一つの API で実行できます。
| HTTP | Code | 意味 |
|---|---|---|
| 400 | INVALID_REFERENCE / UNSUPPORTED_CITATION_STYLE / FUSION_FAILED | リクエスト body is invalid, a 必須 field is missing, a citation style is unsupported, or evidence fusion could not complete. |
| 400 | INVALID_REQUEST | リクエスト body, path parameter, or 必須 header is malformed. |
| 401 | UNAUTHENTICATED / API_KEY_INVALID / WEBHOOK_SIGNATURE_INVALID | No valid Clerk JWT or X-API-Key was provided, or a signed webhook request failed verification. |
| 403 | FORBIDDEN / SUBSCRIPTION_REQUIRED | The credential is valid but cannot access this workspace or paid-only feature. |
| 404 | CITATION_NOT_FOUND / JOB_NOT_FOUND | The resource does not exist in the authenticated workspace. |
| 405 | METHOD_NOT_ALLOWED | The HTTP method is not supported by this endpoint. |
| 415 | UNSUPPORTED_MEDIA_TYPE | リクエスト Content-Type is not supported. |
| 429 | QUOTA_EXCEEDED / API_KEY_LIMIT_REACHED / RATE_LIMIT_EXCEEDED / CONCURRENCY_LIMIT_EXCEEDED / SYSTEM_BUSY | The workspace allowance, active-key limit, or processing capacity has been reached. Honor Retry-After when present. |
| 502/503 | BILLING_UNAVAILABLE / PROVIDER_UNAVAILABLE / PROVIDER_TIMEOUT | A downstream billing or scholarly provider is unavailable. Retry with backoff. |
| 500 | DATABASE_ERROR / INTERNAL_ERROR | An unexpected server error. Include traceId when contacting support. |