NexgenStreamerNexgenStreamer
Docs menu

Accounts and credits

Disabling a reseller tree also disables its descendants and their lines.

Lines

get_line

Returns a line

ParameterTypeDescription
idinteger
Required
Record ID
show_columnsstring
Optional
Comma-separated columns to include
hide_columnsstring
Optional
Comma-separated columns to omit
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=get_line&id=1'

create_line

Creates a line

Columns of lines

Top-level fields for lines; no required columns; omitting username or password generates a new value

member_id
Id of the user (admin or reseller) who owns the line; empty values default to the user of the API key
Integer
username
Line username used by players to sign in; must be unique, and an empty value gets a random 10-character name
Text, up to 255 characters
password
Line password used by players, stored as plain text; an empty value gets a random 10-character password
Text, up to 255 characters
last_ip
Last client IP recorded by XUI; stored for XUI compatibility, not used by NexgenStreamer
Text, up to 255 characters
exp_date
Line expiry date; use no_expire to clear it
Stored as a Unix timestamp. Send a date in the API user's time zone (2027-03-01 or 2027-03-01 23:59:59), @ plus a Unix timestamp (@1803945600) or now, today or tomorrow. Send no_expire, or leave exp_date out, for no expiry
admin_enabled
Ban flag set by ban_line and unban_line: 0 means the line is banned and cannot play
0 or 1; defaults to 1 when left out · Default 1
enabled
Enabled flag set by disable_line and enable_line: 0 means the line is disabled and cannot play
0 or 1; defaults to 1 when left out · Default 1
admin_notes
Administrator notes about the line; stored for XUI compatibility, not used by NexgenStreamer
Text
reseller_notes
Reseller notes about the line; stored for XUI compatibility, not used by NexgenStreamer
Text
bouquet
Content groups (bouquets) the line can watch
Send the bouquets_selected parameter as a JSON array string of bouquet ids, e.g. [1,4]; the bouquet parameter itself is ignored. Stored as a JSON array
allowed_outputs
Stream formats the line may use; with none allowed, playback is refused
Send the access_output parameter as an array of output ids: 1 = HLS (m3u8), 2 = MPEG-TS; 3 (RTMP) is dropped. Stored as a JSON array, e.g. [1,2]
max_connections
Maximum number of streams the line can play at the same time; defaults to 1 when left out
Integer · Default 1
is_restreamer
Marks the line as a restreamer; the console flags its connections as restreamer connections
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
is_trial
Marks the line as a trial line
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
is_mag
Set to 1 on the line that belongs to a MAG device; the MAG device actions manage it
Integer · Default 0
is_e2
Set to 1 on the line that belongs to an Enigma2 device; the Enigma2 device actions manage it
Integer · Default 0
is_stalker
Stored for XUI compatibility; not used by NexgenStreamer
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
is_isplock
Locks the line to the network (ASN) it first played from, when ISP lock is turned on in the access rules
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
allowed_ips
IP lock: when it holds valid entries, the line plays only from those addresses
JSON array string of IP addresses or CIDR ranges, e.g. ["203.0.113.10","198.51.100.0/24"]; defaults to [] when left out
allowed_ua
User-agent lock: when not empty, the line plays only from these user agents (exact match, case-insensitive)
JSON array string of user agents, e.g. ["IPTVSmartersPro"]; defaults to [] when left out
created_at
When the line was created, set by the server on create_line
Unix timestamp in seconds, e.g. 1798761600
pair_id
ID of the parent line whose expiry and content groups are copied to this line when the parent is saved
Integer
force_server_id
ID of the forced server for this line; 0 leaves server selection to NexgenStreamer
Integer · Default 0
as_number
ISP number recorded by XUI; the Admin API clears it on save, and NexgenStreamer does not use it
Text, up to 30 characters
isp_desc
ISP name recorded by XUI; the Admin API clears it on save, and NexgenStreamer does not use it
Text
forced_country
Forced country: the gateway rejects a request when it detects a different country
Two-letter ISO country code, e.g. BR; empty for no restriction
bypass_ua
Lets the line skip the empty user-agent rule and the blocked user-agent list
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
play_token
Stored for XUI compatibility; not used by NexgenStreamer
Text
last_expiration_video
Stored for XUI compatibility; not used by NexgenStreamer
Integer
package_id
Id of the package last applied to the line
Integer
access_token
Stored for XUI compatibility; not used by NexgenStreamer
Text, up to 32 characters
contact
Customer contact details; stored for XUI compatibility, not used by NexgenStreamer
Text
last_activity
Last activity recorded by XUI; the Admin API never writes it, and NexgenStreamer does not use it
Integer
last_activity_array
Last activity details recorded by XUI; the Admin API never writes it, and NexgenStreamer does not use it
Text
updated
Time of the last change to the row, set by the database
Date and time, YYYY-MM-DD HH:MM:SS · Default current_timestamp()
danger
Left out of get_line responses; stored for XUI compatibility, not used by NexgenStreamer
Integer
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_line' \
  --data-urlencode 'username=<username>' \
  --data-urlencode 'password=<password>' \
  --data-urlencode 'max_connections=1' \
  --data-urlencode 'exp_date=2027-12-31'

