# IRPCIndexingDataSource.GetFacetSources

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Server integration API](https://developer.m-files.com/APIs/gRPC-API/integration/index.md) > [Indexing data source](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/GetFacetSources/

Badges: `Server integration API / specialized` `internal: not for applications` `write` `session`

Gets the facet definitions configured for the vault, as JSON.

- **Service:** [Indexing data source](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/index.md) `MFiles.IRPCIndexingDataSource`
- **gRPC method:** `/MFiles.IRPCIndexingDataSource/GetFacetSources`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-facet-sources`
- **Request:** [`GetFacetSourcesRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/GetFacetSources/index.md#request)
- **Response:** [`GetFacetSourcesResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCIndexingDataSource/GetFacetSources/index.md#response)
- **Book and level:** Server integration API, specialized
- **Kind:** write
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

**For M-Files components only.** Search indexers call it. Applications should not call it.
- Requires the system administrator server role (server right `log_in_to_any_vault`).

<a id="request"></a>

## Request: GetFacetSourcesRequest

No fields.

<a id="response"></a>

## Response: GetFacetSourcesResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `facet_sources_json` | `string` | Receives the facet sources object. |
