{"openapi":"3.1.0","info":{"title":"HTPBE — PDF Tamper Detection API","summary":"Structural forensic detection of post-creation modifications in PDF documents.","description":"Detect whether a PDF was edited after it was issued. The API runs 63 forensic checks across metadata, file structure, digital signatures, generator fingerprinting, document assembly, content streams, image forensics, and structural integrity — returning a structured verdict (`intact`, `modified`, or `inconclusive`) plus the list of named markers that fired.\n\n**Two-step pattern.** `POST /analyze` submits a publicly accessible PDF URL and returns a check `id` immediately. `GET /result/{id}` returns the full structured verdict. `GET /checks` paginates the caller’s entire history with filters.\n\n**Auth.** Every request requires `Authorization: Bearer <api_key>`. Test keys (`htpbe_test_*`) accept only synthetic test URLs and return deterministic results, do not debit credits, and are free on every plan. Live keys (`htpbe_live_*`) accept any public PDF URL and draw from your credit pool.\n\n**Marker IDs.** `modification_markers[]` contains stable machine-readable strings (e.g. `HTPBE_SIGNATURE_REMOVED`). The full id → outcome-label dictionary is published at https://htpbe.tech/how — branch your integration on the id, render the user-facing label from the dictionary. IDs are part of the API contract and are only ever added, never renamed.","version":"1.0.0","contact":{"name":"HTPBE support","url":"https://htpbe.tech","email":"info@htpbe.tech"},"license":{"name":"Proprietary","url":"https://htpbe.tech/legal/terms"},"x-logo":{"url":"https://htpbe.tech/icons/htpbe.svg"}},"externalDocs":{"description":"Full prose documentation, code samples, and how it works","url":"https://htpbe.tech/api"},"servers":[{"url":"https://api.htpbe.tech/v1","description":"Production"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Analysis","description":"Submit a PDF for structural forensic analysis."},{"name":"Results","description":"Retrieve previously computed analysis results."}],"paths":{"/analyze":{"post":{"tags":["Analysis"],"summary":"Submit a PDF for analysis","operationId":"analyzePdf","description":"Downloads the PDF from the supplied public URL, runs the full forensic check suite (typically 2–3 seconds), persists the result, and returns the `id`. Use `GET /result/{id}` to retrieve the structured verdict.","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional client-generated key (max 255 characters) for safe retries. Reusing the same key for the same account and the same `url` returns the original `id` without re-analyzing and without using another credit — including a result with `status_reason: analysis_incomplete`, which a replay returns unchanged. A new key (or no key) starts a new analysis, which may use another credit or quota. Reusing the same key with a DIFFERENT `url` is rejected with `422 idempotency_key_fingerprint_mismatch` — a key identifies one logical request, never a pool of documents. A request with no header behaves exactly as if the feature did not exist.","schema":{"type":"string","maxLength":255},"example":"5b1b6f9a-8f2b-4b7a-9b7a-3f2c9d4e1a20"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeRequest"}}}},"responses":{"201":{"description":"Analysis completed and persisted. Use `id` with `GET /result/{id}`.","headers":{"Location":{"description":"Full URL of the result resource.","schema":{"type":"string","format":"uri"},"example":"https://api.htpbe.tech/v1/result/3f9c8b7a-2e1d-4c5f-9b8e-7a6d5c4b3a21"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeResponse"},"example":{"id":"3f9c8b7a-2e1d-4c5f-9b8e-7a6d5c4b3a21"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/IdempotencyKeyInProgress"},"413":{"$ref":"#/components/responses/PayloadTooLarge"},"422":{"$ref":"#/components/responses/UnprocessableEntity"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/result/{id}":{"get":{"tags":["Results"],"summary":"Retrieve a single check result","operationId":"getResult","description":"Returns the complete forensic analysis for a previously submitted check. Owner-only — only the API client that originally submitted the check can retrieve it; cross-client access returns 404 even if the id exists. Test keys (`htpbe_test_*`) resolve only synthetic test IDs; a real check id returns 404 for a test key.","parameters":[{"name":"id","in":"path","required":true,"description":"Check ID returned from `POST /analyze` (UUID v4).","schema":{"type":"string","format":"uuid","minLength":10},"example":"506a6b1b-1360-48a2-b389-abb346f85d04"}],"responses":{"200":{"description":"Full check result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenInactive"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/ServerError"}}}},"/checks":{"get":{"tags":["Results"],"summary":"List the caller’s checks","operationId":"listChecks","description":"Paginated history of all checks performed by your API client. Filterable by tool name (creator OR producer), specific creator/producer, verdict status, and submission date range. Owner-only — other clients’ checks are never returned. Test keys (`htpbe_test_*`) always receive an empty list.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"description":"Results per page (1–500)."},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0},"description":"Number of results to skip for pagination."},{"name":"tool","in":"query","schema":{"type":"string"},"description":"Filter by tool name (matches Creator OR Producer). Case-sensitive, exact match against the stored value; when `creator_truncated` / `producer_truncated` is true, only the stored prefix matches, never the full text.","example":"Adobe PDF Library 15.0"},{"name":"creator","in":"query","schema":{"type":"string"},"description":"Filter by Creator tool only. Case-sensitive, exact match against the stored value (see `creator_truncated`).","example":"Microsoft Word for Microsoft 365"},{"name":"producer","in":"query","schema":{"type":"string"},"description":"Filter by Producer tool only. Case-sensitive, exact match against the stored value (see `producer_truncated`).","example":"Adobe PDF Library 15.0"},{"name":"status","in":"query","schema":{"type":"string","enum":["intact","modified","inconclusive"]},"description":"Filter by verdict."},{"name":"from_date","in":"query","schema":{"type":"integer","format":"int64"},"description":"Unix timestamp (seconds). Return checks whose `check_date` is on or after this value.","example":1738368000},{"name":"to_date","in":"query","schema":{"type":"integer","format":"int64"},"description":"Unix timestamp (seconds). Return checks whose `check_date` is on or before this value.","example":1740960000}],"responses":{"200":{"description":"Paginated list of checks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChecksListResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenInactive"},"500":{"$ref":"#/components/responses/ServerError"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"htpbe_live_* (live key) or htpbe_test_* (synthetic test key)","description":"API key authentication. Send `Authorization: Bearer <api_key>`. Live keys (`htpbe_live_*`) accept any public PDF URL and draw from your credit pool. Test keys (`htpbe_test_*`) accept only synthetic test URLs (see `lib/constants/test-mock-responses.ts` patterns) and return deterministic results without debiting credits. The raw key without the `Bearer` prefix is also accepted for legacy clients."}},"schemas":{"Verdict":{"type":"string","enum":["intact","modified","inconclusive"],"description":"`intact` — no structural evidence of modification. `modified` — one or more forensic markers fired. `inconclusive` — no modification was established and the check cannot confirm the document is unchanged; the cause is in `status_reason`."},"ModificationConfidence":{"type":["string","null"],"enum":["certain","high","none",null],"description":"`certain` — the strongest level of evidence the analysis reports; treat the document as modified and route it to human review or request a fresh copy from the issuer, never auto-reject on this alone. `high` — strong forensic evidence; route to manual review, as unusual legitimate workflows can occasionally produce it. `none` — no modification marker fired; `status` is `intact` or `inconclusive`. `null` — legacy records."},"StatusReason":{"type":"string","enum":["consumer_software_origin","online_editor_origin","scanned_document","unverifiable_metadata","filled_form_origin","fill_sign_origin","analysis_incomplete","visible_signature_origin"],"description":"Present only when `status` is `inconclusive`. Names the cause — the origin class the document was traced to, `unverifiable_metadata` when the document’s history after creation could not be established, `visible_signature_origin` when the document carries a visible signature that the check cannot confirm as unchanged (no certificate, identity or cryptographic validity is checked anywhere in this product), or `analysis_incomplete` when the check could not be completed in full. Treat an unrecognised value as inconclusive."},"ModificationMarker":{"type":"string","description":"Stable machine-readable forensic marker id. There are currently 63 public marker ids across 63 forensic checks. Branch your integration logic on these ids; render the user-facing outcome label from the dictionary at https://htpbe.tech/how. Ids are part of the public contract and are only ever added, never renamed.","enum":["HTPBE_ALTERED_TYPEFACE_IDENTITY","HTPBE_ANNOTATION_PREDATES_CREATION","HTPBE_BURNED_IN_ANNOTATIONS","HTPBE_CHARACTER_OVERLAY_EDIT","HTPBE_COLLAPSED_TO_RASTER","HTPBE_CONTENT_STREAM_EDITING_MARKERS","HTPBE_DATES_DISAGREE","HTPBE_DECLARED_SIZE_MISMATCH","HTPBE_DESIGN_TEMPLATE_ASSEMBLY","HTPBE_DOCUMENT_RESTAMPED_AFTER_CREATION","HTPBE_DRAWING_OPS_INCONSISTENT","HTPBE_EDITING_TOOL_FINGERPRINT","HTPBE_FAKE_SCANNER_ORIGIN","HTPBE_FLATTENED_EDIT_HISTORY","HTPBE_FONT_LAYER_INCONSISTENT_WITH_ISSUER","HTPBE_FONT_VS_TOOL_MISMATCH","HTPBE_GLYPH_LEVEL_EDIT","HTPBE_IDENTITY_BLANKED","HTPBE_IDENTITY_LAYERS_DISAGREE","HTPBE_IDENTITY_OVERWRITTEN","HTPBE_IMAGE_EDITED_AND_RESAVED","HTPBE_IMPOSSIBLE_TIMESTAMP","HTPBE_IMPOSSIBLE_TOOL_PIPELINE","HTPBE_INCOMPLETE_REDACTION","HTPBE_INVALID_TIMEZONE","HTPBE_INVISIBLE_DUPLICATE_TEXT","HTPBE_LAYERED_IDENTITY_DISAGREEMENT","HTPBE_METADATA_ONLY_REVISION","HTPBE_MIXED_FONT_EMBEDDING","HTPBE_MIXED_PAGE_DIMENSIONS","HTPBE_MIXED_TOOLING_CLASSES","HTPBE_MULTIPLE_REVISION_LAYERS","HTPBE_NAVIGATION_TABLE_MISMATCH","HTPBE_ONLINE_EDITOR_ORIGIN","HTPBE_PAGES_FROM_MULTIPLE_SOURCES","HTPBE_PAGE_REGION_SUBSTITUTED","HTPBE_PARTIAL_FONT_REPLACEMENT","HTPBE_PHYSICAL_SCAN_GEOMETRY","HTPBE_POST_SIGNATURE_EDIT","HTPBE_PRINTED_OUT_OF_PDF_READER","HTPBE_PRINT_PIPELINE_TAMPERING","HTPBE_PRODUCER_IDENTITY_FORGED","HTPBE_PROPRIETARY_SIGNAL","HTPBE_REBUILT_FROM_LOCAL_SOURCE","HTPBE_REEXPORTED_THROUGH_OFFICE_SUITE","HTPBE_RENDERED_PSEUDO_SCAN","HTPBE_RESIDUAL_DOCUMENT_STRUCTURE","HTPBE_RESIDUAL_PRIOR_GENERATOR","HTPBE_SCAN_IN_DIGITAL_DOC","HTPBE_SCRIPTING_ON_REEMITTED","HTPBE_SELECTIVE_IDENTITY_EDIT","HTPBE_SIGNATURE_REMOVED","HTPBE_TEMPLATE_PATTERN_BREAK","HTPBE_TEXT_OVERLAY_ON_SCAN","HTPBE_TIMESTAMP_LAYERS_DISAGREE","HTPBE_TIMEZONE_LAYERS_DISAGREE","HTPBE_TOOLCHAIN_DEFAULT_METADATA_RESIDUE","HTPBE_TOOL_VS_STRUCTURE_MISMATCH","HTPBE_TRAILING_BYTES_AFTER_EOF","HTPBE_UNKNOWN_IDENTITY_CLAIM","HTPBE_UNLOCK_TOOL_RESIDUE","HTPBE_WIDGET_APPEARANCE_MISMATCH","HTPBE_XMP_DATES_DESYNCED"]},"UsageCaution":{"type":"object","required":["safe_for_automated_adverse_decision","recommended_action","message"],"description":"In-contract responsible-use guardrail, present on every result. A structural verdict describes the file, not the person who sent it, and must never be the sole basis for an automatic adverse decision (rejecting or denying an applicant, claimant, or customer). Branch on `recommended_action` to route the case instead of auto-rejecting.","properties":{"safe_for_automated_adverse_decision":{"type":"boolean","enum":[false],"description":"Always `false`. A machine-checkable assertion that this verdict alone must not drive an automatic adverse decision against a person."},"recommended_action":{"type":"string","enum":["route_to_human_review","request_from_issuer","no_action"],"description":"`route_to_human_review` for `modified`; `request_from_issuer` for `inconclusive` (the check could not confirm integrity — not proof of fraud); `no_action` for `intact`."},"message":{"type":"string","description":"Human-readable guidance matching `recommended_action`."}}},"AnalyzeRequest":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Publicly accessible HTTP/HTTPS URL pointing to a PDF file. Must be downloadable without authentication. Maximum file size 10 MB (10,485,760 bytes). FTP, file://, and localhost URLs are rejected.","example":"https://example.com/documents/contract.pdf"},"original_filename":{"type":"string","description":"Optional. Original filename of the document before any storage renaming. If provided, this value is stored and returned in results instead of the filename extracted from the URL path.","example":"q3-statement.pdf"}}},"AnalyzeResponse":{"type":"object","required":["id"],"properties":{"id":{"type":"string","format":"uuid","description":"Use with `GET /result/{id}` to retrieve the full verdict.","example":"3f9c8b7a-2e1d-4c5f-9b8e-7a6d5c4b3a21"}}},"CheckResult":{"type":"object","description":"When the check could not be completed in full, or for legacy records, the counters and flags it would have filled are returned as `0`, `false` or an empty string – placeholders, not measurements.","required":["id","filename","file_size","algorithm_version","current_algorithm_version","status","date_sequence_valid","metadata_completeness_score","xref_count","has_incremental_updates","update_chain_length","has_digital_signature","signature_count","signature_removed","modifications_after_signature","page_count","object_count","has_javascript","has_embedded_files","modification_markers","creator_truncated","producer_truncated","usage_caution"],"properties":{"id":{"type":"string","format":"uuid"},"filename":{"type":"string","description":"Original filename or URL-derived basename."},"check_date":{"type":["integer","null"],"format":"int64","description":"Unix timestamp (seconds) of when the analysis ran. `null` for test-key results and legacy records."},"file_size":{"type":"integer","description":"File size in bytes."},"algorithm_version":{"type":"string","description":"Algorithm version that produced this result.","example":"2.23.3"},"current_algorithm_version":{"type":"string","description":"Latest algorithm version live in production. If this differs from `algorithm_version`, the result is stale relative to current detection capabilities.","example":"2.23.3"},"outdated_warning":{"type":"string","description":"Human-readable warning surfaced when `algorithm_version` is older than `current_algorithm_version`."},"status":{"$ref":"#/components/schemas/Verdict"},"status_reason":{"$ref":"#/components/schemas/StatusReason"},"creation_date":{"type":["integer","null"],"format":"int64","description":"Declared creation time from the document’s embedded metadata as Unix timestamp (seconds), or `null` when none is present."},"modification_date":{"type":["integer","null"],"format":"int64","description":"Declared last-modification time from the document’s embedded metadata as Unix timestamp (seconds), or `null` when none is present."},"creator":{"type":["string","null"],"description":"Declared creator from the document’s embedded metadata. May be a prefix – see `creator_truncated`.","example":"Microsoft Word for Microsoft 365"},"producer":{"type":["string","null"],"description":"Declared producer from the document’s embedded metadata. May be a prefix – see `producer_truncated`.","example":"Adobe PDF Library 15.0"},"creator_truncated":{"type":"boolean","description":"`true` when `creator` is only the beginning of a longer value, with no ellipsis added. Only the stored and returned copy is shortened, and detection never uses it, so never display or compare a truncated value as if it were the complete field. `false` means the value was not shortened; results stored before this field existed were never shortened and can be longer."},"producer_truncated":{"type":"boolean","description":"`true` when `producer` is only the beginning of a longer value, with no ellipsis added. Only the stored and returned copy is shortened, and detection never uses it, so never display or compare a truncated value as if it were the complete field. `false` means the value was not shortened; results stored before this field existed were never shortened and can be longer."},"modification_confidence":{"$ref":"#/components/schemas/ModificationConfidence"},"date_sequence_valid":{"type":"boolean","description":"False when a contradiction was found among the document’s embedded dates."},"metadata_completeness_score":{"type":"integer","minimum":0,"maximum":100,"description":"Heuristic completeness score for the Info/XMP metadata block (0–100)."},"xref_count":{"type":["integer","null"],"description":"Number of cross-reference sections in the file. `null` when the number of revisions could not be established, or was not recorded for this check (older records)."},"has_incremental_updates":{"type":["boolean","null"],"description":"True when the file contains incremental update sections (post-creation revisions). `null` when the number of revisions could not be established, or was not recorded for this check (older records)."},"update_chain_length":{"type":"integer","description":"Length of the file’s update chain."},"pdf_version":{"type":["string","null"],"description":"PDF version declared in the file header (e.g. `1.7`, `2.0`); `unknown` when the header declares none; an empty string when the file structure could not be read; `null` for legacy records."},"has_digital_signature":{"type":"boolean","description":"True when a signature dictionary is present. Presence only — the signature is not validated, the certificate is not checked, and no verdict is softened on the strength of it."},"signature_count":{"type":"integer"},"signature_removed":{"type":"boolean","description":"True when forensic evidence indicates a digital signature was stripped after signing."},"modifications_after_signature":{"type":"boolean","description":"True when content was changed after the document was digitally signed."},"page_count":{"type":"integer"},"object_count":{"type":"integer"},"has_javascript":{"type":"boolean"},"has_embedded_files":{"type":"boolean"},"modification_markers":{"type":"array","items":{"$ref":"#/components/schemas/ModificationMarker"},"description":"Every forensic marker that fired. Empty when `status` is `intact` or `inconclusive`."},"usage_caution":{"$ref":"#/components/schemas/UsageCaution"}}},"ChecksListItem":{"type":"object","description":"Reduced view of a check as returned by `GET /checks`. It carries the identifying and summary fields only — the per-marker forensic detail (`modification_markers`, `date_sequence_valid`, `xref_count`, the signature counters, and the algorithm versions) is available from `GET /result/{id}`. `status` and `usage_caution` are derived exactly as on `/result`, so a check never reads differently in a list.","required":["id","filename","check_date","status","metadata_completeness_score","creator_truncated","producer_truncated","file_size","page_count","has_javascript","has_digital_signature","has_embedded_files","has_incremental_updates","update_chain_length","object_count","usage_caution"],"properties":{"id":{"type":"string","format":"uuid"},"filename":{"type":"string","description":"Original filename or URL-derived basename."},"check_date":{"type":["integer","null"],"format":"int64","description":"Unix timestamp (seconds) of when the analysis ran."},"status":{"$ref":"#/components/schemas/Verdict"},"metadata_completeness_score":{"type":"integer","minimum":0,"maximum":100,"description":"Heuristic completeness score for the Info/XMP metadata block (0–100)."},"creator":{"type":["string","null"],"description":"May be a prefix – see `creator_truncated`."},"producer":{"type":["string","null"],"description":"May be a prefix – see `producer_truncated`."},"creator_truncated":{"type":"boolean","description":"`true` when `creator` is only the beginning of a longer value, with no ellipsis added. Only the stored and returned copy is shortened, and detection never uses it, so never display or compare a truncated value as if it were the complete field. `false` means the value was not shortened; results stored before this field existed were never shortened and can be longer."},"producer_truncated":{"type":"boolean","description":"`true` when `producer` is only the beginning of a longer value, with no ellipsis added. Only the stored and returned copy is shortened, and detection never uses it, so never display or compare a truncated value as if it were the complete field. `false` means the value was not shortened; results stored before this field existed were never shortened and can be longer."},"file_size":{"type":"integer","description":"Size of the analysed PDF in bytes."},"page_count":{"type":"integer"},"pdf_version":{"type":["string","null"]},"creation_date":{"type":["integer","null"],"format":"int64"},"modification_date":{"type":["integer","null"],"format":"int64"},"has_javascript":{"type":"boolean"},"has_digital_signature":{"type":"boolean"},"has_embedded_files":{"type":"boolean"},"has_incremental_updates":{"type":["boolean","null"],"description":"True when the file contains incremental update sections (post-creation revisions). `null` when the number of revisions could not be established, or was not recorded for this check (older records)."},"update_chain_length":{"type":"integer"},"object_count":{"type":"integer"},"usage_caution":{"$ref":"#/components/schemas/UsageCaution"}}},"ChecksListResponse":{"type":"object","required":["data","has_more","total","limit","offset"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChecksListItem"}},"has_more":{"type":"boolean","description":"True when more results match the filter and are reachable with a larger `offset`."},"total":{"type":"integer","description":"Total number of checks matching the filter (across all pages)."},"limit":{"type":"integer","description":"Page size actually applied, after clamping the requested `limit`."},"offset":{"type":"integer","description":"Offset this page starts at — echoes the requested `offset`."}}},"Error":{"type":"object","required":["error","code"],"properties":{"error":{"type":"string","description":"Human-readable explanation of what went wrong."},"code":{"type":"string","description":"Machine-readable error code (e.g. `invalid_url_format`, `invalid_pdf`)."},"details":{"type":"string","description":"Optional additional context about the error."},"request_id":{"type":"string","description":"Present on 5xx responses: the id of this request, also returned in the `x-request-id` header. Quote it when contacting support."}}}},"responses":{"BadRequest":{"description":"The request body or query parameters were malformed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Missing, malformed, or unrecognised API key. A key that exists but has been deactivated returns 403 instead.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PaymentRequired":{"description":"No credits remaining. This applies both to accounts with no active subscription and to an active subscriber who has used their monthly quota and has no credit pack or overage agreement to draw from.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The action is not allowed for this key. `code` distinguishes the cases: `inactive_client` — the API key exists but has been deactivated; `test_url_required` — a live PDF URL was submitted with a test key, which only accepts synthetic test URLs; `account_restricted` — the account is under an account-level restriction and cannot run checks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ForbiddenInactive":{"description":"The API key exists but has been deactivated (`code: inactive_client`). This is the only 403 the read endpoints return; the other Forbidden cases are specific to `POST /analyze`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No check with this id exists for the authenticated caller, or a test key was used with a non-synthetic id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"PayloadTooLarge":{"description":"The downloaded PDF exceeds the 10 MB limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnprocessableEntity":{"description":"The URL was reachable but the response was not a PDF, the PDF could not be parsed, the analysis was interrupted (no result is stored and no credit is used), or the analysis did not finish in time (`code: analysis_timeout`; nothing is stored or charged, and a retry can succeed) — or an `Idempotency-Key` was reused for a different `url` than the one it was first used with (`code: idempotency_key_fingerprint_mismatch`). Check `code` in the response body to distinguish the cause.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"IdempotencyKeyInProgress":{"description":"A request with this `Idempotency-Key` for this account is already in progress. Retry shortly with the same key — do not change it, that would spend credit twice.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooManyRequests":{"description":"The request could not be admitted for analysis (`code: server_at_capacity`). Analyses run a limited number at a time on the server; when every slot is busy, a request waits in a shared queue. It is refused when that queue is full, when the waiting room already holds the share one account may occupy (counted per account across all of its API keys, not per key), or when the wait runs out. So one account can receive `429` while other accounts are still served. Applies to live keys only — test keys never receive it. Retry the same request after the `Retry-After` interval.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"string"},"example":"5"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ServerError":{"description":"Unexpected server-side error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}