edit_line

Updates a line

ParameterTypeDescription
idinteger
Required
Record ID

Columns of lines

Top-level fields for lines; no required columns; omitting username or password generates a new value

member_id
Id of the user (admin or reseller) who owns the line; empty values default to the user of the API key
Integer
username
Line username used by players to sign in; must be unique, and an empty value gets a random 10-character name
Text, up to 255 characters
password
Line password used by players, stored as plain text; an empty value gets a random 10-character password
Text, up to 255 characters
last_ip
Last client IP recorded by XUI; stored for XUI compatibility, not used by NexgenStreamer
Text, up to 255 characters
exp_date
Line expiry date; use no_expire to clear it
Stored as a Unix timestamp. Send a date in the API user's time zone (2027-03-01 or 2027-03-01 23:59:59), @ plus a Unix timestamp (@1803945600) or now, today or tomorrow. Send no_expire, or leave exp_date out, for no expiry
admin_enabled
Ban flag set by ban_line and unban_line: 0 means the line is banned and cannot play
0 or 1; defaults to 1 when left out · Default 1
enabled
Enabled flag set by disable_line and enable_line: 0 means the line is disabled and cannot play
0 or 1; defaults to 1 when left out · Default 1
admin_notes
Administrator notes about the line; stored for XUI compatibility, not used by NexgenStreamer
Text
reseller_notes
Reseller notes about the line; stored for XUI compatibility, not used by NexgenStreamer
Text
bouquet
Content groups (bouquets) the line can watch
Send the bouquets_selected parameter as a JSON array string of bouquet ids, e.g. [1,4]; the bouquet parameter itself is ignored. Stored as a JSON array
allowed_outputs
Stream formats the line may use; with none allowed, playback is refused
Send the access_output parameter as an array of output ids: 1 = HLS (m3u8), 2 = MPEG-TS; 3 (RTMP) is dropped. Stored as a JSON array, e.g. [1,2]
max_connections
Maximum number of streams the line can play at the same time; defaults to 1 when left out
Integer · Default 1
is_restreamer
Marks the line as a restreamer; the console flags its connections as restreamer connections
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
is_trial
Marks the line as a trial line
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
is_mag
Set to 1 on the line that belongs to a MAG device; the MAG device actions manage it
Integer · Default 0
is_e2
Set to 1 on the line that belongs to an Enigma2 device; the Enigma2 device actions manage it
Integer · Default 0
is_stalker
Stored for XUI compatibility; not used by NexgenStreamer
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
is_isplock
Locks the line to the network (ASN) it first played from, when ISP lock is turned on in the access rules
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
allowed_ips
IP lock: when it holds valid entries, the line plays only from those addresses
JSON array string of IP addresses or CIDR ranges, e.g. ["203.0.113.10","198.51.100.0/24"]; defaults to [] when left out
allowed_ua
User-agent lock: when not empty, the line plays only from these user agents (exact match, case-insensitive)
JSON array string of user agents, e.g. ["IPTVSmartersPro"]; defaults to [] when left out
created_at
When the line was created, set by the server on create_line
Unix timestamp in seconds, e.g. 1798761600
pair_id
ID of the parent line whose expiry and content groups are copied to this line when the parent is saved
Integer
force_server_id
ID of the forced server for this line; 0 leaves server selection to NexgenStreamer
Integer · Default 0
as_number
ISP number recorded by XUI; the Admin API clears it on save, and NexgenStreamer does not use it
Text, up to 30 characters
isp_desc
ISP name recorded by XUI; the Admin API clears it on save, and NexgenStreamer does not use it
Text
forced_country
Forced country: the gateway rejects a request when it detects a different country
Two-letter ISO country code, e.g. BR; empty for no restriction
bypass_ua
Lets the line skip the empty user-agent rule and the blocked user-agent list
Checkbox: sending the parameter with any value saves 1, leaving it out saves 0 · Default 0
play_token
Stored for XUI compatibility; not used by NexgenStreamer
Text
last_expiration_video
Stored for XUI compatibility; not used by NexgenStreamer
Integer
package_id
Id of the package last applied to the line
Integer
access_token
Stored for XUI compatibility; not used by NexgenStreamer
Text, up to 32 characters
contact
Customer contact details; stored for XUI compatibility, not used by NexgenStreamer
Text
last_activity
Last activity recorded by XUI; the Admin API never writes it, and NexgenStreamer does not use it
Integer
last_activity_array
Last activity details recorded by XUI; the Admin API never writes it, and NexgenStreamer does not use it
Text
updated
Time of the last change to the row, set by the database
Date and time, YYYY-MM-DD HH:MM:SS · Default current_timestamp()
danger
Left out of get_line responses; stored for XUI compatibility, not used by NexgenStreamer
Integer
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=edit_line' \
  --data-urlencode 'id=1' \
  --data-urlencode 'username=<username>' \
  --data-urlencode 'password=<password>' \
  --data-urlencode 'max_connections=1' \
  --data-urlencode 'exp_date=2027-12-31'

