You can add some logic so it pulls today, it won’t create though.
I use that route to send stuff to today’s journal with Siri Shortcuts all the time. And I use /new/tomorrow everyday so the next days space is always ready.
I guess I could create a script that would get all spaces and then filter them, and if the journal for the current day is not found, then create one. However, I am afraid that it would be rather complicated for me and relatively slow to proces.
If you can, I would try automating the creation of tomorrows space separately with the url so you don’t have to worry about if the days space is created.
A very nice code! I have to do it JavaScript but I always admire MacOS`s tools like Shortcuts, Automator, BetterTouchTool etc. On Windows, it is much less user friendly. Luckily, I have an older Mac to look at your code!