# Can I Create Dynamic Stream Targets at Stream Time with WSE?

**URL:** <https://community.wowza.com/t/can-i-create-dynamic-stream-targets-at-stream-time-with-wse/94435>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-engine\
**Created:** [January 10, 2022, 9:15pm UTC](https://community.wowza.com/t/can-i-create-dynamic-stream-targets-at-stream-time-with-wse/94435 "2022-01-10T21:15:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Farrow](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Dan\_Farrow](https://community.wowza.com/u/Dan_Farrow)\
**Post date:** [January 10, 2022, 9:15pm UTC](https://community.wowza.com/t/can-i-create-dynamic-stream-targets-at-stream-time-with-wse/94435/1 "2022-01-10T21:15:02Z")

</div>

How do we decouple the stream target from the configuration so a request can be used to specify its Akamai target destination **dynamically**?

Is the following possible:

1. The Input Stream into Wowza for RTMP sends in parameters with akamai stream target config details (for example **rtmp://server.com:1935/MyApp?StreamTarget=Test&AkamaiStreamId=1234…/MyStream/** )

2. A custom module reads the parameters and dynamically creates an Akamai stream target via the API.

3. When the stream ends, remove the created stream target

If that doesn’t work is there another approach to set up and remove stream targets as streams are created/removed?

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [January 11, 2022, 5:19pm UTC](https://community.wowza.com/t/can-i-create-dynamic-stream-targets-at-stream-time-with-wse/94435/2 "2022-01-11T17:19:01Z")

</div>

I cannot locate the java api at the moment (although I think there should be one). But there is the [rest api route](https://www.wowza.com/docs/stream-targets-query-examples-push-publishing). You can make a custom module that accepts parameters from your own url and then uses a java http client to manage stream targets using the [rest api](https://www.wowza.com/docs/stream-targets-query-examples-push-publishing) .
