---
title: "Get a snippet's raw file at HEAD"
method: GET
path: "/snippets/{workspace}/{encoded_id}/files/{path}"
tags: ["Snippets"]
---

# Get a snippet's raw file at HEAD

`GET /snippets/{workspace}/{encoded_id}/files/{path}`

Convenience resource for getting to a snippet's raw files without the
need for first having to retrieve the snippet itself and having to pull
out the versioned file links.

## Other responses

- `302` — A redirect to the most recent revision of the specified file.
- `403` — If the authenticated user does not have access to the snippet.
- `404` — If the snippet does not exist.

---

[API](https://skmtc.net/atlassian/apis/bitbucket-api.md) · [All operations](https://skmtc.net/atlassian/apis/bitbucket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/bitbucket-api/versions/8c7911c0a910/schema)
