Config Collection as Central Variable?

I’m facing the following problem and would like to know if anyone has a solution:

My Setup:

  • Config Collection (Singleton) with a field url
  • Another Collection with a string field using the “Autocomplete Input (API)” interface
  • Flow with a webhook

What I want to achieve:

I would like to use the URL from my Config Collection centrally:

In the Autocomplete API:

{{config.url}}/search?q={{value}}

In the Flow Webhook:

{{config.url}}/search?q={{$trigger.payload.xyz}}

The Problem:

The variable {{config.url}} doesn’t seem to be resolved. I want to manage the URL centrally through the Config Collection and use it dynamically in all places.

My Questions:

  • Is it possible to use values from a Config Collection as global variables in other Collections and Flows?
  • Is there another approach for central configuration variables in Directus?
  • Has anyone implemented a similar setup before?

I appreciate any tips!

As of writing (Jun 2025 / v11.8), Directus does not have a way to set up a global set of variables that can be reused in other places where display templates are used. I really dig that idea though! I’ve gone ahead and jotted down a feature request on our end for review :slightly_smiling_face: