---
updatedAt: 2025-06-05T01:13:37.000Z
agentTools:
  projectIndex: https://developers.7shifts.com/v2.2023.0501/llms.txt
---

# Retrieve Shift

**[Minimum Plan Required](https://developers.7shifts.com/v2.2023.0501/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": {}
    },
    "object": "shifts"
}
```

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "7shifts API",
    "contact": {
      "email": "api-support@7shifts.com"
    },
    "version": "2023-05-01"
  },
  "servers": [
    {
      "url": "https://api.7shifts.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/v2/company/{company_id}/shifts/{shift_id}": {
      "get": {
        "tags": [
          "Shifts"
        ],
        "summary": "Retrieve Shift",
        "operationId": "retrieveShift",
        "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"
            }
          },
          {
            "name": "shift_id",
            "in": "path",
            "description": "Shift ID",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "include_deleted",
            "in": "query",
            "description": "Return the shift even if its deleted",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "shift"
                      ]
                    },
                    "data": {
                      "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"
                          ],
                          "default": "none"
                        },
                        "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"
                      ]
                    }
                  },
                  "required": [
                    "object",
                    "data"
                  ]
                }
              }
            }
          },
          "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"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "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"
                  ]
                }
              }
            }
          },
          "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"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "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"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error",
            "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"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "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"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```