# 2. Configure Variables

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

Next, go to your SyncVariables dashboard to configure your variables. The interface should look similar to the attached image.

**1. Variable Name**\
This is the name you'll use to reference the variable in your application. For example, if you're setting up a variable to track current orders, you might name it `orderCount`.

**2. API Endpoint**\
This is the URL from which your data will be retrieved. Your application will use this endpoint to access the data.\
**Example:** `https://api.example.com/userdata`

**3. JSON Key** \
The JSON key specifies which part of the API response data should be used.\
\
**Example:**\
If your API response looks like this:

```json
{
  "user": {
    "id": "12345",
    "name": "John Doe"
  }
}
```

And you want to extract the `id`, set the JSON key to `user.id`. This instructs the system to retrieve the `id` value from the `user` object in the response.

*Note:* Currently, only token-based authorization via the URL is supported. We're working on adding more authorization methods in the future, so stay tuned for updates!


---

# Agent Instructions: 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:

```
GET https://syncvariables.gitbook.io/syncvariables-documentation/getting-started/2.-configure-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
