NexgenStreamerNexgenStreamer
Docs menu

Access

Groups define permissions and package access. Access codes and HMAC keys have separate actions.

Groups

get_group

Returns a user group

ParameterTypeDescription
idinteger
Optional
Group ID, or use group_id
group_idinteger
Optional
Alias for 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_group'

get_groups

Lists groups

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=get_groups'

create_group

Creates a user group

Columns of users_groups

Top-level fields for users_groups; required: group_name; send permissions_selected and packages_selected to retain those assignments

group_id
Group ID assigned by the database; use id to target an edit
Integer
group_name
Required name of the group
Text
is_admin
Identifies an administrator group
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_reseller
Identifies a reseller group
Send the parameter to save 1, even with value 0; omit it to save 0
total_allowed_gen_trials
Reseller trial creation limit within the configured window
Integer · Default 0
total_allowed_gen_in
Time window for the reseller trial limit
hours or days, such as days
delete_users
Legacy delete permission exposed in the console group policy
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
allowed_pages
Page permissions granted to the group
Send permissions_selected as JSON text with permission names, such as ["streams"]
can_delete
Whether the Admin API may delete this group or change its administrator and reseller flags
0 or 1 · Default 1
create_sub_resellers
Lets group members create subresellers
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
create_sub_resellers_price
Credit cost of creating a subreseller
Decimal number · Default 0
reseller_client_connection_logs
Stored for XUI compatibility; not used by NexgenStreamer
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
can_view_vod
Legacy VOD viewing permission exposed in the console group policy
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
allow_download
Legacy download permission exposed in the console group policy
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
minimum_trial_credits
Minimum credit balance required to create a trial
Integer · Default 1
allow_restrictions
Lets resellers change the forced country on a line, subject to its package restrictions
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
allow_change_username
Lets resellers change line usernames
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
allow_change_password
Lets resellers change line passwords
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
minimum_username_length
Legacy minimum username length saved in the console group policy
Integer · Default 8
minimum_password_length
Legacy minimum password length saved in the console group policy
Integer · Default 8
allow_change_bouquets
Lets resellers change the content groups assigned to a line, subject to its package restrictions
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
notice_html
Group description; the compatibility API escapes HTML characters when saving it
Text
subresellers
Subreseller group selection stored for XUI compatibility
Send groups_selected as JSON text containing group IDs, such as [1,4]
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_group' \
  --data-urlencode 'group_name=<group_name>'

edit_group

Updates a user group

ParameterTypeDescription
idinteger
Required
Record ID

Columns of users_groups

Top-level fields for users_groups; required: group_name; send permissions_selected and packages_selected to retain those assignments

group_id
Group ID assigned by the database; use id to target an edit
Integer
group_name
Required name of the group
Text
is_admin
Identifies an administrator group
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_reseller
Identifies a reseller group
Send the parameter to save 1, even with value 0; omit it to save 0
total_allowed_gen_trials
Reseller trial creation limit within the configured window
Integer · Default 0
total_allowed_gen_in
Time window for the reseller trial limit
hours or days, such as days
delete_users
Legacy delete permission exposed in the console group policy
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
allowed_pages
Page permissions granted to the group
Send permissions_selected as JSON text with permission names, such as ["streams"]
can_delete
Whether the Admin API may delete this group or change its administrator and reseller flags
0 or 1 · Default 1
create_sub_resellers
Lets group members create subresellers
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
create_sub_resellers_price
Credit cost of creating a subreseller
Decimal number · Default 0
reseller_client_connection_logs
Stored for XUI compatibility; not used by NexgenStreamer
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
can_view_vod
Legacy VOD viewing permission exposed in the console group policy
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
allow_download
Legacy download permission exposed in the console group policy
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
minimum_trial_credits
Minimum credit balance required to create a trial
Integer · Default 1
allow_restrictions
Lets resellers change the forced country on a line, subject to its package restrictions
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
allow_change_username
Lets resellers change line usernames
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
allow_change_password
Lets resellers change line passwords
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
minimum_username_length
Legacy minimum username length saved in the console group policy
Integer · Default 8
minimum_password_length
Legacy minimum password length saved in the console group policy
Integer · Default 8
allow_change_bouquets
Lets resellers change the content groups assigned to a line, subject to its package restrictions
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
notice_html
Group description; the compatibility API escapes HTML characters when saving it
Text
subresellers
Subreseller group selection stored for XUI compatibility
Send groups_selected as JSON text containing group IDs, such as [1,4]
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=edit_group' \
  --data-urlencode 'id=1' \
  --data-urlencode 'group_name=<group_name>'

