Fetch variable values via REST API

My team manages all environment variables in Octopus and I’m trying to keep it as a single source of truth and avoid duplication in multiple places. I’m looking for a way to fetch variable values and use them in a CI environment. Is there a way to do it via the REST API? I know the space, environment, and application IDs. These variables are set in the Octopus dashboard and they might not be scoped to a release or deployment. Under the deployment > process tab in the scripts section, I see SOME_ENV="$(get_octopusvariable "app.some_env")" line and I’m trying to do exactly the same thing, but via the REST API.

Hi Vladimir,
I will answer your query via the Zendesk ticket.

Regards,
Paraic

Thank you, Paraic. Where can I find Zendesk ticket URL?

Hi Vladimir
You would have received a reply email from Octopus Support when you emailed us. I have sent a reply to that one now, so it should be in your Inbox.

Regards,
Paraic