Top level pipeline env empty when queried through API

#1

We have a pipeline that includes a top level environment variable

env:
  FOO: "true"

steps:
  ...

When we query https://api.buildkite.com/v2/organizations/${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.