delete_group

Deletes a user group

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

Packages

get_package

Returns a package

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_package&id=1'

get_packages

Lists packages

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=get_packages'

create_package

Creates a package

Columns of users_packages

Top-level fields for users_packages; required: package_name

package_name
Required name of the package
Text, up to 255 characters
is_addon
Add-on flag in the package definition
0 or 1 · Default 0
is_trial
Whether the package can be sold as a trial
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_official
Whether the package can be sold as a regular package
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
trial_credits
Trial price in credits
Decimal number · Default 0
official_credits
Regular price in credits
Decimal number · Default 0
trial_duration
Length of the trial in the chosen unit
Integer · Default 0
trial_duration_in
Unit of the trial duration
minute, hour, day, week, month or year, also accepted in the plural, such as days
official_duration
Length of regular access in the chosen unit
Integer · Default 0
official_duration_in
Unit of the regular duration
minute, hour, day, week, month or year, also accepted in the plural, such as days
groups
User groups that can use the package
Send groups_selected as JSON text containing group IDs, such as [1,4]
bouquets
Content groups included in the package
Send bouquets_selected as JSON text containing bouquet IDs, such as [1,4]
addon_packages
Add-on package IDs in the package definition
JSON text containing package IDs, such as [1,4]
is_line
Whether the package can be used to provision lines
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_mag
Legacy MAG package flag; native package provisioning supports lines only
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_e2
Legacy Enigma2 package flag; native package provisioning supports lines only
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_restreamer
Restreamer flag applied to lines provisioned with the package
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_isplock
ISP lock flag applied to lines provisioned with the package
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
output_formats
Allowed outputs for lines using this package
Array of numeric output IDs, such as [1,2] for HLS and MPEG-TS; ID 3 is discarded
max_connections
Maximum simultaneous connections assigned to a line by the package
Integer · Default 1
force_server_id
ID of the forced server assigned to a line by the package
Integer · Default 0
forced_country
Forced country assigned to a line by the package
Two-letter country code, such as BR; empty means no restriction
lock_device
Device lock flag compared when checking package compatibility
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
check_compatible
Checks compatibility with the current package before changing a line's regular package
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_package' \
  --data-urlencode 'package_name=<package_name>'

edit_package

Updates a package

ParameterTypeDescription
idinteger
Required
Record ID

Columns of users_packages

Top-level fields for users_packages; required: package_name

package_name
Required name of the package
Text, up to 255 characters
is_addon
Add-on flag in the package definition
0 or 1 · Default 0
is_trial
Whether the package can be sold as a trial
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_official
Whether the package can be sold as a regular package
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
trial_credits
Trial price in credits
Decimal number · Default 0
official_credits
Regular price in credits
Decimal number · Default 0
trial_duration
Length of the trial in the chosen unit
Integer · Default 0
trial_duration_in
Unit of the trial duration
minute, hour, day, week, month or year, also accepted in the plural, such as days
official_duration
Length of regular access in the chosen unit
Integer · Default 0
official_duration_in
Unit of the regular duration
minute, hour, day, week, month or year, also accepted in the plural, such as days
groups
User groups that can use the package
Send groups_selected as JSON text containing group IDs, such as [1,4]
bouquets
Content groups included in the package
Send bouquets_selected as JSON text containing bouquet IDs, such as [1,4]
addon_packages
Add-on package IDs in the package definition
JSON text containing package IDs, such as [1,4]
is_line
Whether the package can be used to provision lines
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_mag
Legacy MAG package flag; native package provisioning supports lines only
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_e2
Legacy Enigma2 package flag; native package provisioning supports lines only
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_restreamer
Restreamer flag applied to lines provisioned with the package
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
is_isplock
ISP lock flag applied to lines provisioned with the package
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
output_formats
Allowed outputs for lines using this package
Array of numeric output IDs, such as [1,2] for HLS and MPEG-TS; ID 3 is discarded
max_connections
Maximum simultaneous connections assigned to a line by the package
Integer · Default 1
force_server_id
ID of the forced server assigned to a line by the package
Integer · Default 0
forced_country
Forced country assigned to a line by the package
Two-letter country code, such as BR; empty means no restriction
lock_device
Device lock flag compared when checking package compatibility
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
check_compatible
Checks compatibility with the current package before changing a line's regular package
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=edit_package' \
  --data-urlencode 'id=1' \
  --data-urlencode 'package_name=<package_name>'

