POST
/
repositories
curl --request POST \
  --url https://api.trynia.ai/v2/repositories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "repository": "microsoft/vscode",
  "branch": "main"
}'
{
  "success": true,
  "data": {
    "repository_id": "<string>",
    "status": "<string>",
    "status_url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
repository
string
required

Repository identifier in owner/repo format

Example:

"microsoft/vscode"

branch
string

Branch to index (defaults to repository's default branch)

Example:

"main"

Response

200
application/json
Repository indexing started successfully
success
boolean
data
object