> 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).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://safary-1.gitbook.io/safary-doc-2.0/connect-data/integrations/magic-link.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
