How to get git-lfs stored blobs via GitLab API?

I’m trying to use the raw file content API to access files in a repository for a CI process. It’s working well, except for files that are stored with git-lfs. It returns the lfs pointer instead, like the following.

oid sha256:1234567890abcdef1234567890abcdef
size 9876543

Is there a way to get GitLab to resolve the git-lfs references and send me the actual file contents? Or, how do I resolve these myself in my CI script?

Has anyone found a solution to this problem?