Attach custom metadata to a partner and their events during signup using query parameters.


๐ŸŽฏ Overview

The Partner API allows attaching custom metadata fields to both:

This is done by including extra query parameters in the sign-up URL. These parameters are automatically parsed and stored as metaData on the user and cascade to their events.


๐Ÿš€ How It Works

When sending a partner to your signup URL, include:

<https://organizer.3common.com/auth?referral_code=><your_code>&<key1>=<value1>&<key2>=<value2>...

๐Ÿงช Example

<https://organizer.3common.com/auth?referral_code=hello123&any=123&field=abc&you=123&want=abc>

This results in the following structure being saved:

metaData: {
  "any": "123",
  "field": "abc",
  "you": "123",
  "want": "abc"
}