---
title: "Create WebRTC push configuration"
method: POST
path: "/webrtc/1/webrtc-push-config"
tags: ["channels", "webrtc-calls", "webrtc", "webrtc-push-configuration"]
---

# Create WebRTC push configuration

`POST /webrtc/1/webrtc-push-config`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/webrtc/1/webrtc-push-config`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`

Create and configure a new WebRTC push configuration.

## Request body

- 4f883ab7a2c1db442b6865996e0e9f08b46ee1927d7a2c7d45b090008604a1ecPushConfigurationRequest
  - `name` string: Optional. Name describing the push configuration.
  - `ios` 4f883ab7a2c1db442b6865996e0e9f08b46ee1927d7a2c7d45b090008604a1ecIosPushNotificationConfig: Optional. Required if android is not set. Configuration used to enable iOS push notifications.
    - `apnsCertificateFileName` string, required: Name of the APNS certificate file used to enable iOS push notifications.
    - `apnsCertificateFileContent` string, required: Base64 encoded content of the P12 APNS certificate file used to enable iOS push notifications.
    - `apnsCertificatePassword` string: Password used for decryption of the APNS certificate.
  - `android` 4f883ab7a2c1db442b6865996e0e9f08b46ee1927d7a2c7d45b090008604a1ecAndroidPushNotificationConfig: Optional. Required if ios is not set. Configuration used to enable Android push notifications.
    - `privateKeyJson` string, required: Private key JSON file used to enable Android push notifications.

## Response `200`

Success

- 4f883ab7a2c1db442b6865996e0e9f08b46ee1927d7a2c7d45b090008604a1ecPushConfigurationResponse
  - `id` string: The identifier to associate the push configuration with.
  - `name` string: Name describing the push configuration.
  - `androidConfigured` boolean: Flag indicating whether the Android push notification config is set.
  - `iosConfigured` boolean: Flag indicating whether the iOS push notification config is set.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
