---
title: "Get a Location’s Attachments"
method: GET
path: "/locations/{storeId}/attachments"
tags: ["Locations"]
---

# Get a Location’s Attachments

`GET /locations/{storeId}/attachments`

## Request

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

Returns a list of attachments.

## Path parameters

- `storeId` string, 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`: Bad Request - the request could not be understood or was missing required parameters
- `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`: Invalid StoreID <br/>Error codes: 606 — Invalid StoreID.

---

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