Top level pipeline env empty when queried through API


We have a pipeline that includes a top level environment variable

  FOO: "true"


When we query${org-slug}/pipelines\?per_page\=100 the variable in in each of the steps, but env is empty in the top level of the pipeline.

Is this intended to work this way or is it a bug? We use environment variables to filter pipelines from a script.