Skip to main content
GET
/
api
/
v1
/
codewiki
/
{indexName}
/
threat-model
Get threat model
curl --request GET \
  --url https://neo.api.projectdiscovery.io/api/v1/codewiki/{indexName}/threat-model \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "content": "<string>",
  "error": "<string>",
  "freshness": {
    "index_age_seconds": 123,
    "is_stale": true,
    "indexed_at": "2023-11-07T05:31:56Z",
    "indexed_branch": "<string>",
    "indexed_commit_sha": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT authentication token

Path Parameters

indexName
string
required

Response

Threat model response

success
boolean
required
content
string

The threat model markdown content

error
string
freshness
object