GITLAB API download specfic Tag as zip

I’m trying /v3/projects/{project id}/repository/archive.zip?ref={tagname} but that appears to be giving me the head version, not the tag.

The parameter that you need to specify is sha:

/v3/projects/1136350/repository/archive.zip?sha=TAG