Self Help Documentation
< All Topics

accounts/listaccounts

Description

Lists all existing SPanel accounts currently on the server.

Parameters

FieldTypeRequiredDescription
tokenstringYesAuthorizing API token – check API Basics for more information.
actionstringYesThe category and function being executed.
accountuserstringNoThis parameter contains the SPanel user account name to obtain data for.
diskSpaceOptionstringNoFilter accounts based on disk space usage. Possible values: “exactly”, “over”, “under”. If you choose to use this filter, you must include diskSpaceValue and diskSpaceType as well.
diskSpaceValuestringNoThe numeric value of the disk space. Depending on diskSpaceType it could be in megabytes, gigabytes or percentage of the whole server space.
diskSpaceTypestringNoThe type of disk space value set in diskSpaceValue, possible values: “MB”, “GB”, “%”.
statusOptionstringNoFilter accounts by option, possible values: “active”, “suspended”, “scheduled”. The scheduled value is used to display accounts that are scheduled for suspension.
setupOptionstringNoFilter accounts based on setup time. Possible values: “older”, “newer”, “created”. This must be used in combination with setupValue or setupDate.
setupValuestringNoThis must be used in combination with setupOption. Possible values: “1w” for a week, “1m” for a month, “1y” for a year or “custom” if you’d like to provide custom value as the setupDate parameter.
setupDatestringNoThis may be used only if setupOption and setupValue are used. setupValue must be “custom”. The parameter must be a valid date which can be parsed by PHP’s strtotime function.
selectedPackagestringNoFilter accounts by package name.

Example

You can find more information about the Endpoint URL in our API Basics article.

Output

Table of Contents