---
title: "Add App for enabling push notification"
method: POST
path: "/mobile_push"
tags: ["Push Notification"]
---

# Add App for enabling push notification

`POST /mobile_push`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/mobile_push`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/mobile_push/post.ts> (a function with typed inputs; its response is checked against the schema)

Mobile push messages wake up PortSIP Solutions Soft Phone or other Client Apps
on mobile device so that a call or Instant Message can be accepted, 
reducing battery usage and improving reliability
Android devices receive push notifications from Firebase Cloud Messaging Server;
iOS devices receive push notifications from APNs.

## Request body

- object
  - `app_name` string: Application name.
  - `enabled` boolean: Enabled this notification or not.
  - `mode` 'PRODUCTION' | 'DEVELOPMENT': Connect to Apple/Google development push server or production push server: - `PRODUCTION`: Connect to Apple/Google production push server. - `DEVELOPMENT`: Connect to Apple/Google development push server.
  - `android_service_account` string: The Firebase Cloud Messaging service account JSON file.
  - `ios_certificate` string: Content of this APNs SSL certificate key file.
  - `ios_private_key` string: Content of this APNs SSL private key file.

## Response `201`

Created push

- object
  - `id` string: The unique ID of the resource.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
