Get a card's file
One photo or document on a card, with what Werk read in it.
A photo is named by its id on the card, a document by its own id.
Authorization
Authorization: Bearer <key> Authentication
Headers
The language tag Werk writes the answer's own words in, such as step names and history lines, matched to a language it serves; a card's text stays as written. At a project's paths, the reads of its cards and steps, of a card, its update photos, a file and its reminders, and of follow and reminder invitations, and a document's read-now and consent, take the language of the person's chat with Werk in that project first, while it has one. Without either, the language Werk uses with the person the key or the connection acts for.
Path parameters
The project's id.
The card's id.
The photo's or the document's id.
Response
200 The file.
The file.
Show properties of fileHide properties of file
One of 2 shapes, told apart by kind:
kindphotophoto or document.
The update the file came with, or null for a file added to the card itself.
The photo, for a photo.
Show properties of photoHide properties of photo
The photo's id on the card; removing it names this id.
Who added the photo, or null when no longer known.
Show properties of attachedByHide properties of attachedBy
One of 3 shapes, told apart by kind:
kinduseruser for a person; connector or schedule for a change Werk made without one.
The person's name as the project shows it.
The person's initials, for an avatar with no photo.
True when the person is the key's own person.
The person's photo, when they have one.
Show properties of photoHide properties of photo
The person whose photo it is.
The photo's version, which changes with the photo; its read takes it to fetch the current one.
The connected app or API key the change came through; absent for a change made in Werk's apps.
Show properties of viaHide properties of via
connection for an app connected by sign-in, key for an API key.
The app's or the key's name, as Werk shows it.
True when Werk verified the app's identity.
The caption Werk shows beside the change, in the reader's language.
kindconnectoruser for a person; connector or schedule for a change Werk made without one.
The name Werk shows for a change made without a person.
kindscheduleuser for a person; connector or schedule for a change Werk made without one.
The name Werk shows for a change made without a person.
The photo's file.
Show properties of assetHide properties of asset
The file's id.
What the file is: a photo, a voice recording or a document.
The document's name; only a document has one.
The document's format; only a document has one.
The file's media type.
The file's size in bytes.
The photo's width in pixels; absent on photos stored before sizes were kept.
The photo's height in pixels; absent on photos stored before sizes were kept.
The recording's length in seconds; only a voice recording has one.
False once the file's bytes were released and it can no longer be read.
When the photo was added to the card.
True when the key's person may take this photo off the card now.
What Werk read in the photo.
Show properties of readingHide properties of reading
ready once read, reading while Werk reads it, not_read when it will not be read, failed when reading failed.
What Werk sees in the photo, or null.
The text Werk read in the photo, or null.
kinddocumentphoto or document.
The update the file came with, or null for a file added to the card itself.
Who added the document, or null when no longer known.
Show properties of attachedByHide properties of attachedBy
One of 3 shapes, told apart by kind:
kinduseruser for a person; connector or schedule for a change Werk made without one.
The person's name as the project shows it.
The person's initials, for an avatar with no photo.
True when the person is the key's own person.
The person's photo, when they have one.
Show properties of photoHide properties of photo
The person whose photo it is.
The photo's version, which changes with the photo; its read takes it to fetch the current one.
The connected app or API key the change came through; absent for a change made in Werk's apps.
Show properties of viaHide properties of via
connection for an app connected by sign-in, key for an API key.
The app's or the key's name, as Werk shows it.
True when Werk verified the app's identity.
The caption Werk shows beside the change, in the reader's language.
kindconnectoruser for a person; connector or schedule for a change Werk made without one.
The name Werk shows for a change made without a person.
kindscheduleuser for a person; connector or schedule for a change Werk made without one.
The name Werk shows for a change made without a person.
When the document was added.
The document, for a document.
Show properties of documentHide properties of document
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.
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.asset_not_found The file the request names is not one the signed-in person can reach where the request names it, or is no longer available.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/1a7d3f92-6b4e-4c15-8e2a-9f0c5b7d3e81/files/b8f2d6a4-3e1c-4b79-9d05-6a3e8c2f1b97" \
-H "Authorization: Bearer wk_key_..."const res = await fetch("https://api.getwerk.ai/api/v1/projects/2f6c9e41-7a3b-4d58-9c1e-0b8d4f2a6e73/cards/1a7d3f92-6b4e-4c15-8e2a-9f0c5b7d3e81/files/b8f2d6a4-3e1c-4b79-9d05-6a3e8c2f1b97", {
headers: {
Authorization: "Bearer wk_key_...",
},
});
const answer = await res.json();{
"file": {
"kind": "photo",
"updateId": "c9a3e7f1-4d6b-4f80-a2c8-5b1e9d3f7a46",
"photo": {
"id": "b8f2d6a4-3e1c-4b79-9d05-6a3e8c2f1b97",
"attachedBy": {
"kind": "user",
"displayName": "Tom Okafor",
"initials": "TO",
"isViewer": false
},
"asset": {
"id": "f3a9c1e7-5b2d-4c68-a4e0-9d7b3f1c5e82",
"kind": "image",
"mimeType": "image/jpeg",
"sizeBytes": 482113,
"width": 1600,
"height": 1200
},
"attachedAt": "2026-11-19T16:12:00.000Z",
"removable": true
},
"reading": {
"state": "ready",
"description": "A chrome kitchen faucet with a cracked base, under a stainless sink.",
"text": null
}
}
}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.