---
title: "Ask a question about the project's connected source repositories"
method: POST
path: "/code/ask"
tags: ["Code"]
---

# Ask a question about the project's connected source repositories

`POST /code/ask`

Forwards the question to the code analyzer, which clones all
repositories connected to this project, investigates them, and returns a
user-facing answer (logic, behavior, click paths). The analyzer's system prompt enforces that no code,
identifiers or secrets are included in answers. With no repositories connected the endpoint returns 200
with a canned no-repositories answer; it fails with 409 when the AI usage limit is reached.

## Headers

- `project` string, required

## Request body

- CodeKnowledgeAskDto
  - `question` string, required

## Response `200`

Ok

- object
  - `answer` string, required

---

[API](https://skmtc.net/gleap/apis/gleap-server.md) · [All operations](https://skmtc.net/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleap/gleap-server/versions/2bfe054193b5/schema)
