---
title: "Create a media-stream configuration"
method: POST
path: "/calls/1/media-stream-configs"
tags: ["channels", "voice", "calls", "media-stream", "media-stream-configuration"]
---

# Create a media-stream configuration

`POST /calls/1/media-stream-configs`

## 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/calls/1/media-stream-configs`
- 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 a media-stream configuration. For more details, see [documentation](https://www.infobip.com/docs/voice-and-video/calls#media-streaming-understanding-calls-api).

## Request body

- 58f57942de1c194257c321b1824e5d3941d9e9f538a9f08ddcb73e6025439f43MediaStreamConfigRequest
  - `type` 'MEDIA_STREAMING' | 'WEBSOCKET_ENDPOINT', required: Media stream configuration type.
  - `name` string, required: Media-stream configuration name.
  - `url` string, required: Destination websocket or load balancer URL.

## Response `201`

Media stream config created.

- 655eaf80f7479f4a18447865649b33bdb754aaa97779726ffb72592cb1ac3ce5MediaStreamConfigResponse
  - `id` string: Media-stream configuration ID.
  - `type` 'MEDIA_STREAMING' | 'WEBSOCKET_ENDPOINT': Media stream configuration type.
  - `name` string: Media-stream configuration name.
  - `url` string: Destination websocket or load balancer URL.

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