Skip to main content
POST
/
api
/
v1
/
codemaps
/
generate
Trigger codebase analysis
curl --request POST \
  --url https://neo.api.projectdiscovery.io/api/v1/codemaps/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "git_url": "<string>",
  "index_name": "<string>",
  "branch": "<string>",
  "git_token": "<string>",
  "options": {
    "exclude_tests": true,
    "include_audit_context": true,
    "include_diagrams": true,
    "include_threat_model": true,
    "main_model": "<string>",
    "skip_codewiki": true,
    "sub_model": "<string>"
  }
}
'
{
  "generation_id": "<string>",
  "status": "<string>",
  "success": true,
  "index_name": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Body

application/json
git_url
string
required

Git repository URL

index_name
string
required

Unique name for this index

branch
string

Branch to analyze

git_token
string

Git auth token for private repos (not stored)

options
object

Response

Generation started

generation_id
string
required
status
string
required
success
boolean
required
index_name
string