delete_line

Deletes a line

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=delete_line&id=1'

enable_line

Enables a line

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=enable_line&id=1'

disable_line

Disables a line

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=disable_line&id=1'

ban_line

Bans a line

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=ban_line&id=1'

unban_line

Lifts the ban on a line

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=unban_line&id=1'

Panel users

get_user

Returns a panel user

ParameterTypeDescription
idinteger
Required
Record ID
show_columnsstring
Optional
Comma-separated columns to include
hide_columnsstring
Optional
Comma-separated columns to omit
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=get_user&id=1'

create_user

Creates a panel user

Columns of users

Top-level fields for users; required: member_group_id (group_id); group_id is accepted as an alias

username
Unique username for the operator or reseller; an empty value is replaced with a generated username
Text, up to 50 characters
password
Sign-in password, hashed before storage; leave it empty on edit to keep the current password
Text, up to 255 characters
email
Email address used for account recovery
Text, up to 255 characters
ip
Stored for XUI compatibility; not used by NexgenStreamer
Text, up to 255 characters
date_registered
Registration time set when the API creates the user
Unix seconds, such as 1803945600
last_login
Stored for XUI compatibility; not used by NexgenStreamer
Integer
member_group_id
Required ID of the group the user inherits permissions from; group_id is accepted as an alias
Integer
credits
Credit balance, with changes recorded in the credits ledger
Decimal number · Default 0
notes
Notes saved with the reseller record
Text
status
Whether the user account is active
1 = active, 0 = disabled · Default 1
reseller_dns
Stored for XUI compatibility; not used by NexgenStreamer
Comma-separated domains or an array, such as example.com,example.net
owner_id
ID of the user who owns this reseller account
Integer · Default 0
override_packages
Custom regular package prices for this reseller
Send override_<package ID> with a nonzero credit price, such as override_4=2.5
hue
Stored for XUI compatibility; not used by NexgenStreamer
Text, up to 50 characters
theme
Stored for XUI compatibility; not used by NexgenStreamer
Integer · Default 0
timezone
Time zone used by the console and by the API when parsing dates without a time zone
IANA time zone name, such as America/Sao_Paulo
api_key
Admin API key that acts with the user's permissions
User create and edit actions clear keys that are not exactly 32 hexadecimal digits
use_sidebar_layout
Stored for XUI compatibility; not used by NexgenStreamer
Integer · Default 1
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_user' \
  --data-urlencode 'member_group_id=<member_group_id>'

