POST
/
repositories
curl --request POST \
  --url https://apigcp.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

Response

200
application/json

Repository indexing started successfully

The response is of type object.