> For the complete documentation index, see [llms.txt](https://safary-1.gitbook.io/safary-doc-2.0/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://safary-1.gitbook.io/safary-doc-2.0/connect-data/integrations/magic-link.md).

# Magic Link

{% embed url="<https://www.loom.com/share/c59668aa29d9435f910e8fae09b35500?sid=55a3271b-8218-45d6-a676-01034b7f41d6>" %}

To get users' data from your magic.link usage, we **only** need magic.link's **Secret Key**.

{% hint style="warning" %}
Note that the **Secret Key** only allows us to retrieve data or logout your users (which obviously we will not do) — have a look at their [docs here](https://magic.link/docs/api/server-side-sdks/python) to see the available methods.\
\
Therefore, with only the Secret Key we **cannot** alter your magic.link data.
{% endhint %}

### How to find the Secret Key

Go to your magic.link dashboard at <https://dashboard.magic.link/> and enter your desired app's Home page.

At the bottom of the Home page you will find the API Keys section like below:

<figure><img src="/files/eMJvzxzxEXR9Mk0WSXl2" alt=""><figcaption><p>API Keys section in Magic Link's Dashboard</p></figcaption></figure>

As informed above, we only need the Secret Key (**not** the Publishable).

### How to inform Safary about the Secret Key

In Safary's dashboard, go to:

* Settings  >  Integrations  >  Magic Link

Then simply paste the Secret Key copied and hit "Sync Magic".

<figure><img src="/files/eYgzo0lbJOmaM67cqGWg" alt=""><figcaption><p>Input for Magic Link's Secret Key on Safary</p></figcaption></figure>

Note that with this key inserted, we will be able to query the wallets that from now on connect through your website using magic.link to obtain the information they provided to magic.link (like socials and email).
