Constants keep your static data clean

Add constants to API calls and update your values from a single location

Sanne Willekens avatar
Written by Sanne Willekens
Updated over a week ago

When configuring API calls in Studio, to connect to an outside system, you have to set each individual action with care (pun intended) to insert the correct endpoints and headers.

These values will probably stay identical for every API call to the same provider throughout your flow. Constants allow you to define these static values at care flow level, to re-use in the correct steps and fields of API calls.

Create a constant

  1. Go to the Elements tab of your care flow

  2. Select Constants in the right-hand menu

  3. Click the "Create constant" button

    1. Enter a name for the constant

    2. Enter a value for the constant

    3. Define if you want to conceal your value. Note: this action is irreversible. Once a value is concealed it will not be shown through the UI and will stay encrypted. When used in API calls, the receiving end will of course receive the decrypted value.

β†’ Click "Save" to start using your constants in your API call actions πŸŽ‰

πŸ‘€ tip: ensure you use HTTPS when making API calls. When a URL is embedded in a constant without using a secure protocol, a warning will pop-up in the API call action to let you know your URL is not allowed.

Use a constant

  1. Open an API call action

  2. Type {{

    1. in the request URL field for your API call, or

    2. in the value field for your inserted header

  3. Select one of the available constants in the drop-down. If your list is empty, head over to this section and create your constants first.

Did this answer your question?