Base URL
Base URL example: two types of accounts
1
[
{
"name": "sandbox",
"type": "boolean",
"label": "Sandbox"
},
...
]2
{
"baseUrl": "https://{{if(connection.sandbox,'sandbox.', '')}}yourapi.com/api"
}Base URL example: two environments
1
[
{
"name": "environment",
"type": "select",
"label": "Environment",
"options": [
{
"label": "EU",
"value": "eu"
},
{
"label": "US",
"value": "us"
}
],
"default": "production"
},
...
]2
{
"baseUrl": "https://{{connection.environment}}.yourapi.com",
...
}Last updated