delete_package

Deletes a package

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

Access codes

get_access_code

Returns an access code

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_access_code&id=1'

get_access_codes

Lists access codes

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=get_access_codes'

create_access_code

Creates an access code

Columns of access_codes

Top-level fields for access_codes; required: code; minimum 8 characters except for type 2

code
Unique first URL path segment for the access code
Text, up to 255 characters
type
Surface addressed by the access code
0 = admin panel, 1 = reseller panel, 2 = MAG portal, 3 = Admin API, 6 = web player · Default 0
enabled
Whether the access code is active
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
groups
User groups allowed to sign in through a console code
Array of group IDs, such as [1,4]
whitelist
IP allowlist for the access code
JSON text with exact IP addresses, such as ["203.0.113.10"]; [] allows any IP
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_access_code' \
  --data-urlencode 'code=<code>'

edit_access_code

Updates an access code

ParameterTypeDescription
idinteger
Required
Record ID

Columns of access_codes

Top-level fields for access_codes; required: code; minimum 8 characters except for type 2

code
Unique first URL path segment for the access code
Text, up to 255 characters
type
Surface addressed by the access code
0 = admin panel, 1 = reseller panel, 2 = MAG portal, 3 = Admin API, 6 = web player · Default 0
enabled
Whether the access code is active
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 0
groups
User groups allowed to sign in through a console code
Array of group IDs, such as [1,4]
whitelist
IP allowlist for the access code
JSON text with exact IP addresses, such as ["203.0.113.10"]; [] allows any IP
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=edit_access_code' \
  --data-urlencode 'id=1' \
  --data-urlencode 'code=<code>'

delete_access_code

Deletes an access code

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

HMAC keys

get_hmac

Returns an HMAC key

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_hmac&id=1'

get_hmacs

Lists hmac keys

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=get_hmacs'

create_hmac

Creates an HMAC key

Columns of hmac_keys

Top-level fields for hmac_keys; required: keygen, notes; keygen is 32 bytes; HMAC KEY HIDDEN preserves the key on edit

key
Encrypted key stored for XUI compatibility; NexgenStreamer does not use it for playback
Send a 32-byte key in keygen, or HMAC KEY HIDDEN when editing to keep the current key
notes
Required description of the legacy HMAC key
Text, up to 1024 characters
enabled
Activation flag stored for XUI compatibility; NexgenStreamer does not use it for playback
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_hmac' \
  --data-urlencode 'keygen=<keygen>' \
  --data-urlencode 'notes=<notes>'

edit_hmac

Updates an HMAC key

ParameterTypeDescription
idinteger
Required
Record ID

Columns of hmac_keys

Top-level fields for hmac_keys; required: keygen, notes; keygen is 32 bytes; HMAC KEY HIDDEN preserves the key on edit

key
Encrypted key stored for XUI compatibility; NexgenStreamer does not use it for playback
Send a 32-byte key in keygen, or HMAC KEY HIDDEN when editing to keep the current key
notes
Required description of the legacy HMAC key
Text, up to 1024 characters
enabled
Activation flag stored for XUI compatibility; NexgenStreamer does not use it for playback
Send the parameter to save 1, even with value 0; omit it to save 0 · Default 1
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=edit_hmac' \
  --data-urlencode 'id=1' \
  --data-urlencode 'keygen=<keygen>' \
  --data-urlencode 'notes=<notes>'

delete_hmac

Deletes an HMAC key

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