# Variable RetrievalApi`Const`

RetrievalApi: {
_defaultBasePath: string;
getDataRepositories: (
queryParameters: { $count?: boolean; $skip?: number; $top?: number },
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<DataRepositories>;
getDataRepositoryById: (
repositoryId: string,
headerParameters: { "AI-Resource-Group": string },
queryParameters: { remoteName?: string },
) => OpenApiRequestBuilder<DataRepository>;
search: (
body: RetrievalSearchInput,
headerParameters: { "AI-Resource-Group": string },
) => OpenApiRequestBuilder<RetrievalSearchResults>;
}

Representation of the 'RetrievalApi'. This API is part of the 'api' service.

#### Type Declaration

- ##### _defaultBasePath: string

- ##### getDataRepositories: (
  queryParameters: { $count?: boolean; $skip?: number; $top?: number },
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<DataRepositories>

  List all Data Repositories

- ##### getDataRepositoryById: (
  repositoryId: string,
  headerParameters: { "AI-Resource-Group": string },
  queryParameters: { remoteName?: string },
  ) => OpenApiRequestBuilder<DataRepository>

  List data repository by id

- ##### search: (
  body: RetrievalSearchInput,
  headerParameters: { "AI-Resource-Group": string },
  ) => OpenApiRequestBuilder<RetrievalSearchResults>

  Retrieve relevant content given a query string.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/document-grounding/dist/client/api/retrieval-api.d.ts:7