> ## Documentation Index
> Fetch the complete documentation index at: https://docs.collab-kit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Response Types

> Standard response envelope and error types used by all API endpoints.

```typescript theme={null}
import type { ServerResponse, ServerResponseError } from '@collab-kit/utils';
```

## ServerResponse

Standard response envelope used by all API endpoints.

```typescript theme={null}
interface ServerResponse<T extends object = Record<string, never>> {
  type: string;
  success: boolean;
  description: string;
  data: T;
  error: ServerResponseError | null;
  requestId?: string;
}
```

## ServerResponseError

Error details returned when `success` is `false`.

```typescript theme={null}
interface ServerResponseError {
  module: Module;
  code: ResponseCode;
  message: string;
}
```
