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

# Node.js

> Learn how to initiate your first membership using the Mitwirken Node.js SDK.

## Prerequisites

To get the most out of this guide, you’ll need to:

* [API Key](https://app.mitwirken.me/api-keys)

## 1. Install

Get the Mitwirken Node.js SDK.

<CodeGroup>
  ```bash bun theme={null}
  bun add mitwirken
  ```

  ```bash yarn theme={null}
  yarn add mitwirken
  ```

  ```bash npm theme={null}
  npm install mitwirken
  ```
</CodeGroup>

## 2. Initiate a membership

Easily initiate a membership by calling the `initiate` method. It will return a URL that you can redirect your user to.

```typescript theme={null}
import { Mitwirken } from 'mitwirken';

// The API key is automatically loaded from `.env` MITWIRKEN_API_KEY
// but also can be passed as a string.
const mitwirken = new Mitwirken();

const membershipURL = mitwirken.memberships.initiate()
```

## 3. Try it yourself

<Card title="Example Project" icon="link" href="https://mitwirken.me">
  A simple example project that uses the Mitwirken API to initiate a membership.
</Card>
