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

# Sessions SDK

> Session management methods

## create()

Create a new session.

```typescript theme={null}
const session = await client.sessions.create({
  ttl?: number;
  metadata?: Record<string, any>;
});
```

## info()

Get session information.

```typescript theme={null}
const info = await client.sessions.info({
  sessionId: string;
});
```

## delete()

Delete a session.

```typescript theme={null}
await client.sessions.delete({
  sessionId: string;
});
```

## Example

```typescript theme={null}
// Create
const session = await client.sessions.create({ ttl: 3600 });

// Use
await client.execute({ sessionId: session.id, code: '...' });

// Info
const info = await client.sessions.info({ sessionId: session.id });

// Delete
await client.sessions.delete({ sessionId: session.id });
```
