<!-- Generated by scripts/build-docs.js. Edit docs/swagger.yaml or docs/guides/, then run `npm run docs:build`. -->

# Get one work location

`GET https://{apiId}.execute-api.us-west-1.amazonaws.com/{stage}/v1/locations/{id}`

Module: Locations · operationId: `getLocation` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequipay.com/#/api/get-location

Returns a single work location by id, scoped to the authenticated company. Soft-deleted locations are not returned.

Requires the `locations:read` scope.

## Path parameters

- `id` (integer (int64), **required**): The location's numeric id. Minimum: 1. Example: `3`.

## Example request

```bash
curl -X GET "https://{apiId}.execute-api.us-west-1.amazonaws.com/{stage}/v1/locations/3" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

## Responses

### 200: The work location.

- `status` (integer) Example: `200`.
- `message` (string) Example: `success`.
- `data` (object): A company work location. The internal payroll-provider mapping Core holds on this table (`worklio_location_id`) is never returned.
  - `id` (integer (int64)) Example: `3`.
  - `name` (string) Example: `Austin Warehouse`.
  - `address_line_1` (string, nullable) Example: `1 Main St`.
  - `address_line_2` (string, nullable) Example: `Suite 200`.
  - `address_city` (string, nullable) Example: `Austin`.
  - `address_state` (string, nullable) Example: `TX`.
  - `address_zip` (string, nullable) Example: `78701`.
  - `created_at` (string (date-time), nullable) Example: `2024-01-20T12:00:00.000Z`.
  - `updated_at` (string (date-time), nullable) Example: `2024-06-01T09:30:00.000Z`.

### 400: The id is not a positive integer.

```json
{
  "status": 400,
  "message": "invalid location id",
  "data": null
}
```

### 401: Missing, invalid, expired, or revoked token (from the authorizer).

### 403: The token lacks the required scope.

```json
{
  "error": "insufficient_scope",
  "required": "users:read"
}
```

### 404: No such location for this company.

```json
{
  "status": 404,
  "message": "not found",
  "data": null
}
```

### 500: An infrastructure or data error. The endpoint fails closed — a 500, never a partial or empty-looking result.

```json
{
  "status": 500,
  "message": "internal error",
  "data": null
}
```
