---
title: "Get Location Attachments"
method: GET
path: "/locations/{locationId}/locationAttachments"
tags: ["Locations"]
---

# Get Location Attachments

`GET /locations/{locationId}/locationAttachments`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/locations/{locationId}/locationAttachments`
- 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/locations/:locationId/locationAttachments/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of attachments.

## Path parameters

- `locationId` integer, required

## Response `200`

The requested attachments are in the response.

- ServiceChannelServicesMessagingLocationLocationAttachment[]
  - `Id` integer: Numeric identifier of the location attachment.
  - `LocationId` integer: Unique ID of the location to which the attachment is added.
  - `StoreId` string: StoreId
  - `FileName` string: Filename of the evacuation plan map attachment.
  - `FilePath` string: File’s position in the subscriber’s location.
  - `Description` string: Description of the evacuation plan map attachment added by the user.
  - `UploadDate` string, date-time: Date and time when the attachment was added.
  - `UserId` integer: ID of the user who added the attachment to the location.
  - `UserName` string: Username of the user who added the attachment.
  - `AttachmentType` 'EvacuationPlan': Numeric identifier of the attachment added. Possible values: `1` - EvacuationPlan.
  - `GetFileLink` string

## Other responses

- `400`: Invalid LocationID <br/>Error codes: 601— Invalid Location Id.
- `401`: Indicates that the requested resource requires authentication.
- `403`: User is not assigned to Location <br/>Error codes: 804 — User is not assigned to Location.
- `404`: Location not found <br/>Error codes: 668— Location not found.

---

[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)
