---
title: "Interface IApiClient"
slug: "web-sdk--stylelabs.m.sdk.webclient.contracts.iapiclient"
abstract: ""
---
# Interface IApiClient

Contains functionality to get REST API information. It will also check for compatibility with the server REST API.

## Namespace: StylelabsStylelabs.MSdkWebClientContracts

## Assembly: Stylelabs.M.Sdk.WebClient.dll

## Syntax

```csharp
public interface IApiClient
```

## Properties

### DisableCompatibilityChecks

Gets or sets a value indicating whether disable compatibility. checks should be disabled. true means the check is not performed. This is value is shared over all instances.

#### Declaration

```csharp
bool DisableCompatibilityChecks { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| bool |  |

## Methods

### GetApiInfoAsync()

Gets the REST API information. The result will be cached.

#### Declaration

```csharp
Task<IApiInfo> GetApiInfoAsync()
```

#### Returns

| Type | Description |
| --- | --- |
| Task<>[IApiInfo](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.models.iapiinfo.html) | The API information. |

### GetApiRoutesAsync()

Gets the REST API routes. The result will be cached.

#### Declaration

```csharp
Task<ApiRoutesDictionary> GetApiRoutesAsync()
```

#### Returns

| Type | Description |
| --- | --- |
| Task<>[ApiRoutesDictionary](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.models.apiroutesdictionary.html) | The REST API routes. |

### Refresh()

Forces a refresh of the cached REST API information.

#### Declaration

```csharp
Task Refresh()
```

#### Returns

| Type | Description |
| --- | --- |
| Task | An awaitable . |
