OpenAI is partnering with Hacktron to find vulnerabilities in its systems. Read the announcement.

Skip to content Hacktron Sign in [S]
Hacktron Sign in [S] Customers Docs Contact Sign in

Get a context document

1 min
, View, ChatGPT, Claude, Perplexity, OpenAPI

Copy page

Get a context document

View MarkdownOpen in ChatGPTOpen in ClaudeOpen in PerplexityDownload OpenAPI

Returns a threat model or context document with its text. Use an id from GET /context-documents.

  • content holds up to 40,000 characters, and truncated is true when the document is longer.
  • A PDF returns empty content with readable set to false. Open it in Hacktron instead.
  • updated_at says 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

ParameterDescription
id
string, required

Responses

200 OK

FieldDescription
id
string (uuid), required
name
string, required
kind
string, required
One of threat_model, application_threat_model, or document.
updated_at
string (date-time), required
readable
boolean, required
Whether the content is text this API returns; PDFs open in Hacktron.
content
string, required
Markdown or text content.
truncated
boolean, required
Whether the content was cut at its limit.
[↓] [↑] [enter] to visit
Menu
[M]
Next in menu
[J]
Previous in menu
[K]
Find
[F]
Ask
[A]
Sign in
[S]
Copy page
[C]
Listen
[L]
Justification
[R]
Language
[G]
Dark mode
[D]
High contrast
[H]
Shortcuts
[I]
Close
[Esc]