# Interface CreateSessionRequest

The parameters for `createSession`.

interface CreateSessionRequest {
appName: string;
sessionId?: string;
state?: Record<string, unknown>;
userId: string;
}

- Defined in sessions/base_session_service.ts:27

## Properties

### appName

appName: string

The name of the application.

- Defined in sessions/base_session_service.ts:29

### `Optional` sessionId

sessionId?: string

The ID of the session. A new ID will be generated if not provided.

- Defined in sessions/base_session_service.ts:35

### `Optional` state

state?: Record<string, unknown>

The initial state of the session.

- Defined in sessions/base_session_service.ts:33

### userId

userId: string

The ID of the user.

- Defined in sessions/base_session_service.ts:31