Prerequisites

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

1. Install

Get the Mitwirken Node.js SDK.

bun add mitwirken

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.

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

Example Project

A simple example project that uses the Mitwirken API to initiate a membership.