---
title: "Get Commit"
method: GET
path: "/api/v4/{workspace-slug}/commits/{commit-public-id}"
---

# Get Commit

`GET /api/v4/{workspace-slug}/commits/{commit-public-id}`

## Request

- Base URL: `https://api.app.shortcut.com`
- URL: `https://api.app.shortcut.com/api/v4/{workspace-slug}/commits/{commit-public-id}`
- Auth: HTTP bearer

Get Commit returns information about a chosen Commit.

## Path parameters

- `workspace-slug` string, required
- `commit-public-id` integer, required

## Query parameters

- `fields` string

## Response `200`

Resource

- CommitEntityWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `entity` Commit, required
    - `author` MemberSlim: The Member who created the Doc.
      - `entity_type` 'member:slim', required: The type of this entity.
      - `id` string, uuid, required: The unique ID of the Member.
      - `name` string, required: The name of the Member.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `created_at` string, date-time: The time/date the Commit was created.
    - `entity_type` 'commit': The type of this entity.
    - `external_url` string: The URL of the Commit in the VCS provider.
    - `hash` string: The Commit hash.
    - `id` integer: The unique ID of the Commit.
    - `message` string: The Commit message, truncated to the first line (up to 1024 characters).
    - `repository` RepositorySlim: The Repository that contains the Commit.
      - `entity_type` 'repository:slim', required: The type of this entity.
      - `id` integer, required: The unique ID of the Repository.
      - `name` string, required: The name of the Repository.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `stories` NestedStorySlimList: A list of Stories associated with this Project.
      - `current_items` integer, required
      - `entities` StorySlim[], required
        - `app_url` string, required: The Shortcut application url for the Story.
        - `entity_type` 'story:slim', required: The type of this entity.
        - `id` integer, required: The unique ID of the Story.
        - `name` string, required: The name of the Story.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
    - `timestamp` string, date-time: The time/date the Commit was pushed.
    - `updated_at` string, date-time, nullable: The time/date the Commit was updated.
    - `uri` string: A resolvable URI for the entity that will return the full representation.

## Other responses

- `400`: Schema mismatch
- `404`: Resource does not exist
- `422`: Unprocessable

---

[API](https://skmtc.dev/shortcut-com/apis/shortcut-api.md) - [All operations](https://skmtc.dev/shortcut-com/apis/shortcut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shortcut-com/apis/shortcut-api/revisions/bf2d8439832f?raw)
