POST
/
repositories
curl --request POST \
  --url https://api.greptile.com/v2/repositories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-GitHub-Token: <api-key>' \
  --data '{
  "remote": "<string>",
  "repository": "<string>",
  "branch": "<string>",
  "reload": true,
  "notify": true
}'
{
  "response": "<string>"
}

Initiates processing or reprocessing of a specified repository. Use the /repositories endpoint to check the status of the repository.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

X-GitHub-Token
string
headerrequired

Body

application/json
remote
string

Supported values are "github" or "gitlab".

repository
string

Repository identifier in "owner/repository" format.

branch
string

Branch name. Optional, defaults to repository's default branch.

reload
boolean

If false, won't reprocess if previously successful. Optional, default true.

notify
boolean

Whether to notify the user upon completion. Optional, default true.

Response

200 - application/json
response
string

Processing status message.