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

# Dynamic

{% embed url="<https://www.loom.com/share/b3829d34f5ed4ec49ea843c9e2b44754?sid=1dc9172d-80be-47e4-abef-6ce6a42ecc1d>" %}

{% 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 Environment ID and API Tokens.\
You can find the Environment ID on top of the [Dynamic's Developer Dashboard](https://app.dynamic.xyz/dashboard/overview)

To find the API Key you'd need to click on the Developers dropdown and click on SDK and API Keys

<figure><img src="/files/9XzaQcTxZnrV48wHEiBo" alt=""><figcaption></figcaption></figure>

In the **API Tokens** section, you should click on Create Token, give it an appropriate name (i.e. Safary<->Dynamic), click on Add. Then Copy the key and click on the checkbox "I have copied and saved the API token in a secure place"

&#x20;![](/files/5N3hadSwcole88VzSXC0)

Then go back to the Safary dashboard, and paste the two corresponding values (Environment ID and API Token) in the appropriate places.&#x20;

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

Then click on the Connect Dynamic button.&#x20;

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

The Status will stay in the Processing state until the next pipeline run on our end (usually after couple of hours).&#x20;

After that, your Status will change and you will receive more user insight trough dynamic.xyz!


---

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