edit_user

Updates a panel user

ParameterTypeDescription
idinteger
Required
Record ID

Columns of users

Top-level fields for users; required: member_group_id (group_id); group_id is accepted as an alias

username
Unique username for the operator or reseller; an empty value is replaced with a generated username
Text, up to 50 characters
password
Sign-in password, hashed before storage; leave it empty on edit to keep the current password
Text, up to 255 characters
email
Email address used for account recovery
Text, up to 255 characters
ip
Stored for XUI compatibility; not used by NexgenStreamer
Text, up to 255 characters
date_registered
Registration time set when the API creates the user
Unix seconds, such as 1803945600
last_login
Stored for XUI compatibility; not used by NexgenStreamer
Integer
member_group_id
Required ID of the group the user inherits permissions from; group_id is accepted as an alias
Integer
credits
Credit balance, with changes recorded in the credits ledger
Decimal number · Default 0
notes
Notes saved with the reseller record
Text
status
Whether the user account is active
1 = active, 0 = disabled · Default 1
reseller_dns
Stored for XUI compatibility; not used by NexgenStreamer
Comma-separated domains or an array, such as example.com,example.net
owner_id
ID of the user who owns this reseller account
Integer · Default 0
override_packages
Custom regular package prices for this reseller
Send override_<package ID> with a nonzero credit price, such as override_4=2.5
hue
Stored for XUI compatibility; not used by NexgenStreamer
Text, up to 50 characters
theme
Stored for XUI compatibility; not used by NexgenStreamer
Integer · Default 0
timezone
Time zone used by the console and by the API when parsing dates without a time zone
IANA time zone name, such as America/Sao_Paulo
api_key
Admin API key that acts with the user's permissions
User create and edit actions clear keys that are not exactly 32 hexadecimal digits
use_sidebar_layout
Stored for XUI compatibility; not used by NexgenStreamer
Integer · Default 1
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=edit_user' \
  --data-urlencode 'id=1' \
  --data-urlencode 'member_group_id=<member_group_id>'

delete_user

Deletes a panel user

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=delete_user&id=1'

enable_user

Enables a panel user

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=enable_user&id=1'

disable_user

Disables a panel user

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=disable_user&id=1'

user_info

Returns the authenticated user and group permissions

ParameterTypeDescription
show_columnsstring
Optional
Comma-separated columns to include
hide_columnsstring
Optional
Comma-separated columns to omit
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=user_info'

Credits

adjust_credits

Adjusts a user’s credit balance without letting it go below zero

ParameterTypeDescription
idinteger
Required
Record ID
creditsstring
Required
Signed decimal adjustment
reasonstring
Optional
Reason recorded in the credit log
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=adjust_credits&id=1&credits=<credits>'

Reseller trees

enable_user_tree

Enables a user, its descendants and their lines

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=enable_user_tree&id=1'

disable_user_tree

Disables a user, its descendants and their lines

ParameterTypeDescription
idinteger
Required
Record ID
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=disable_user_tree&id=1'