---
updatedAt: 2026-06-12T23:00:16.000Z
agentTools:
  projectIndex: https://developers.7shifts.com/llms.txt
---

# List Shifts

**[Minimum Plan Required](https://developers.7shifts.com/docs/plan-requirements):** The Works

#### Sample Response

```json
{
    "data": [
        {
            "id": 435688597,
            "user_id": 555,
            "department_id": 7890,
            "location_id": 4569,
            "company_id": 1234,
            "role_id": 2583,
            "station": 1,
            "station_name": "Back Bar",
            "station_id": 663957,
            "start": "2022-07-06T23:00:00Z",
            "end": "2022-07-07T05:00:00Z",
            "close": false,
            "business_decline": false,
            "hourly_wage": 1500,
            "notes": "",
            "draft": false,
            "notified": false,
            "open": false,
            "unassigned": false,
            "unassigned_skill_level": 0,
            "open_offer_type": "all_location_members",
            "publish_status": "published",
            "attendance_status": "none",
            "late_minutes": 0,
            "created": "2022-07-06T14:11:19Z",
            "modified": "2022-07-08T00:44:06Z",
            "soft_deleted": null,
            "deleted": false,
            "breaks": []
        },
        {
            "id": 436920224,
            "user_id": 555,
            "department_id": 7890,
            "location_id": 4569,
            "company_id": 1234,
            "role_id": 1013817,
            "station": 0,
            "station_name": "Back Bar",
            "station_id": 663957,
            "start": "2022-07-06T23:00:00Z",
            "end": "2022-07-07T05:00:00Z",
            "close": false,
            "business_decline": false,
            "hourly_wage": 1800,
            "notes": "",
            "draft": false,
            "notified": false,
            "open": false,
            "unassigned": false,
            "unassigned_skill_level": 0,
            "open_offer_type": "all_location_members",
            "publish_status": "published",
            "attendance_status": "none",
            "late_minutes": 0,
            "created": "2022-07-08T00:27:52Z",
            "modified": "2022-07-08T00:44:06Z",
            "soft_deleted": null,
            "deleted": false,
            "breaks": []
        }
    ],
    "meta": {
        "cursor": {
            "current": null,
            "prev": null,
            "next": "eyJpZCI6NDM2OTIwMjI0LCJuZXh0Ijp0cnVlfQ==",
            "count": 2
        }
    },
    "object": "shifts"
}
```

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "7shifts API",
    "contact": {
      "email": "api-support@7shifts.com"
    },
    "version": "2026-06-01"
  },
  "servers": [
    {
      "url": "https://api.7shifts.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/v2/company/{company_id}/shifts": {
      "get": {
        "tags": [
          "Shifts"
        ],
        "summary": "List Shifts",
        "operationId": "listShift",
        "x-public-api": true,
        "parameters": [
          {
            "name": "x-api-version",
            "in": "header",
            "description": "7shifts API version",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "An API version",
              "example": "2022-05-01"
            }
          },
          {
            "name": "x-company-guid",
            "in": "header",
            "description": "Company GUID",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "1310bfe1-cb3f-4f24-98a2-fde2bc504108"
          },
          {
            "name": "company_id",
            "in": "path",
            "description": "Company ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Cursor for the next or previous page of results.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The number of results desired per page.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 100,
              "format": "int64"
            }
          },
          {
            "name": "location_id",
            "in": "query",
            "description": "Location ID",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          },
          {
            "name": "shift_ids",
            "in": "query",
            "description": "A comma separated list of Shift IDs",
            "required": false,
            "explode": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              },
              "minItems": 1,
              "example": "123,231,222"
            }
          },
          {
            "name": "department_id",
            "in": "query",
            "description": "Department ID",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          },
          {
            "name": "department_ids",
            "in": "query",
            "description": "Department IDs",
            "required": false,
            "explode": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              },
              "minItems": 1,
              "example": "123,231,222"
            }
          },
          {
            "name": "role_id",
            "in": "query",
            "description": "Role ID",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          },
          {
            "name": "user_id",
            "in": "query",
            "description": "User ID",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "example": 1234
          },
          {
            "name": "start[lte]",
            "in": "query",
            "description": "Return shifts that start before or on specified date. In ISO8601 Format",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 date/time format",
              "example": "2021-01-30T08:30:00Z"
            }
          },
          {
            "name": "start[gte]",
            "in": "query",
            "description": "Return shifts that start after or on specified date time. In ISO8601 Format",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 date/time format",
              "example": "2021-01-30T08:30:00Z"
            }
          },
          {
            "name": "end[lte]",
            "in": "query",
            "description": "Return shifts that end before or on specified date time. In ISO8601 Format",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 date/time format",
              "example": "2021-01-30T08:30:00Z"
            }
          },
          {
            "name": "end[gte]",
            "in": "query",
            "description": "Return shifts that end after or on specified date time. In ISO8601 Format",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 date/time format",
              "example": "2021-01-30T08:30:00Z"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "description": "Return shifts that were published and have been deleted. Cannot be combined with draft.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "include_deleted",
            "in": "query",
            "description": "Return shifts that are deleted.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "draft",
            "in": "query",
            "description": "Return shifts that are in draft. Draft shifts have created, edited or deleted but not been published. Overrides deleted flag.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "include_draft",
            "in": "query",
            "description": "Return shifts that are published, and also shifts in draft. Overrides deleted flag and draft flag.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "open",
            "in": "query",
            "description": "Return shifts that are open. Open shifts means anyone can request to take it and not assigned to any individual.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "modified_since",
            "in": "query",
            "description": "Return only shifts that have been modified from specified date time. In ISO8601 Format",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "RFC 3339 date/time format",
              "example": "2021-01-30T08:30:00Z"
            }
          },
          {
            "name": "sort_by",
            "in": "query",
            "description": "Sort by either start or end",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(,?[a-zA-Z_]*(\\.(asc|desc))?){1,}$"
            }
          },
          {
            "name": "sort_dir",
            "in": "query",
            "description": "Sort by direction (asc, desc)",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(,?[a-zA-Z_]*(\\.(asc|desc))?){1,}$"
            }
          },
          {
            "name": "consider_tz_in_ranges",
            "in": "query",
            "description": "When passing start[lte], start[gte], end[lte], or end[gte] parameters, consider the offset passed. Previously we ignored the offset and treated all datetimes as local location time",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "shifts"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "description": "Shift ID"
                          },
                          "user_id": {
                            "type": "integer",
                            "nullable": true,
                            "description": "User ID"
                          },
                          "start": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Start date time of the shift. UTC in ISO8601 format"
                          },
                          "end": {
                            "type": "string",
                            "format": "date-time",
                            "description": "End date time of the shift. UTC in ISO8601 format"
                          },
                          "close": {
                            "type": "boolean",
                            "description": "If true the shift ends at closing time. If set end is not used."
                          },
                          "business_decline": {
                            "type": "boolean",
                            "description": "If true the shift ends at business decline."
                          },
                          "hourly_wage": {
                            "type": "number",
                            "description": "Read Only. The hourly wage for this shift. In cents.",
                            "readOnly": true
                          },
                          "department_id": {
                            "type": "integer",
                            "nullable": true,
                            "description": "Department ID. Required if the location uses departments."
                          },
                          "location_id": {
                            "type": "integer",
                            "description": "The ID of the location that the shift is assigned to."
                          },
                          "role_id": {
                            "type": "integer",
                            "nullable": true,
                            "description": "Role ID. Required if the location uses roles."
                          },
                          "notes": {
                            "type": "string",
                            "description": "Notes displayed on a shift"
                          },
                          "draft": {
                            "type": "boolean",
                            "description": "Whether or not the shift is a draft shift. Draft shifts are shifts that have not yet been published."
                          },
                          "notified": {
                            "type": "boolean",
                            "description": "Whether or not the individual assigned to the shift has been notified of the shifts existence."
                          },
                          "open": {
                            "type": "boolean",
                            "description": "If true the shift is not assigned to any user. Open shifts can be requested by users."
                          },
                          "unassigned": {
                            "type": "boolean",
                            "description": "Shifts in a template that could not be assigned to any eligible employees."
                          },
                          "unassigned_skill_level": {
                            "type": "integer",
                            "description": "Specify the minimum user skill level required for the shift. Levels 1 - beginner, 2 - intermediate, 3 - Experienced.",
                            "default": 2
                          },
                          "open_offer_type": {
                            "type": "string",
                            "nullable": true,
                            "description": "Specifies the scope of who can pick up the shift.",
                            "enum": [
                              "all_location_members",
                              "all_role_members",
                              "set_of_location_members",
                              "all_company_employees"
                            ]
                          },
                          "attendance_status": {
                            "type": "string",
                            "description": "Specified shift flags to track employee attendance",
                            "enum": [
                              "none",
                              "sick",
                              "no_show",
                              "late",
                              "called_off",
                              "called_in",
                              "custom"
                            ],
                            "default": "none"
                          },
                          "custom_flag": {
                            "nullable": true,
                            "description": "Custom shift flag assigned to this shift, present when attendance_status is 'custom'",
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer"
                              },
                              "name": {
                                "type": "string"
                              },
                              "color": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "color"
                            ]
                          },
                          "publish_status": {
                            "type": "string",
                            "description": "Current publication status of the shift",
                            "enum": [
                              "draft",
                              "published",
                              "draft_deleted",
                              "published_deleted"
                            ]
                          },
                          "late_minuets": {
                            "type": "integer",
                            "description": "Specify the grace minutes they can clock-in late."
                          },
                          "created": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The created date of the shift in UTC"
                          },
                          "modified": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "The last modified date of the shift in UTC"
                          },
                          "deleted": {
                            "type": "boolean",
                            "description": "Whether or not this shift is deleted.",
                            "default": false
                          },
                          "soft_deleted": {
                            "type": "string",
                            "nullable": true,
                            "description": "Whether or not this shift is soft-deleted."
                          },
                          "station": {
                            "type": "integer",
                            "description": "Station Number"
                          },
                          "station_name": {
                            "type": "string",
                            "nullable": true,
                            "description": "Station name"
                          },
                          "station_id": {
                            "type": "integer",
                            "nullable": true,
                            "description": "Station id"
                          },
                          "breaks": {
                            "type": "array",
                            "nullable": true,
                            "description": "Breaks on the shift",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "integer",
                                  "description": "Break ID"
                                },
                                "shift_id": {
                                  "type": "integer",
                                  "description": "Shift ID"
                                },
                                "start": {
                                  "type": "string",
                                  "description": "Start date time of the break. UTC in ISO8601 format.",
                                  "format": "date-time",
                                  "nullable": true
                                },
                                "end": {
                                  "type": "string",
                                  "description": "End date time of the break. UTC in ISO8601 format.",
                                  "format": "date-time",
                                  "nullable": true
                                },
                                "name": {
                                  "type": "string",
                                  "description": "Break type name"
                                },
                                "length": {
                                  "type": "integer",
                                  "description": "Break type length in minutes"
                                },
                                "break_type_id": {
                                  "type": "integer",
                                  "description": "Break type ID"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "paid",
                                    "unpaid"
                                  ],
                                  "description": "Break type paid or unpaid"
                                }
                              },
                              "required": [
                                "id",
                                "shift_id",
                                "name",
                                "length",
                                "break_type_id"
                              ]
                            }
                          }
                        },
                        "required": [
                          "id",
                          "user_id",
                          "start",
                          "end",
                          "close",
                          "business_decline",
                          "department_id",
                          "location_id",
                          "role_id",
                          "notes",
                          "draft",
                          "notified",
                          "open",
                          "unassigned",
                          "unassigned_skill_level",
                          "open_offer_type",
                          "attendance_status",
                          "publish_status",
                          "late_minutes",
                          "created",
                          "modified",
                          "deleted",
                          "soft_deleted",
                          "station",
                          "station_name",
                          "station_id"
                        ]
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "cursor": {
                          "type": "object",
                          "properties": {
                            "current": {
                              "type": "string",
                              "description": "The current cursor.",
                              "nullable": true
                            },
                            "prev": {
                              "type": "string",
                              "description": "A cursor for navigating to the previous page.",
                              "nullable": true
                            },
                            "next": {
                              "type": "string",
                              "description": "A cursor for navigating to the next page.",
                              "nullable": true
                            },
                            "count": {
                              "type": "integer",
                              "description": "The total items in the current cursor.",
                              "nullable": true
                            }
                          },
                          "required": [
                            "current",
                            "prev",
                            "next",
                            "count"
                          ]
                        }
                      },
                      "required": [
                        "cursor"
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "data",
                    "meta"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                },
                "examples": {
                  "400": {
                    "summary": "An example of a 400 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Bad Request error message",
                      "status": 400,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 400,
                      "param": "param"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "The primary identifier for the problem type (URI reference)."
                    },
                    "title": {
                      "type": "string",
                      "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
                    },
                    "status": {
                      "type": "integer",
                      "description": "The HTTP status code."
                    },
                    "detail": {
                      "type": "string",
                      "description": "A human-readable explanation specific to this occurrence of the problem."
                    },
                    "code": {
                      "type": "integer",
                      "description": "The error code can be used to look up the reason why the request failed."
                    },
                    "param": {
                      "type": "string",
                      "description": "The request parameter that this error is related to."
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ]
                },
                "examples": {
                  "403": {
                    "summary": "An example of a 403 response",
                    "value": {
                      "type": "basic",
                      "title": "This is a Forbidden error message",
                      "status": 403,
                      "detail": "A human-readable explanation specific to this occurrence of the problem.",
                      "code": 403,
                      "param": "param"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          },
          "password": {
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://app.7shifts.com/oauth2/authorize",
            "tokenUrl": "https://app.7shifts.com/oauth2/token",
            "refreshUrl": "https://app.7shifts.com/oauth2/token",
            "scopes": {
              "v1_access": "Required to access APIv1 endpoints."
            }
          }
        }
      },
      "cookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "7session"
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    },
    {
      "cookieAuth": []
    }
  ],
  "tags": [
    {
      "name": "Shifts"
    }
  ]
}
```