API for getting pipeline configuration (i.e. bitbucket-pipelines.yaml)

Is there an API available to retrieve pipeline configuration for a repo? Essentially I’m looking to retrieve the information from bitbucket-pipelines.yml via API.

It looks like the Get Configuration endpoint is intended for this purpose, but it currently doesn’t return much useful information.

A friend told me (:laughing:) that until recently there was an internal pipeline_definitions endpoint that provided some of this information, but that has recently stopped working.