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

# Simulate an Event

Event simulation is available to test webhook handlers and event processing logic.

## Prerequisites

Some event types require specific endpoints to be called first:

* `attribute.*` events: call `POST /entities/{ent_id}/attributes` first
* `credit_score.*` events: call `POST /entities/{ent_id}/credit_scores` first
* `account.opened` events: call `POST /entities/{ent_id}/connect` first

## Request Body

### Entity Events

### Account Events

```bash cURL theme={null}
curl https://dev.methodfi.com/simulate/events \
  -X POST \
  -H "Method-Version: 2026-03-30" \
  -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "credit_score.create",
    "entity_id": "ent_au22b1fbFJbp8"
  }'
```

```javascript Node.js theme={null}
const event = await method
  .simulate
  .events
  .create({
    type: "credit_score.create",
    entity_id: "ent_au22b1fbFJbp8"
  });
```

```python Python theme={null}
event = method.simulate.events.create({
  "type": "credit_score.create",
  "entity_id": "ent_au22b1fbFJbp8"
})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.