Get a context document
Returns a threat model or context document with its text. Use an id from GET /context-documents.
contentholds up to 40,000 characters, andtruncatedistruewhen the document is longer.- A PDF returns empty
contentwithreadableset tofalse. Open it in Hacktron instead. updated_atsays how current the document is. A threat model changes with triage feedback and new context, not with every code change.
Request
GET /context-documents/{id}
Send an API key with the read scope in the X-Api-Key header.
Path parameters
| Parameter | Description |
|---|---|
idstring, required |
Responses
200 OK
| Field | Description |
|---|---|
idstring (uuid), required | |
namestring, required | |
kindstring, required | One of threat_model, application_threat_model, or document. |
updated_atstring (date-time), required | |
readableboolean, required | Whether the content is text this API returns; PDFs open in Hacktron. |
contentstring, required | Markdown or text content. |
truncatedboolean, required | Whether the content was cut at its limit. |