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

# Events

> TypeScript SDK reference for the Events resource

## waitForEvent

`POST /v1/events/{event_name}/wait` — Wait for Event

```typescript theme={null}
import { client, Events } from 'anchorbrowser';

// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });

const result = await Events.waitForEvent({
  path: {
    event_name: 'your-event-name'
  }
});
console.log(result);
```

## signalEvent

`POST /v1/events/{event_name}` — Signal Event

```typescript theme={null}
import { client, Events } from 'anchorbrowser';

// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });

const result = await Events.signalEvent({
  path: {
    event_name: 'your-event-name'
  },
  body: {
    data: {
      message: 'Task completed',
      result: 'success',
      timestamp: '2024-01-01T12:00:00Z'
    }
  }
});
console.log(result);
```
