---
description: Integrate magic.link's data into Safary
---

# Magic Link

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/](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="https://2470426438-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQiojUMNVV5LS6xD7LTnR%2Fuploads%2F5sjtSJHwwxwWWNN7MfQB%2Fimage.png?alt=media&#x26;token=7ab5c3aa-f61e-423a-b92d-e124d8e26c84" 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="https://2470426438-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQiojUMNVV5LS6xD7LTnR%2Fuploads%2FlhbIsmc7KYazATzkb7Ki%2Fimage.png?alt=media&#x26;token=91f48251-6057-4239-a4ee-3289901e3007" 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).
