Create Scan
POST /repos/{repo_id}/scan
POST
/repos/{repo_id}/scan
Record pre-computed repository scan results.
This endpoint does not scan a repository server-side — it persists a
scan produced by the g8 CLI (or any MCP client that walks the filesystem
itself). Required fields in the body: tech_stack, api_routes,
gtm_readiness. The server stores the results and links them to the
repo so subsequent /install calls can derive a patch set.
Authorizations
Parameters
Path Parameters
repo_id
required
Repository ID
string
Repository ID
Header Parameters
Request Body required
object
api_routes
Detected API routes
Array<object>
object
key
additional properties
any
gtm_readiness
GTM readiness flags
object
key
additional properties
any
tech_stack
required
Detected tech stack (framework, language, etc.)
object
key
additional properties
any
Responses
201
Successful Response
object
data
required
object
api_routes
required
Array<object>
object
key
additional properties
any
gtm_readiness
object
key
additional properties
any
id
required
string format: uuid
repo_id
required
string format: uuid
tech_stack
required
object
key
additional properties
any
pagination
Any of:
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string