2. Configure Variables

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:
{
"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!
Last updated