Access
Groups define permissions and package access. Access codes and HMAC keys have separate actions.
Groups
get_group
Returns a user group
| Parameter | Type | Description |
|---|---|---|
id | integer | Group ID, or use group_id |
group_id | integer | Alias for id |
show_columns | string | Comma-separated columns to include |
hide_columns | string | Comma-separated columns to omit |
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=get_group'get_groups
Lists groups
| Parameter | Type | Description |
|---|---|---|
show_columns | string | Comma-separated columns to include |
hide_columns | string | 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
group_name- Required name of the group
is_admin- Identifies an administrator group
is_reseller- Identifies a reseller group
total_allowed_gen_trials- Reseller trial creation limit within the configured window
total_allowed_gen_in- Time window for the reseller trial limit
delete_users- Legacy delete permission exposed in the console group policy
allowed_pages- Page permissions granted to the group
can_delete- Whether the Admin API may delete this group or change its administrator and reseller flags
create_sub_resellers- Lets group members create subresellers
create_sub_resellers_price- Credit cost of creating a subreseller
reseller_client_connection_logs- Stored for XUI compatibility; not used by NexgenStreamer
can_view_vod- Legacy VOD viewing permission exposed in the console group policy
allow_download- Legacy download permission exposed in the console group policy
minimum_trial_credits- Minimum credit balance required to create a trial
allow_restrictions- Lets resellers change the forced country on a line, subject to its package restrictions
allow_change_username- Lets resellers change line usernames
allow_change_password- Lets resellers change line passwords
minimum_username_length- Legacy minimum username length saved in the console group policy
minimum_password_length- Legacy minimum password length saved in the console group policy
allow_change_bouquets- Lets resellers change the content groups assigned to a line, subject to its package restrictions
notice_html- Group description; the compatibility API escapes HTML characters when saving it
subresellers- Subreseller group selection stored for XUI compatibility
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_group' \
--data-urlencode 'group_name=<group_name>'edit_group
Updates a user group
| Parameter | Type | Description |
|---|---|---|
id | integer | 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
group_name- Required name of the group
is_admin- Identifies an administrator group
is_reseller- Identifies a reseller group
total_allowed_gen_trials- Reseller trial creation limit within the configured window
total_allowed_gen_in- Time window for the reseller trial limit
delete_users- Legacy delete permission exposed in the console group policy
allowed_pages- Page permissions granted to the group
can_delete- Whether the Admin API may delete this group or change its administrator and reseller flags
create_sub_resellers- Lets group members create subresellers
create_sub_resellers_price- Credit cost of creating a subreseller
reseller_client_connection_logs- Stored for XUI compatibility; not used by NexgenStreamer
can_view_vod- Legacy VOD viewing permission exposed in the console group policy
allow_download- Legacy download permission exposed in the console group policy
minimum_trial_credits- Minimum credit balance required to create a trial
allow_restrictions- Lets resellers change the forced country on a line, subject to its package restrictions
allow_change_username- Lets resellers change line usernames
allow_change_password- Lets resellers change line passwords
minimum_username_length- Legacy minimum username length saved in the console group policy
minimum_password_length- Legacy minimum password length saved in the console group policy
allow_change_bouquets- Lets resellers change the content groups assigned to a line, subject to its package restrictions
notice_html- Group description; the compatibility API escapes HTML characters when saving it
subresellers- Subreseller group selection stored for XUI compatibility
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
| Parameter | Type | Description |
|---|---|---|
id | integer | Record ID |
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=delete_group&id=1'Packages
get_package
Returns a package
| Parameter | Type | Description |
|---|---|---|
id | integer | Record ID |
show_columns | string | Comma-separated columns to include |
hide_columns | string | Comma-separated columns to omit |
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=get_package&id=1'get_packages
Lists packages
| Parameter | Type | Description |
|---|---|---|
show_columns | string | Comma-separated columns to include |
hide_columns | string | 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
is_addon- Add-on flag in the package definition
is_trial- Whether the package can be sold as a trial
is_official- Whether the package can be sold as a regular package
trial_credits- Trial price in credits
official_credits- Regular price in credits
trial_duration- Length of the trial in the chosen unit
trial_duration_in- Unit of the trial duration
official_duration- Length of regular access in the chosen unit
official_duration_in- Unit of the regular duration
groups- User groups that can use the package
bouquets- Content groups included in the package
addon_packages- Add-on package IDs in the package definition
is_line- Whether the package can be used to provision lines
is_mag- Legacy MAG package flag; native package provisioning supports lines only
is_e2- Legacy Enigma2 package flag; native package provisioning supports lines only
is_restreamer- Restreamer flag applied to lines provisioned with the package
is_isplock- ISP lock flag applied to lines provisioned with the package
output_formats- Allowed outputs for lines using this package
max_connections- Maximum simultaneous connections assigned to a line by the package
force_server_id- ID of the forced server assigned to a line by the package
forced_country- Forced country assigned to a line by the package
lock_device- Device lock flag compared when checking package compatibility
check_compatible- Checks compatibility with the current package before changing a line's regular package
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_package' \
--data-urlencode 'package_name=<package_name>'edit_package
Updates a package
| Parameter | Type | Description |
|---|---|---|
id | integer | Record ID |
Columns of users_packages
Top-level fields for users_packages; required: package_name
package_name- Required name of the package
is_addon- Add-on flag in the package definition
is_trial- Whether the package can be sold as a trial
is_official- Whether the package can be sold as a regular package
trial_credits- Trial price in credits
official_credits- Regular price in credits
trial_duration- Length of the trial in the chosen unit
trial_duration_in- Unit of the trial duration
official_duration- Length of regular access in the chosen unit
official_duration_in- Unit of the regular duration
groups- User groups that can use the package
bouquets- Content groups included in the package
addon_packages- Add-on package IDs in the package definition
is_line- Whether the package can be used to provision lines
is_mag- Legacy MAG package flag; native package provisioning supports lines only
is_e2- Legacy Enigma2 package flag; native package provisioning supports lines only
is_restreamer- Restreamer flag applied to lines provisioned with the package
is_isplock- ISP lock flag applied to lines provisioned with the package
output_formats- Allowed outputs for lines using this package
max_connections- Maximum simultaneous connections assigned to a line by the package
force_server_id- ID of the forced server assigned to a line by the package
forced_country- Forced country assigned to a line by the package
lock_device- Device lock flag compared when checking package compatibility
check_compatible- Checks compatibility with the current package before changing a line's regular package
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
| Parameter | Type | Description |
|---|---|---|
id | integer | 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
| Parameter | Type | Description |
|---|---|---|
id | integer | Record ID |
show_columns | string | Comma-separated columns to include |
hide_columns | string | 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
| Parameter | Type | Description |
|---|---|---|
show_columns | string | Comma-separated columns to include |
hide_columns | string | 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
type- Surface addressed by the access code
enabled- Whether the access code is active
groups- User groups allowed to sign in through a console code
whitelist- IP allowlist for the access code
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=create_access_code' \
--data-urlencode 'code=<code>'edit_access_code
Updates an access code
| Parameter | Type | Description |
|---|---|---|
id | integer | 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
type- Surface addressed by the access code
enabled- Whether the access code is active
groups- User groups allowed to sign in through a console code
whitelist- IP allowlist for the access code
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
| Parameter | Type | Description |
|---|---|---|
id | integer | 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
| Parameter | Type | Description |
|---|---|---|
id | integer | Record ID |
show_columns | string | Comma-separated columns to include |
hide_columns | string | Comma-separated columns to omit |
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=get_hmac&id=1'get_hmacs
Lists hmac keys
| Parameter | Type | Description |
|---|---|---|
show_columns | string | Comma-separated columns to include |
hide_columns | string | 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
notes- Required description of the legacy HMAC key
enabled- Activation flag stored for XUI compatibility; NexgenStreamer does not use it for playback
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
| Parameter | Type | Description |
|---|---|---|
id | integer | 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
notes- Required description of the legacy HMAC key
enabled- Activation flag stored for XUI compatibility; NexgenStreamer does not use it for playback
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
| Parameter | Type | Description |
|---|---|---|
id | integer | Record ID |
curl -sS 'http://<server>/<access_code>/?api_key=<key>&action=delete_hmac&id=1'
