Quickstart
On this page
Get an API key
Sign up at velrim.com/signup with an email. No card. New accounts start with ~500 pages free, claimed in the dashboard. Password signups get a verification link by email at sign-up. Click it to confirm your address and sign in.
Create a key under Keys in the dashboard. It is shown once; store it where your code reads secrets. The examples below read it from VELRIM_API_KEY.
Make your first request
Pass a Zod or Pydantic model and a document; the SDK compiles the model to JSON Schema and validates the response against it. Both SDKs also accept a plain JSON Schema object in place of a model; the response data then arrives unvalidated on the client (unknown in TypeScript, a dict in Python). On raw HTTP you send the JSON Schema yourself.
schema and document are the only required fields. Every request option is documented on Extract.
Read the response
data is the extracted object in the shape of your schema. fields reports every schema leaf, keyed by RFC 6901 JSON Pointer.
- state
- Whether the field was extracted:
"present","null"or"missing". A missing field arrives inside a 200 with areason, not as a request error. - confidence
- A calibrated score in [0, 1]. Not every field carries one. Measured behavior per calibrator version is published at /reliability.
- anchor
- Where the value came from: the page, a bounding box and the matched snippet.
The TypeScript SDK collects the fields that need review: missing() returns the "missing" entries, conflicts() returns the fields where extraction passes disagreed. In Python, filter result.fields on state and confidence.
result.belowThreshold(t) returns pointers with confidence under t, plus all missing fields. Derive t from a labeled set of your own documents.
Every field entry and meta key is documented on Extract.