<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [iceshrimp-sdk](./iceshrimp-sdk.md) &gt; [api](./iceshrimp-sdk.api.md) &gt; [isAPIError](./iceshrimp-sdk.api.isapierror.md)

## api.isAPIError() function

**Signature:**

```typescript
export declare function isAPIError(reason: any): reason is APIError;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  reason | any |  |

**Returns:**

reason is [APIError](./iceshrimp-sdk.api.apierror.md)

