Skip to main content
POST
/
api
/
v0
/
repositories
/
{repo_id}
/
ai
/
ask
Ask the AI service a question about a repository.
curl --request POST \
  --url https://api.example.com/api/v0/repositories/{repo_id}/ai/ask \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "conversationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": {}
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.cantina.xyz/llms.txt

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

Path Parameters

repo_id
string<uuid>
required

Body

application/json

Request for the AI service.

prompt
string
required
conversationId
string<uuid>
required
metadata
object

Response

AI response

The response is of type file.