> ## 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.

# General Events

> [!WARNING]
>
> Method Elements will no longer be supported or maintained beginning December
> 31st, 2025. We recommend using [Method Opal](https://docs.methodfi.com/opal/overview.md) for all new
> integrations. If you are currently using Elements, please reach out to your
> CSM to discuss your migration options.

## Open

The open event is triggered when an element has successfully launched. No additional data is passed at this time.

```bash theme={null}
methodelements://general
  ?op=open
  &element_type=connect
```

The event payload will have the following form:

## Error

The error event is sent for any element that encounters any error while it's active.

```bash theme={null}
methodelements://general
  ?op=error
  &element_type=unknown
  &type=INVALID_REQUEST
  &sub_type=EXPIRED_TOKEN
  &message=The public element token is no longer valid. Element tokens are short lived and can only be used once. Request a new element token and try your request again.
  &code=400
```

The event payload will have the following form:

## Exit

The exit event is the last event in the element flow, at this point your app should no longer present the Method Element. Exit is triggered after an error, a user requested exit or a successful element event.

```bash theme={null}
methodelements://general
  ?op=exit
  &element_type=connect
```

The event payload will have the following form:


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