Skip to main content
PUT
/
v3beta1
/
organizations
/
{org_id}
/
repositories
/
indexing
Bulk index repositories
curl --request PUT \
  --url https://api.devin.ai/v3beta1/organizations/{org_id}/repositories/indexing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "repositories": [
    {
      "repository_path": "<string>",
      "branch_names": [
        "<string>"
      ]
    }
  ]
}
'
[
  {
    "branches": [
      "<string>"
    ],
    "indexing_enabled": true,
    "repository_path": "<string>",
    "indexing_status": {
      "indexing_enabled": true,
      "latest_completed_search_index_job": {
        "branch_name": "<string>",
        "commit": "<string>",
        "created_at": 123,
        "job_id": "<string>",
        "status": "failed"
      },
      "latest_completed_wiki_index_job": {
        "branch_name": "<string>",
        "commit": "<string>",
        "created_at": 123,
        "job_id": "<string>",
        "status": "failed"
      },
      "latest_indexes": [
        {
          "branch_name": "<string>",
          "commit": "<string>",
          "created_at": 123,
          "job_id": "<string>",
          "status": "failed"
        }
      ]
    }
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.devin.ai/llms.txt

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

Permissions

Requires a service user with the IndexOrgRepositories permission at the organization level.

Behavior

This endpoint is idempotent — calling it multiple times with the same repositories will not create duplicate indexing jobs. It enables indexing and triggers indexing jobs for each repository in the request. You can optionally specify branch_names for each repository to index specific branches. If omitted, the default branch is used.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Body

application/json
repositories
RepositoryIndexingItem · object[]
required
Required array length: 1 - 100 elements

Response

Successful Response

branches
string[]
required
indexing_enabled
boolean
required
repository_path
string
required
indexing_status
RepoIndexingStatusResponse · object