# MetadataKeyControllerApi

All URIs are relative to *http://localhost:8081*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**listMetadataKeys**](#listmetadatakeys) | **GET** /api/v1/documents/metadata-keys | List metadata keys|

# **listMetadataKeys**
> Array<MetadataKeySuggestion> listMetadataKeys()

Metadata keys found on the documents the caller can see, most frequent first, with the number of documents carrying each (at most 200). Meant for autocompletion of the metadata search filter: the list is cached for a short time and is empty when it cannot be computed in time. 404 when key suggestions are disabled.

### Example

```typescript
import {
    MetadataKeyControllerApi,
    Configuration
} from '@openfilz-sdk/typescript';

const configuration = new Configuration();
const apiInstance = new MetadataKeyControllerApi(configuration);

const { status, data } = await apiInstance.listMetadataKeys();
```

### Parameters
This endpoint does not have any parameters.


### Return type

**Array<MetadataKeySuggestion>**

### Authorization

[keycloak_auth](../README.md#keycloak_auth)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: */*


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

