---
title: "List all Locations"
method: GET
path: "/location.json"
tags: ["Locations"]
---

# List all Locations

`GET /location.json`

#### Filtering
This endpoint supports result filtering. For more information on how to filter this request, [go here](/docs/filtering).
			
			
#### OAuth Scope
This endpoint requires the following OAuth scope **read_locations**.

## Response `200`

An array of Locations

- Location[]
  - `name` string, required — Location's name
  - `line1` string — First line of the location's address. Contains the street number and street name.
  - `line2` string — Second line of the location's address. Used for additional address information such as building/suite numbers or street details.
  - `line3` string — Third line of the location's address. Used for additional address details when line1 and line2 are not sufficient.
  - `city` string — Email Address
  - `country` string — Email Address
  - `post_code` string — Email Address
  - `phone_1` string — Primary contact phone number for the location. Can include formatting characters.
  - `state` string — Address State
  - `lng` number, float — Longitude coordinate of the location in decimal degrees format. Used for geolocation and distance calculations. Expected range is between -180 and 180 degrees.
  - `lat` number, float — Latitude coordinate of the location in decimal degrees format. Used for geolocation and distance calculations. Expected range is between -90 and 90 degrees.
  - `uuid` string, uuid — Unique identifier for this record
  - `active` 0 | 1 — Record active/deleted flag. Valid values are [0,1]
  - `edit_date` string — Timestamp at which record was last modified

## Other responses

- `400` — Bad Request - The request is malformed or contains invalid parameters
- `401` — Unauthorized - Authentication credentials are missing or invalid
- `403` — Forbidden - You don't have permission to access this resource
- `429` — Too Many Requests - You have exceeded the rate limit
- `500` — Internal Server Error - An unexpected error occurred on the server

---

[API](https://skmtc.net/servicem8/apis/servicem8-api.md) · [All operations](https://skmtc.net/servicem8/apis/servicem8-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/servicem8/servicem8-api/versions/53ede60e3653/schema)
