---
title: "Subscribe to Push Notifications"
method: POST
path: "/locations/{locationId}/subscribe"
tags: ["PushNotifications"]
---

# Subscribe to Push Notifications

`POST /locations/{locationId}/subscribe`

## Request

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

Subscribe Push Notification.
            <br /><br />Available for subscriber usage.

## Path parameters

- `locationId` integer, required

## Request body

- ServiceChannelServicesMessagingNotificationsPushNotificationSubscriptionRequest: Subscribe Push Notification Request model
  - `DeviceToken` string, required: Required Device Token.
  - `DeviceType` 'Android' | 'iOS' | 'Amazon', required: Device type: Android, iOS, Amazon
  - `NotificationType` 'CheckIn' | 'CheckOut' | 'BadgeScanRequired', required: Notification type: Check In , ....
  - `Application` 'ScMobile', required: Application : ScMobile, FTM, ...
  - `NotificationRules` ServiceChannelServicesMessagingNotificationsNotificationRulesRequest: Rules for Notification Request model
    - `Rules` ServiceChannelServicesMessagingNotificationsRule[]
      - `Field` string
      - `Value` string

## Response `200`

OK

- SystemObject

---

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