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

Create an application

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

Copy page

Create an application

View MarkdownOpen in ChatGPTOpen in ClaudeOpen in PerplexityDownload OpenAPI

Creates an application from 1 to 50 connected repositories that make up one product or service. Name the repositories by their ids from GET /repos. Hacktron makes the application’s slug from its name, unique within the organisation. Only organisation admins can call it.

When every repository already has a threat model, Hacktron starts building the application’s threat model straight away. Otherwise, build it with POST /applications/{idOrSlug}/threat-model/sync, which builds the missing repository threat models first.

Request

POST /applications

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

Body

A required application/json body.

FieldDescription
name
string, required
At most 128 characters.
repository_ids
array of string, required
Ids from the repository list.

Responses

200 OK

FieldDescription
id
string, required
organization_id
string, required
slug
string, required
name
string, required
tags
array of string, required
created_by
string, required, nullable
created_at
string (date-time), required
updated_at
string (date-time), required
repos
array of object
repos[].application_id
string, required
repos[].repo_url
string, required
repos[].added_by
string, required, nullable
repos[].added_at
string (date-time), required
repo_count
number
finding_count
number
threat_model_updated_at
string, nullable
ISO timestamp of the most recently updated threat_model.md across the application’s repos, or null if none have one. The list endpoint orders applications by this (most recent first; applications without a threat model last).
[↓] [↑] [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]