Endpoint reference
Every Brunel REST API endpoint with its parameters, types, constraints and a curl example. Generated from the same definitions the API runs on.
Every endpoint below is generated from the definitions the API itself uses, and matches the OpenAPI document. Paths are relative to https://api.brunel.cloud.
GET /v1/me
Your account
The account behind the key, its plan and the key's scope. Returns 200. Same tool as MCP: whoami (read-only keys allowed).
curl "https://api.brunel.cloud/v1/me" \
-H "Authorization: Bearer $BRUNEL_API_KEY"GET /v1/projects
List analyses
Your repository analyses, most recent first. Returns 200. Same tool as MCP: list_projects (read-only keys allowed).
Query parameters
| Name | Type | Description |
|---|---|---|
limit | integer | min 1, max 100, default 20 |
curl "https://api.brunel.cloud/v1/projects" \
-H "Authorization: Bearer $BRUNEL_API_KEY"POST /v1/projects
Analyze a repository
Read a GitHub repository without running it: its security check (secrets, code, dependencies, Docker, CI and infrastructure as code) with file evidence, the detected stack and its services. Waits for the result (5 to 60 seconds). Returns 201 when the work is done. Same tool as MCP: analyze_repository (needs a read and write key).
JSON body
| Name | Type | Description |
|---|---|---|
repoUrlrequired | string | GitHub URL or owner/repo≥ 1 chars, ≤ 500 chars |
ref | string | Branch, tag or commit (default branch when omitted)≤ 200 chars |
curl -X POST "https://api.brunel.cloud/v1/projects" \
-H "Authorization: Bearer $BRUNEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "repoUrl": "https://github.com/acme/shop" }'GET /v1/projects/{id}
Get an analysis
An analysis: status, commit, detected stack with evidence, services and security findings. Returns 200. Same tool as MCP: get_analysis (read-only keys allowed).
Path: id is the project id (conversationId in list results).
curl "https://api.brunel.cloud/v1/projects/c_8Hk2…" \
-H "Authorization: Bearer $BRUNEL_API_KEY"POST /v1/projects/{id}/watch
Watch a project
Turn the daily watch of the analysis's repository on (`{ "on": true }`, the default) or off. A watched repository is analyzed again when it changes, once a day at most, and new findings go to your notifications. Returns 200. Same tool as MCP: watch_project (needs a read and write key).
Path: id is the project id (conversationId in list results).
JSON body
| Name | Type | Description |
|---|---|---|
on | boolean | true to watch (the default), false to stopdefault true |
curl -X POST "https://api.brunel.cloud/v1/projects/c_8Hk2…/watch" \
-H "Authorization: Bearer $BRUNEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'GET /v1/projects/{id}/watch
Get a project's watch
Whether the repository is watched, its last check and the latest changes in its findings. Returns 200. Same tool as MCP: get_watch (read-only keys allowed).
Path: id is the project id (conversationId in list results).
curl "https://api.brunel.cloud/v1/projects/c_8Hk2…/watch" \
-H "Authorization: Bearer $BRUNEL_API_KEY"