Code

Ask a question about the project's connected source repositories

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.

post/code/ask

Request

  • Base URL
    https://api.gleap.io/v3
  • URL
    https://api.gleap.io/v3/code/ask
  • Auth
    HTTP bearer

Headers

projectstring required

Request body

questionstring required

Response

Ok

answerstring required

Changes

No recorded changes to this operation across all 56 revisions of this API.