---
title: "Retrieve provider's locations (include retired)"
method: GET
path: "/providers/current/locationsWithRetired"
tags: ["Locations"]
---

# Retrieve provider's locations (include retired)

`GET /providers/current/locationsWithRetired`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/providers/current/locationsWithRetired`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/providers/current/locationsWithRetired/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of all Locations.

## Response `200`

The requested locations are in the response.

- ServiceChannelServicesMessagingLocationProviderLocation[]
  - `LocationId` integer
  - `IsAllTradesRetired` boolean

## Other responses

- `401`: The request is not authorized. <br/>Error codes: 504 - API call rejected by security permissions 100 — User has no permissions to perform this action

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
