List a card's documents
The documents on a card, each with what Werk read in it.
At most the first 100; hasMore says when there are more.
Authorization
Authorization: Bearer <key> Authentication
Path parameters
The project's id.
The card's id.
Response
200 The card's documents.
The card's first 100 documents.
Show properties of documentsHide properties of documents
The document's id.
The card the document is on.
The document's name.
The document's media type.
The document's revision, which grows each time its file is replaced.
not_read while it is not being read, awaiting_confirmation while Werk waits for a yes to its cost, reading, failed, or ready.
The document's version, which grows with every change to it; a read request sends it as expectedVersion.
How many parts the document has, or null while not known.
How many parts Werk read.
True when Werk read only the document's first parts.
Werk's summary of the document, or null.
The issuer, number, date, total and currency Werk read in the document, or null.
Show properties of fieldsHide properties of fields
The issuer Werk read in the document, or null when it found none.
Show properties of issuerHide properties of issuer
The issuer as read.
The part of the document it was read from.
Show properties of sourceHide properties of source
The document's id.
The revision it was read in.
The part, counted from 1 in Werk's own count; only a PDF page's location names a page of the file.
The SHA-256 of the file it was read from.
Where in the file the part is.
Show properties of locationHide properties of location
One of 5 shapes, told apart by kind:
kindpdf_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The PDF page.
kindsectionWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The section, counted from 1.
kindparagraphWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The paragraph, counted from 1.
kindsheet_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The sheet's name.
The part's first row.
The part's last row.
kindlinesWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The part's first line.
The part's last line.
The document's number Werk read in the document, or null when it found none.
Show properties of numberHide properties of number
The document's number as read.
The part of the document it was read from.
Show properties of sourceHide properties of source
The document's id.
The revision it was read in.
The part, counted from 1 in Werk's own count; only a PDF page's location names a page of the file.
The SHA-256 of the file it was read from.
Where in the file the part is.
Show properties of locationHide properties of location
One of 5 shapes, told apart by kind:
kindpdf_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The PDF page.
kindsectionWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The section, counted from 1.
kindparagraphWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The paragraph, counted from 1.
kindsheet_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The sheet's name.
The part's first row.
The part's last row.
kindlinesWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The part's first line.
The part's last line.
The date Werk read in the document, or null when it found none.
Show properties of dateHide properties of date
The date as read, as YYYY-MM-DD.
The part of the document it was read from.
Show properties of sourceHide properties of source
The document's id.
The revision it was read in.
The part, counted from 1 in Werk's own count; only a PDF page's location names a page of the file.
The SHA-256 of the file it was read from.
Where in the file the part is.
Show properties of locationHide properties of location
One of 5 shapes, told apart by kind:
kindpdf_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The PDF page.
kindsectionWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The section, counted from 1.
kindparagraphWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The paragraph, counted from 1.
kindsheet_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The sheet's name.
The part's first row.
The part's last row.
kindlinesWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The part's first line.
The part's last line.
The total Werk read in the document, or null when it found none.
Show properties of totalHide properties of total
The total as read, a decimal number with a point.
The part of the document it was read from.
Show properties of sourceHide properties of source
The document's id.
The revision it was read in.
The part, counted from 1 in Werk's own count; only a PDF page's location names a page of the file.
The SHA-256 of the file it was read from.
Where in the file the part is.
Show properties of locationHide properties of location
One of 5 shapes, told apart by kind:
kindpdf_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The PDF page.
kindsectionWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The section, counted from 1.
kindparagraphWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The paragraph, counted from 1.
kindsheet_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The sheet's name.
The part's first row.
The part's last row.
kindlinesWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The part's first line.
The part's last line.
The currency Werk read in the document, or null when it found none.
Show properties of currencyHide properties of currency
The currency as read, its ISO 4217 code.
The part of the document it was read from.
Show properties of sourceHide properties of source
The document's id.
The revision it was read in.
The part, counted from 1 in Werk's own count; only a PDF page's location names a page of the file.
The SHA-256 of the file it was read from.
Where in the file the part is.
Show properties of locationHide properties of location
One of 5 shapes, told apart by kind:
kindpdf_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The PDF page.
kindsectionWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The section, counted from 1.
kindparagraphWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The paragraph, counted from 1.
kindsheet_Where in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The sheet's name.
The part's first row.
The part's last row.
kindlinesWhere in the file the part is: a PDF page, a section, a paragraph, a sheet's rows or a text's lines.
The part's first line.
The part's last line.
Why reading failed, or null.
What reading the document counts on the plan, in messages, or null before Werk inspected it.
A PDF's pages, or other text in pages of 3,000 characters; null when not known.
A workbook's sheets with data; null for other files or when not known.
True when the key's person may take this document off the card now.
True when the card has more documents than these.
Errors
invalid_query The query is not in the form the route takes; the limit is in the unit of the input details.field names (characters for a text, entries for a list, the value for a number).session_revoked The request carries no session the server holds, or its session has ended.session_expired The session has expired.conversation_not_found The project the request names, or its chat, is not one the signed-in person is in.item_not_found The card the request names, or its list, is not one the signed-in person can see.session_changed The session changed while the request was in flight.rate_limited More requests of this kind were sent than Werk takes within the time it counts them over.server_error The server could not complete the request, and it is not known whether a write it holds was made.curl "https://api.getwerk.ai/api/v1/projects/2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73/cards/3c9e5b17-8d2f-4a64-b1e3-7f5a0c9d2b48/documents" \
-H "Authorization: Bearer wk_key_..."const res = await fetch("https://api.getwerk.ai/api/v1/projects/2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73/cards/3c9e5b17-8d2f-4a64-b1e3-7f5a0c9d2b48/documents", {
headers: {
Authorization: "Bearer wk_key_...",
},
});
const answer = await res.json();{
"documents": [
{
"id": "d7e1b5c3-9a4f-4e26-b8d0-2f6a4c8e1d59",
"itemId": "3c9e5b17-8d2f-4a64-b1e3-7f5a0c9d2b48",
"filename": "countertop-quote.pdf",
"mimeType": "application/pdf",
"revision": 1,
"state": "ready",
"version": 3,
"totalSources": 2,
"readSources": 2,
"truncated": false,
"summary": "Stonecraft Supply's quote for a quartz countertop, cut and installed, with delivery in two weeks.",
"fields": {
"issuer": {
"value": "Stonecraft Supply",
"source": {
"documentId": "d7e1b5c3-9a4f-4e26-b8d0-2f6a4c8e1d59",
"revision": 1,
"page": 1,
"sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c0b2d4f6e8a1c3e5b7d9f1a3c5e7b9d0f",
"location": {
"kind": "pdf_page",
"page": 1
}
}
},
"number": {
"value": "Q-20931",
"source": {
"documentId": "d7e1b5c3-9a4f-4e26-b8d0-2f6a4c8e1d59",
"revision": 1,
"page": 1,
"sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c0b2d4f6e8a1c3e5b7d9f1a3c5e7b9d0f",
"location": {
"kind": "pdf_page",
"page": 1
}
}
},
"date": {
"value": "2026-11-17",
"source": {
"documentId": "d7e1b5c3-9a4f-4e26-b8d0-2f6a4c8e1d59",
"revision": 1,
"page": 1,
"sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c0b2d4f6e8a1c3e5b7d9f1a3c5e7b9d0f",
"location": {
"kind": "pdf_page",
"page": 1
}
}
},
"total": {
"value": "2480.00",
"source": {
"documentId": "d7e1b5c3-9a4f-4e26-b8d0-2f6a4c8e1d59",
"revision": 1,
"page": 2,
"sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c0b2d4f6e8a1c3e5b7d9f1a3c5e7b9d0f",
"location": {
"kind": "pdf_page",
"page": 2
}
}
},
"currency": {
"value": "USD",
"source": {
"documentId": "d7e1b5c3-9a4f-4e26-b8d0-2f6a4c8e1d59",
"revision": 1,
"page": 2,
"sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c0b2d4f6e8a1c3e5b7d9f1a3c5e7b9d0f",
"location": {
"kind": "pdf_page",
"page": 2
}
}
}
},
"failureCode": null,
"units": 1,
"pages": 2,
"sheets": null,
"removable": true
}
],
"hasMore": false
}Send a requestGET
It is sent with the key you give, as you. A change made here is real.
The request could not be sent, or its response could not be read.