GET
/
beta
/
v2
/
enterprise
/
repositories
/
{org_id}
Get Repository Indexing Status
curl --request GET \
  --url https://api.devin.ai/beta/v2/enterprise/repositories/{org_id} \
  --header 'Authorization: Bearer <token>'
[
  {
    "name": "my-org/frontend-app",
    "indexing_enabled": true,
    "latest_index": {
      "created_at": "2024-09-08T00:30:00Z",
      "commit": "abc123def456",
      "status": "completed",
      "job_id": "job-789xyz"
    },
    "latest_completed_search_index_job": {
      "created_at": "2024-09-08T00:30:00Z",
      "commit": "abc123def456",
      "status": "completed",
      "job_id": "job-789xyz"
    },
    "latest_completed_wiki_index_job": null
  }
]
This endpoint returns the current indexing status for all repositories associated with the specified organization. The response includes information about indexing jobs, commit SHAs, and timestamps for each repository.

Path Parameters

org_id
string
required
The unique identifier of the organization whose repositories you want to check

Response

Returns an array of repository status objects.
name
string
required
The full name of the repository in “owner/repo-name” format
indexing_enabled
boolean
required
Whether indexing is enabled for this repository
latest_index
object
Information about the most recent indexing job for this repository
latest_completed_search_index_job
object
Information about the most recent completed search indexing job
latest_completed_wiki_index_job
object
Information about the most recent completed wiki indexing job
[
  {
    "name": "my-org/frontend-app",
    "indexing_enabled": true,
    "latest_index": {
      "created_at": "2024-09-08T00:30:00Z",
      "commit": "abc123def456",
      "status": "completed",
      "job_id": "job-789xyz"
    },
    "latest_completed_search_index_job": {
      "created_at": "2024-09-08T00:30:00Z",
      "commit": "abc123def456",
      "status": "completed",
      "job_id": "job-789xyz"
    },
    "latest_completed_wiki_index_job": null
  }
]

Status Values

  • pending - Repository is queued for indexing
  • in_progress - Repository is currently being indexed
  • completed - Repository has been successfully indexed
  • failed - Repository indexing failed

Error Responses

  • 403 - Access denied to this organization
  • 404 - Organization not found
  • 422 - Validation error (invalid org_id format)