Get a session details
Returns a session with each document, its per-stage progress and whatever results are ready. status is completed, partial or failed once the work is over.
Request
curl -X GET "https://studioapi.kriyam.ai/models/docwise/{session_id}" \
-H "X-API-Key: $KRIYAM_API_KEY"Response
Authentication
Send your key in the X-API-Key header. See Authentication.
Request
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
session_id | string | Required | The |
Response
200 OK
| Field | Type | Description |
|---|---|---|
id | uuid | The session. |
status | string |
|
capabilities | string[] | The steps this session actually runs — what you asked for plus anything those depend on. |
processing_mode | string |
|
credits | integer | Charged so far. It rises as each step delivers, so it is only final once |
documents[] | object[] | Each document with its own status and whatever results are ready. |
documents[].status | string | This document's own outcome — one can fail while its siblings succeed, which is what |
documents[].document_type | string | null | What |
documents[].page_count | integer | null | Pages found in this document. |
documents[].pages[] | object[] | Each page, in order, with what was read from it. |
documents[].pages[].page_number | integer | 1-based, within the document. |
documents[].pages[].parsed_ocr | object[] | null | The page's elements in reading order — |
documents[].pages[].images[] | object[] | Every image Docwise cut out of the page — photos, logos, signatures, stamps, figures — one entry per image. Empty when the page has none. |
documents[].pages[].images[].url | string | A presigned download URL, valid for one hour. Download and store the file if you need to keep it; read the session again for a fresh URL. |
documents[].pages[].images[].serial | string | null | The |
documents[].pages[].images[].type | string | null | That element's type, e.g. |
documents[].pages[].images[].bbox_2d | number[] | null | Where the image sits on the page, |
extract_status | string | Where extraction has got to: |
extraction | object | null | The extracted data, once extraction has produced it. One result covers the whole session, since a field can draw on more than one document. |
extraction.json_schema | object | The schema the values were extracted against — your |
extraction.extracted_data | object | The values, shaped by that schema. A field the documents don't answer is null rather than guessed. |
extraction.field_citations | object | null | For each top-level field, the documents ( |
Errors
| Status | Code | When |
|---|---|---|
| 400 | — | No file was sent, more than 5 were, no step was requested, or a requested step is unknown or not currently available. Also when |
Every keyed call can also get401402403404429— see Errors.
