- Joined
- Jul 24, 2024
- Messages
- 293
- Thread Author
- #1
XUI.ONE Admin API - Placeholder
This is a placeholder post for Admin API information.
It is available in the latest releases and can be enabled by adding an Admin API access code for the Admin user group you want it to apply to. From there you can login as an admin and go to Edit Profile to generate an API key.
You can then access the API via:
http: https: https://yoursite.com:9000/accesscode/?api_key=#APIKEY#
For Example:
https://[domain]:[port]/[accesscode]/?api_key=[api_key]&actoion=[api_command]
As a developer, use this as your API endpoint and set the "action" parameter to one of the following API commands:
GET INFO
mysql_queryuser_infoget_linesget_magsget_enigmasget_usersget_streamsget_channelsget_stationsget_moviesget_series_listget_episodes
LOGS & EVENT API
activity_logslive_connectionscredit_logsclient_logsuser_logsstream_errorswatch_outputsystem_logslogin_logsrestream_logsmag_events
LINE API
get_linecreate_lineedit_linedelete_linedisable_lineenable_lineunban_lineban_line
USER API
get_usercreate_useredit_userdelete_userdisable_userenable_user
MAG API
get_magcreate_magedit_magdelete_magdisable_magenable_magunban_magban_magconvert_mag
ENIGMA API
get_enigmacreate_enigmaedit_enigmadelete_enigmadisable_enigmaenable_enigmaunban_enigmaban_enigmaconvert_enigma
BOUQUETE API
get_bouquetsget_bouquetcreate_bouquetedit_bouquetdelete_bouquet
ACCESS CODE API
get_access_codesget_access_codecreate_access_codeedit_access_codedelete_access_code
HMAC API
get_hmacsget_hmaccreate_hmacedit_hmacdelete_hmac
EPG API
get_epgsget_epgcreate_epgedit_epgdelete_epgreload_epg
GROUPS API
get_groupsget_groupcreate_groupedit_groupdelete_group
PACKAGES API
get_packagesget_packagecreate_packageedit_packagedelete_package
TRANSCODING PROFILE API
get_transcode_profilesget_transcode_profilecreate_transcode_profileedit_transcode_profiledelete_transcode_profile
RTMP API
get_rtmp_ipsget_rtmp_ipcreate_rtmp_ipedit_rtmp_ipdelete_rtmp_ip
CATEGORIES API
get_categoriesget_categorycreate_categoryedit_categorydelete_category
SUB RESELLER API
get_subresellersget_subresellercreate_subreselleredit_subresellerdelete_subreseller
WATCH FOLDERS API
get_watch_foldersget_watch_foldercreate_watch_folderedit_watch_folderdelete_watch_folderreload_watch_folder
BLOCKED ISP & IP API
get_blocked_ispsadd_blocked_ispdelete_blocked_ispget_blocked_uasadd_blocked_uadelete_blocked_uaget_blocked_ipsadd_blocked_ipdelete_blocked_ipflush_blocked_ips
STREAMS API
get_streamcreate_streamedit_streamstart_streamstop_streamdelete_stream
CHANNEL API
get_channelcreate_channeledit_channelstart_channelstop_channeldelete_channel
STATION API
get_stationcreate_stationedit_stationstart_stationstop_stationdelete_station
MOVIE API
get_moviecreate_movieedit_moviestart_moviestop_moviedelete_movie
SERIES API
get_seriescreate_seriesedit_seriesdelete_series
EPISONE API
get_episodecreate_episodedelete_episodeedit_episodestart_episodestop_episode
SERVERS API
get_serversget_serverinstall_serverdelete_serveredit_serverinstall_proxyedit_proxy
SETTINGS, STATS AND OTHER API
get_settingsedit_settingsget_server_statsget_fpm_statusget_rtmp_statsget_free_spaceget_pidsget_certificate_inforeload_nginxclear_tempclear_streamsupdate_blacklistget_directorykill_pidkill_connectionreload_cache
Upcoming API information will help identify what each function does, and what parameters can be submitted.
For now, if you want to poke around I suggest using the Admin Interface with Developer Tools enabled and log any traffic to post.php. The parameters sent there will be the same parameters you can send to the API function it relates to.
For example if you go to Streams and add a stream, you can log post.php and submit the same request to the create_stream function to replicate it.
To edit a stream, pass the id with it too.
Some of the functions are server specific, so send server_id with them, for example:
get_server_stats, get_fpm_status, get_rtmp_stats, get_free_space, get_pids, get_certificate_info, reload_nginx, clear_temp, clear_streams, update_blacklist, get_directory
Line Example - Editing line #4 to change password to helloworld and select bouquets 1 and 2:
action=edit_line&id=4&username=test&password=helloworld&bouquets_selected[]=1&bouquets_selected[]=2
More info soon, post any questions below and I'll answer them for you. Included an extract from the API so you can kind of see what's going on.
This is a placeholder post for Admin API information.
It is available in the latest releases and can be enabled by adding an Admin API access code for the Admin user group you want it to apply to. From there you can login as an admin and go to Edit Profile to generate an API key.
You can then access the API via:
http: https: https://yoursite.com:9000/accesscode/?api_key=#APIKEY#
For Example:
https://[domain]:[port]/[accesscode]/?api_key=[api_key]&actoion=[api_command]
As a developer, use this as your API endpoint and set the "action" parameter to one of the following API commands:
GET INFO
mysql_queryuser_infoget_linesget_magsget_enigmasget_usersget_streamsget_channelsget_stationsget_moviesget_series_listget_episodes
LOGS & EVENT API
activity_logslive_connectionscredit_logsclient_logsuser_logsstream_errorswatch_outputsystem_logslogin_logsrestream_logsmag_events
LINE API
get_linecreate_lineedit_linedelete_linedisable_lineenable_lineunban_lineban_line
USER API
get_usercreate_useredit_userdelete_userdisable_userenable_user
MAG API
get_magcreate_magedit_magdelete_magdisable_magenable_magunban_magban_magconvert_mag
ENIGMA API
get_enigmacreate_enigmaedit_enigmadelete_enigmadisable_enigmaenable_enigmaunban_enigmaban_enigmaconvert_enigma
BOUQUETE API
get_bouquetsget_bouquetcreate_bouquetedit_bouquetdelete_bouquet
ACCESS CODE API
get_access_codesget_access_codecreate_access_codeedit_access_codedelete_access_code
HMAC API
get_hmacsget_hmaccreate_hmacedit_hmacdelete_hmac
EPG API
get_epgsget_epgcreate_epgedit_epgdelete_epgreload_epg
GROUPS API
get_groupsget_groupcreate_groupedit_groupdelete_group
PACKAGES API
get_packagesget_packagecreate_packageedit_packagedelete_package
TRANSCODING PROFILE API
get_transcode_profilesget_transcode_profilecreate_transcode_profileedit_transcode_profiledelete_transcode_profile
RTMP API
get_rtmp_ipsget_rtmp_ipcreate_rtmp_ipedit_rtmp_ipdelete_rtmp_ip
CATEGORIES API
get_categoriesget_categorycreate_categoryedit_categorydelete_category
SUB RESELLER API
get_subresellersget_subresellercreate_subreselleredit_subresellerdelete_subreseller
WATCH FOLDERS API
get_watch_foldersget_watch_foldercreate_watch_folderedit_watch_folderdelete_watch_folderreload_watch_folder
BLOCKED ISP & IP API
get_blocked_ispsadd_blocked_ispdelete_blocked_ispget_blocked_uasadd_blocked_uadelete_blocked_uaget_blocked_ipsadd_blocked_ipdelete_blocked_ipflush_blocked_ips
STREAMS API
get_streamcreate_streamedit_streamstart_streamstop_streamdelete_stream
CHANNEL API
get_channelcreate_channeledit_channelstart_channelstop_channeldelete_channel
STATION API
get_stationcreate_stationedit_stationstart_stationstop_stationdelete_station
MOVIE API
get_moviecreate_movieedit_moviestart_moviestop_moviedelete_movie
SERIES API
get_seriescreate_seriesedit_seriesdelete_series
EPISONE API
get_episodecreate_episodedelete_episodeedit_episodestart_episodestop_episode
SERVERS API
get_serversget_serverinstall_serverdelete_serveredit_serverinstall_proxyedit_proxy
SETTINGS, STATS AND OTHER API
get_settingsedit_settingsget_server_statsget_fpm_statusget_rtmp_statsget_free_spaceget_pidsget_certificate_inforeload_nginxclear_tempclear_streamsupdate_blacklistget_directorykill_pidkill_connectionreload_cache
Upcoming API information will help identify what each function does, and what parameters can be submitted.
For now, if you want to poke around I suggest using the Admin Interface with Developer Tools enabled and log any traffic to post.php. The parameters sent there will be the same parameters you can send to the API function it relates to.
For example if you go to Streams and add a stream, you can log post.php and submit the same request to the create_stream function to replicate it.
To edit a stream, pass the id with it too.
Some of the functions are server specific, so send server_id with them, for example:
get_server_stats, get_fpm_status, get_rtmp_stats, get_free_space, get_pids, get_certificate_info, reload_nginx, clear_temp, clear_streams, update_blacklist, get_directory
Line Example - Editing line #4 to change password to helloworld and select bouquets 1 and 2:
action=edit_line&id=4&username=test&password=helloworld&bouquets_selected[]=1&bouquets_selected[]=2
More info soon, post any questions below and I'll answer them for you. Included an extract from the API so you can kind of see what's going on.