How to get a website to create a new teamspeak channel

Hi all,

What I’m looking for is when I submit something on my website, it automatically creates a new channel for that selection.

Is there anything like this at the moment?

Thanks in advance,

Shane.

If i understand correctly what you are looking for then maybe something like TS3 Manager:
https://www.ts3.app/

Sure, using the new WebQuery interface.

Send a request to your server for example with PHP via. cURL:

http://127.0.0.1:10080/1/channelcreate?channel_name=My+new+channel+name

You need to add addtional parameters of cause to specify where to place the (sub)channel.
As well as other things like it’s voice quality etc.

serveradmin> help channelcreate
Usage: channelcreate channel_name={channelName} [channel_properties...]

Permissions:
  i_channel_min_depth
  i_channel_max_depth
  b_channel_create_child
  b_channel_create_permanent
  b_channel_create_semi_permanent
  b_channel_create_temporary
  b_channel_create_with_topic
  b_channel_create_with_description
  b_channel_create_with_password
  b_channel_create_with_banner
  i_channel_create_modify_with_codec_maxquality
  i_channel_create_modify_with_codec_latency_factor_min
  b_channel_create_with_maxclients
  b_channel_create_with_maxfamilyclients
  b_channel_create_with_sortorder
  b_channel_create_with_default
  b_channel_create_with_needed_talk_power

Description:
  Creates a new channel using the given properties and displays its ID. Note
  that this command accepts multiple properties which means that you're able to
  specifiy all settings of the new channel at once.
  For detailed information, see Channel Properties.

Example:
  channelcreate channel_name=My\sChannel channel_topic=My\sTopic
4 Likes

Thanks for this!

Can this also be used to move clients into another channel using web query?

Of course you can.
You can use most of the ServerQuery commands in the WebQuery interface.
Just take a look at the documentation - all commands are listed in there.

serveradmin> help clientmove
Usage: clientmove clid={clientID}... cid={channelID} [cpw={channelPassword}]

Example:
  clientmove clid=5|clid=6 cid=3

Your request URL should look like:

http://127.0.0.1:10080/1/clientmove?clid=client_id&cid=channel_id

To get the client list and IDs you will probably have to use the clientlist command.
Getting the channel ID once is enough of course as long as you don’t change the channel.
It doesn’t require any parameters but you need to have a server selected.

http://127.0.0.1:10080/1
                       ^ --- Server ID
       ^ ------------------- Server IP

The WebQuery interface is a fast and easy way to “spam” the server with commands and receiving the results to your requests.

It pretty much worth getting to know how to work with it.

2 Likes
twitch instagram twitter facebook