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

List context documents

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

Copy page

List context documents

View MarkdownOpen in ChatGPTOpen in ClaudeOpen in PerplexityDownload OpenAPI

Returns what Hacktron knows about a repository’s design and security, most recently updated first. Use the repository’s id from GET /repos. kind tells the documents apart:

kind Document
threat_model The repository’s threat model.
application_threat_model The threat model of an application the repository belongs to.
document A context document your team uploaded for the repository.

Read one with GET /context-documents/{id}. readable is false for a PDF, which this API doesn’t return. Open it in Hacktron instead.

Request

GET /context-documents

Send an API key with the read scope in the X-Api-Key header.

Query parameters

ParameterDescription
repository_id
string (uuid), required
Id from the repository list.

Responses

200 OK

FieldDescription
data
array of object, required
data[].id
string (uuid), required
data[].name
string, required
data[].kind
string, required
One of threat_model, application_threat_model, or document.
data[].updated_at
string (date-time), required
data[].readable
boolean, required
Whether the content is text this API returns; PDFs open in Hacktron.
[↓] [↑] [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]