A comprehensive RESTful API is available and accessible by Administrators, Resellers and Customers. It is documented by POSTMAN at the link below.
Authentication
All requests to the API must be authenticated with either:
- Header including Authorization: Bearer {api-key}
- URL parameter of “auth”, for example https://yourdomain.com:2020/api/0/media-service/list?auth={api-key}
Examples
List Media Services
curl --location -g -H "Authorization: Bearer {api-key}" --request GET 'https://yourdomain.com:2020/api/0/media-service/list'
Create Service
curl --location -g -H "Authorization: Bearer {api-key}" --request POST 'https://yourdomain.com:2020/api/-/media-service/store' \
--data-urlencode 'userid=1'
\ --data-urlencode 'plugin=icecast'
\ --data-urlencode 'unique_id=My New Service'
\ --data-urlencode 'maxuser=500'
\ --data-urlencode 'bitrate=256'
\ --data-urlencode 'bandwidth=10240'
\ --data-urlencode 'quota=1024'
Connect Stream Target
curl --location -H "Authorization: Bearer {api-key}" --request PATCH 'https://yourdomain.com:2020/api/20/stream-targets/connect/1'