# Create SRT StreamTarget via REST API

**URL:** https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498
**Category:** Wowza Streaming Engine
**Created:** [December 10, 2020, 3:12pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498 "2020-12-10T15:12:36Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Tom\_Weber](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@Tom\_Weber](https://community.wowza.com/u/Tom_Weber)
#### Post date: [December 10, 2020, 3:12pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/1 "2020-12-10T15:12:36Z")

</div>

Hi everyone,  
I would like to create a SRT streamTarget using Wowza’s REST API.  
I send a request to the controller: POST /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/pushpublish/mapentries .  
The following content is used as Request Body:

{  
“srtSendBufferSizeUDP”: 65536,  
“srtFlightFlagSize”: 25600,  
“profile”: “srt”,  
“srtSendBufferSize”: 12058624,  
“srtMaximumSegmentSize”: 1500,  
“sourceStreamName”: “PGM\_CH1.stream”,  
“serverName”: “_defaultServer_”,  
“enabled”: false,  
“srtTimesToPrintStats”: 0,  
“debugLog”: false,  
“srtInputBandwidth”: 0,  
“srtKeyAnnounce”: 4096,  
“srtMaximumBandwidth”: -1,  
“sendSSL”: false,  
“srtOverheadBandwidth”: 25,  
“entryName”: “SRT\_Target\_API”,  
“host”: “192.168.77.74”,  
“port”: 5556,  
“srtTimestampBasedDeliveryMode”: true,  
“srtLatency”: 400,  
“srtKeyRefreshRate”: 16777216,  
“srtStreamId”: “”,  
“srtPeerIdleTimeout”: 5000  
}

As a response I get the following from Wowza:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/2b597aa574748c21d70130aed6817e612117aad0.png)

When I view all StreamTargets of the application in Wowza Streaming Engine Manager, I don’t see the StreamTarget.

If I display all StreamTargets of the application via the controller

GET /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/pushpublish/mapentries  
then the StreamTarget is displayed.

How must the StreamTarget be created to see it in the Stream Engine Manager?

I use version 4.8.5 of the Wowza streaming engine

 ![image](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/abfe702cb75b56b180b195cf9f59ed0c15873e4b.png)

Best Regards

---

<div class="post-metadata">

### Author: ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)
#### Post date: [December 11, 2020, 6:43pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/2 "2020-12-11T18:43:36Z")

</div>

Hi @Tom_Weber after a quick peek from the engineers, they asked if you are aware of the following:

- Wowza Streaming Engine supports SRT version 1.4 and earlier, and can only be used to ingest and send MPEG-TS packaged SRT content.

- **Important:** SRT stream targets are only supported in Linux and Windows installations of Wowza Streaming Engine.

- If using the Wowza Streaming Engine 4.8.0 or later installer to install a new instance of Wowza Streaming Engine on Windows, you may need to install additional dependencies in order to ingest SRT MediaCaster streams or use the generic SRT stream targets destination to publish an SRT stream.

To address this, install the latest version of the [Microsoft Visual C++ Redistributable for Visual Studio](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) appropriate to your operating system. This is not an issue for pre-existing installations of Wowza Streaming Engine that are updated to Wowza Streaming Engine 4.8.0 or later.

Also, depending on the target’s requirements, did you need SSL to be true and not false?

If that does not apply to you, they said nothing jumps out as incorrect in your code you shared but they would need a support ticket to investigate further. They can only review configs and logs through a ticket.

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)

---

<div class="post-metadata">

### Author: ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)
#### Post date: [December 11, 2020, 6:49pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/3 "2020-12-11T18:49:16Z")

</div>

Tech support also suggest before submitting a ticket that you push an SRT stream to another application on the same system and this way we can verify Wowza’s ability to push SRT correctly.

[https://www.wowza.com/docs/how-to-use-srt-to-distribute-live-streams#streamtarget](https://www.wowza.com/docs/how-to-use-srt-to-distribute-live-streams#streamtarget)

---

<div class="post-metadata">

### Author: ![Tom\_Weber](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@Tom\_Weber](https://community.wowza.com/u/Tom_Weber)
#### Post date: [December 16, 2020, 11:37am UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/4 "2020-12-16T11:37:04Z")

</div>

Hi @video_streaming ,  
I have checked the points described. Streaming with the SRT stream target works without problems. It doesn’t matter if it is created via Wowza Streaming Engine Manager or via REST API.  
The problem that the StreamTarget is not displayed in the Wowza streaming Engine Manager when the StreamTarget is created via the REST Api still exists.  
I will create a ticket for this.  
Thanks for the quick reply

Best Regards

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [December 16, 2020, 4:57pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/5 "2020-12-16T16:57:24Z")

</div>

Hmmm…that’s interesting. I’ll follow up on that with the engineers and watch for your ticket.

---

<div class="post-metadata">

### Author: ![sironjuh](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sironjuh](https://community.wowza.com/u/sironjuh)
#### Post date: [June 13, 2021, 7:49am UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/6 "2021-06-13T07:49:07Z")

</div>

Hey @Tom_Weber  
Did you get this issue resolved? We’re seeing a similar outcome when creating SRT stream target through REST API. Stream target works, but it is not visible on the UI.

---

<div class="post-metadata">

### Author: ![sironjuh](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sironjuh](https://community.wowza.com/u/sironjuh)
#### Post date: [June 13, 2021, 7:54am UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/7 "2021-06-13T07:54:42Z")

</div>

Additional info for Wowza Staff @Rose_Power-Wowza_Com

we’re using the wowzamedia/wowza-streaming-engine-linux:4.8.12 docker image.

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [June 14, 2021, 5:55pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/8 "2021-06-14T17:55:33Z")

</div>

Let me see what I can find out for you. Be back soon…

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [June 14, 2021, 6:03pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/9 "2021-06-14T18:03:22Z")

</div>

Digging further into this, you’ll need to have **extraOptions** object and **destinationName** param set in order to see a SRT stream target entry in Wowza Streaming Engine Manager.

Sample call that needs to be made:

```
curl -X POST \
-H 'Accept:application/json; charset=utf-8' \
-H 'Content-type:application/json; charset=utf-8' \
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/rebro/pushpublish/mapentries/myTestSRT \
-d'
{
"sourceStreamName": "myStream", 
"entryName": "myTestSRT", 
"profile": "srt", 
"host": "192.xxx.14.10", 
"port": "12340", 
"srtRecoveryBuffer": "400", 
"srtKeyLength":"128",
  "extraOptions": {
    "destinationName": "srt"
  } 
}'
```

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [June 14, 2021, 6:26pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/10 "2021-06-14T18:26:48Z")

</div>

I checked a few other support tickets as well and this indeed solved the problem of it not showing up in the Engine Manager:

“extraOptions”: {  
“destinationName”: “srt”  
}

If that does NOT resolve it for you, please submit a ticket @sironjuh and we’ll take a closer look at your Docker configuration and run some tests. Thanks.

---

<div class="post-metadata">

### Author: ![sironjuh](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sironjuh](https://community.wowza.com/u/sironjuh)
#### Post date: [June 14, 2021, 7:06pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/11 "2021-06-14T19:06:22Z")

</div>

> [@Rose\_Power-Wowza\_Com](#):
>
> ```auto
> "extraOptions": {
> "destinationName": "srt"
> } 
> 
> ```

Thanks @Rose_Power-Wowza_Com, this did indeed fix the issue.

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [June 14, 2021, 10:41pm UTC](https://community.wowza.com/t/create-srt-streamtarget-via-rest-api/92498/12 "2021-06-14T22:41:27Z")

</div>

So happy to hear that! Thanks for telling me.
