---
title: "List Commits"
method: GET
path: "/api/v4/{workspace-slug}/commits"
---

# List Commits

`GET /api/v4/{workspace-slug}/commits`

## Request

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

List Commits returns a paginated list of all Commits in the Workspace that have been associated with Stories.

## Path parameters

- `workspace-slug` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `order_by` 'updated_at'
- `order_dir` 'desc' | 'asc'
- `filter` 'all'
- `fields` string

## Response `200`

Resource

- CommitEntityListWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `current_items` integer, required: The number of items on the current page.
  - `current_page` integer, required: The number of the current page.
  - `entities` Commit[], required: The entities for this page.
    - `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.
  - `total_items` integer, required: The number of total items across all pages.
  - `total_pages` integer, required: The total number of pages.
  - `next_page_url` string: A URL to get the next page. Will be absent on the last page.

## 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)
