---
title: "Get a previous snippet change"
method: GET
path: "/snippets/{workspace}/{encoded_id}/commits/{revision}"
tags: ["Snippets"]
---

# Get a previous snippet change

`GET /snippets/{workspace}/{encoded_id}/commits/{revision}`

Returns the changes made on this snippet in this commit.

## Response `200`

The specified snippet commit.

- SnippetCommit
  - `type` string, required
  - `hash` string
  - `date` string, date-time
  - `author` Author — The author of a change in a repository
    - `type` string, required
    - `raw` string — The raw author value from the repository. This may be the only value available if the author does not match a user in Bitbucket.
    - `user` Account — An account object.
      - `type` string, required
      - `links` AccountLinks — Links related to an Account.
        - `avatar` Link — A link to a resource related to this object.
          - `href` string, uri
          - `name` string
      - `created_on` string, date-time
      - `display_name` string
      - `uuid` string
  - `committer` Committer — The committer of a change in a repository
    - `type` string, required
    - `raw` string — The raw committer value from the repository. This may be the only value available if the committer does not match a user in Bitbucket.
    - `user` Account — An account object.
      - `type` string, required
      - `links` AccountLinks — Links related to an Account.
        - `avatar` Link — A link to a resource related to this object.
          - `href` string, uri
          - `name` string
      - `created_on` string, date-time
      - `display_name` string
      - `uuid` string
  - `message` string
  - `summary` object
    - `raw` string — The text as it was typed by a user.
    - `markup` 'markdown' | 'creole' | 'plaintext' — The type of markup language the raw content is to be interpreted in.
    - `html` string — The user's content rendered as HTML.
  - `parents` BaseCommit[]
    - `type` string, required
    - `hash` string
    - `date` string, date-time
    - `author` Author — The author of a change in a repository
      - `type` string, required
      - `raw` string — The raw author value from the repository. This may be the only value available if the author does not match a user in Bitbucket.
      - `user` Account — An account object.
        - `type` string, required
        - `links` AccountLinks — Links related to an Account.
          - `avatar` Link — A link to a resource related to this object.
            - `href` string, uri
            - `name` string
        - `created_on` string, date-time
        - `display_name` string
        - `uuid` string
    - `committer` Committer — The committer of a change in a repository
      - `type` string, required
      - `raw` string — The raw committer value from the repository. This may be the only value available if the committer does not match a user in Bitbucket.
      - `user` Account — An account object.
        - `type` string, required
        - `links` AccountLinks — Links related to an Account.
          - `avatar` Link — A link to a resource related to this object.
            - `href` string, uri
            - `name` string
        - `created_on` string, date-time
        - `display_name` string
        - `uuid` string
    - `message` string
    - `summary` object
      - `raw` string — The text as it was typed by a user.
      - `markup` 'markdown' | 'creole' | 'plaintext' — The type of markup language the raw content is to be interpreted in.
      - `html` string — The user's content rendered as HTML.
    - `parents` BaseCommit[]
  - `links` object
    - `self` object — A link to a resource related to this object.
      - `href` string, uri
      - `name` string
    - `html` object — A link to a resource related to this object.
      - `href` string, uri
      - `name` string
    - `diff` object — A link to a resource related to this object.
      - `href` string, uri
      - `name` string
  - `snippet` Snippet — A snippet object.
    - `type` string, required
    - `id` integer
    - `title` string
    - `scm` 'git' — The DVCS used to store the snippet.
    - `created_on` string, date-time
    - `updated_on` string, date-time
    - `owner` Account — An account object.
      - `type` string, required
      - `links` AccountLinks — Links related to an Account.
        - `avatar` Link — A link to a resource related to this object.
          - `href` string, uri
          - `name` string
      - `created_on` string, date-time
      - `display_name` string
      - `uuid` string
    - `creator` Account — An account object.
      - `type` string, required
      - `links` AccountLinks — Links related to an Account.
        - `avatar` Link — A link to a resource related to this object.
          - `href` string, uri
          - `name` string
      - `created_on` string, date-time
      - `display_name` string
      - `uuid` string
    - `is_private` boolean

## Other responses

- `403` — If the authenticated user does not have access to the snippet.
- `404` — If the commit or the snippet does not exist.

---

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