> 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/privy.md).

# Privy

{% embed url="<https://www.loom.com/share/d29e0fe3c6e746a5a1f97c65445913c0?sid=f0d95631-becc-4e70-a4f9-0e12fbd71c6a>" %}

{% hint style="warning" %}

### Before following this guide, make sure that you have integrated Safary script into your web app!

{% endhint %}

To get users' data from your dynamic.xyz usage, we  need Privy app ID and Prviy app secret.\
You can find them by opening up [Privy dashboard](https://dashboard.privy.io/) and opening your app, then clicking on Configuration dropdown -> App Settings

<figure><img src="/files/mdkGSsKROHrX9FJuQrpc" alt=""><figcaption></figcaption></figure>

In there you'll find your App ID and App Secret

<figure><img src="/files/GzGCXE165I7tCwODjmXS" alt=""><figcaption></figcaption></figure>

If you haven't saved the App Secret before -> you can  click on New Secret button and a new secret will pop up that will allow you to copy it.

<figure><img src="/files/CAW8qNicPAAdvfPRlLnr" alt=""><figcaption></figcaption></figure>

Now go back to Safary dashboard and copy over the Privy App Id and app secret into appropriate places then click on Connect Privy button.

<figure><img src="/files/6AySBnet621O6zlRfRKX" alt=""><figcaption></figcaption></figure>

And that's it you should now see something like this

<figure><img src="/files/KJh8DQK7naF2ef1pkdSj" alt=""><figcaption></figcaption></figure>

The Status will be in the "Processing" state until the next pipeline run (Usually in a couple of hours). After that, you're ready to pick up user information trough Privy!


---

# 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/privy.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.
