What does the API response look like?
The API returns a JSON object with a status of intact, modified or inconclusive, plus the named modification_markers that triggered a modified verdict. There is no numeric risk score; every verdict comes with its reasons.
Two steps, not one
POST /v1/analyze takes a public PDF URL, runs the analysis synchronously and returns only { "id": "..." } with HTTP 201. You then call GET /v1/result/{id} to read the full result. The same id appears in the GET /v1/checks list, so any past check can be fetched again.
The fields you will use most
status– the verdict.status_reason– present only on inconclusive results. It says why the file could not be cleared, for exampleconsumer_software_origin,online_editor_origin,scanned_document, oranalysis_incompletewhen the check could not be completed in full.modification_markers– stable ids such asHTPBE_SIGNATURE_REMOVEDorHTPBE_DATES_DISAGREE. An id never changes once published, so it is safe to branch on. The outcome description for each id is listed on the How it works page.modification_confidence– how certain the evidence is (certain,highornone), to help you decide how to route the case.usage_caution– a responsible-use guardrail with arecommended_actionofroute_to_human_review,request_from_issuerorno_action.safe_for_automated_adverse_decisionis alwaysfalse.- Metadata and structure:
creation_date,modification_date,creator,producer,pdf_version,page_count, signature fields andalgorithm_version.
Handling the result
Branch on status. A modified result goes to a human reviewer. An inconclusive result goes back to the issuer. An intact result does not call for adverse action, but it is not a standalone guarantee of authenticity, and none of the three verdicts should drive an automatic rejection of a person.
Errors and test keys
Errors come back as JSON with a human-readable error and a machine-readable code, for example payment_required (HTTP 402) when an account has no credits left. Test keys return the same response shape with synthetic data.
The full schema, with examples for every field and error, is at github.com/htpbe/docs.
← Previous
How is HTPBE? different from KYC platforms like Onfido or Persona?
Next →
How much does each document check cost?
Related questions
Keep reading
3 answers
Pricing & API
Every check costs one credit, from the web app or the API – both use the same balance. You fund it with a monthly plan (from $15 for 30 credits), a one-time pack ($5 for 8, $15 for 25) or the free credits. New accounts get 5 free credits on signup. Test API keys are free.
Yes. Test keys (htpbe_test_…) are free, unlimited and available on every plan, even before you subscribe. They return deterministic synthetic results for predefined test URLs and never use credits. They cannot analyze real documents.
A credit is the unit HTPBE? bills in: one check costs one credit, from the web app or the API. Credits come from a plan, a one-time pack or the 5 free credits, and they do not expire while your account is active.