> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Index Repositories

> Index multiple repositories (up to 100) for use in Devin sessions.

This endpoint allows you to index multiple repositories at once, making them available for Devin to access during sessions. You can index up to 100 repositories in a single request.

<Note>
  Repository indexing is an asynchronous operation. Use the [Get Repository Status](/api-reference/v2/repositories/get-repository-status) endpoint to check indexing progress.
</Note>


## OpenAPI

````yaml /v2-openapi.yaml POST /beta/v2/enterprise/repositories/bulk-index
openapi: 3.1.0
info:
  description: Devin v2 API with Personal API Keys for Enterprise Admins
  title: Devin API v2
  version: 2.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /beta/v2/enterprise/repositories/bulk-index:
    post:
      tags:
        - repositories
      summary: Bulk Index Repositories
      description: >-
        Bulk index up to 100 repositories with options for fast indexing and/or
        wiki generation.
      operationId: bulk_index_repositories_beta_v2_enterprise_repositories_bulk_index_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkRepoIndexRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    BulkRepoIndexRequest:
      properties:
        org_id:
          title: Org Id
          type: string
        repo_names:
          items:
            type: string
          maxItems: 100
          minItems: 1
          title: Repo Names
          type: array
      required:
        - org_id
        - repo_names
      title: BulkRepoIndexRequest
      type: object
    SuccessResponse:
      properties:
        status:
          default: success
          title: Status
          type: string
      title: SuccessResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      description: Personal API Key (apk_user_*) for Enterprise Admins only
      scheme: bearer
      type: http

````