LUXSCI API V2 Account Functions
Total Page:16
File Type:pdf, Size:1020Kb
LUXSCI API v2 Account Functions by Erik Kangas, PhD www.luxsci.com Last Updated: , 2021 for LuxSci v2021.2.4 luxsci.com 2 LuxSci API v2: Mechanics TABLE OF CONTENTS OVERVIEW ...................................................... 3 Delete Alias ................................................... 27 Get Aliases Report ......................................... 28 Account API Access Controls ...................... 3 Get Alias Details ............................................ 29 LuxSci Secure Marketing Requests ............ 4 SecureForm Management ........................... 30 User Management Requests......................... 4 Get SecureForm List ...................................... 30 Get User Report ............................................... 5 Get SecureForm ............................................ 33 Delete User ...................................................... 7 Get SecureForm Database Rows.................. 35 Update User Settings..................................... 7 Get SecureForm Database Row ................... 37 Rename User ................................................. 10 Delete SecureForm Database Row ............... 38 Create User .................................................... 11 Get SecureForm Database File ..................... 39 Domain Management Requests ................. 13 Delete SecureForm Database File ................ 40 Create Domain ............................................... 13 SecureSend NameSpace Management ..... 41 Delete Domain ............................................... 14 Create/Update SecureSend User .................. 41 Update Domain .............................................. 15 Change SecureSend User Password ............ 43 Get Domains Report ...................................... 17 Get SecureSend User Single Sign-On Link .. 44 Get Domain Details ........................................ 18 Get SecureSend User List ............................. 45 DKIM Requests ............................................. 19 Reports .......................................................... 46 Create DKIM .................................................. 19 Report Querying and Results: Delete DKIM ................................................... 20 Commonalities ............................................... 47 Get DKIM Report............................................ 20 Report: Email Sent ......................................... 48 Get DKIM Details ........................................... 21 Report: Email Delivery Status ........................ 53 Email Suppression ....................................... 22 Report: Email URL Clicks .............................. 58 Create Suppression ....................................... 22 Report: Email Opens...................................... 62 Delete Suppression ........................................ 23 Report: SMTP Login Failures / Rejections .... 65 Get Suppression ............................................ 23 Report: Email Feed Back Loops .................... 66 Email Alias Management Requests ........... 24 Servers .......................................................... 68 Create Alias .................................................... 24 List of All Servers ........................................... 68 Update Alias ................................................... 26 Servers Status ............................................... 69 luxsci.com LuxSci API v2: Mechanics 3 OVERVIEW The “account” API scope allows your API client to access manage users, domains, email aliases, and other account-level properties. Some user management tasks would be performed using “user” scope (e.g. changing a user’s password); account-scope commands are more administrative and include commands that would not be appropriate for a user to perform him/herself. You can access commands in account scope: • An API Integration whose “scope” is set to “account” (or higher) and where you have enabled access control for the groups of account-level commands that you wish to perform. Note that API credentials with account scope (or higher) do not need additional usernames or passwords to perform commands. You must protect your API keys, as compromised keys will allow others to perform any of the commands permitted to your API Integration. We also recommend that you permit only specific IP addresses to use your API credentials. All account requests have API URLS that start with: /perl/v2/api/account/[ID] where “ID” is the account unique ID number of the account with respect to which the command will apply. Account API Access Controls The account API scope has a number of access controls that govern which commands your API is allowed to perform. None of these commands is enabled by default – so your API can only execute API commands that you have explicitly opted into. This table lists the available account- scope API Access controls. As more commands are added in the future, they will either fall naturally into one of these existing access groups, or new access groups will be added to cover them. Your API Interface should not gain significant additional system access or control when new commands are added to the API in the future; you will need to explicitly opt into use of any new functionality, should you decide that your API client requires it. luxsci.com 4 LuxSci API v2: Mechanics Account-Scope Access Control Notes General “Permit user-level commands without username and password” User Scope This allows your API Integration to perform user-scope commands on allowed users without also supplying their usernames and passwords. “Permit auto-upgrades as needed to fulfill requests” Allows Upgrades the system to automatically upgrade your account, if needed, in order to perform API commands such as “add user”. Permit domain management commands such as get domain Manage Domains details, add domain, delete domain, update domain, manage DKIM. Permit alias management commands such as get alias Manage Aliases reports, add aliases, delete alias. User Add Users Create new users Modify Users Change user settings Enable/Disable/Delete Delete users, disable users, enable users LuxSci Secure Marketing Requests The API calls for LuxSci Secure Marketing are at the account scope. However, there are so many of them, that we have placed their documentation into a separate API Guide. See the document “LuxSci Marketer API Functions” for their definitions. User Management Requests All user-management API requests use URLs of the form: /perl/api/v2/account/[account id]/users/[username]... where “username” is the login email address of the user in question. This “username” can also be just the unique numerical ID of the user. luxsci.com LuxSci API v2: Mechanics 5 Get User Report Return an array of information about all users matching your query request. Request Method GET Access Required User Settings: Read access Request URL /perl/api/v2/account/[account id]/users Request Query String See below Request Body none Success Response See below Request Query String The Request query string can contain any or all of the following keywords parameters to refine the search. If all are omitted, the report will include information about all users in the account. In all cases, any users protected from API access will not be included in the report. Keyword Data Type Description status Enum Value ‘enabled’ – return only active/enabled users. Value ‘disabled’ – return only disabled users. domain String Domain name in your account. If supplied, only users in this domain will be returned. younger_than Integer Return only users created less than this number of days ago. older_than Integer Return only users created more than this number of days ago. JSON Response The successful response will be an array of objects, one for each matching user in your account. Each user object returned will have the following keywords / values: Keyword Value city City company Company / organization contact Full name. E.g. “John Smith” country Country created Date and time this user was created (YYYY-MM-DD HH:MM:SS in GMT) luxsci.com 6 LuxSci API v2: Mechanics Keyword Value custom1 Custom field #1 custom2 Custom field #2 custom3 Custom field #3 disk_quota Floating point limit on the user’s total disk space usage. In gigabytes (1 GB = 1000 MB). A value of “-1” signifies that the user does not have a disk usage limit. disk_usage Floating point value for the user’s current (last measured) total disk space usage. In gigabytes (1 GB = 1000 MB) email1 Primary email address email2 Alternate email address fax FAX number flags Array. Lists which of the following flags, if any, are set on this user: • poor_password – User must change his/her password on the next login to the Web Interface • can_autodelete – User account can be auto-deleted if the user has not logged in in a long time uid Unique user ID (integer). last_access_ Date Time the user last logged into any of WebMail, POP, IMAP, or SMTP (not date updated real time). If the user has never logged in, this should be the same as the “created” date time. (YYYY-MM-DD HH:MM:SS in GMT) modified Date and time this user was last modfiied (YYYY-MM-DD HH:MM:SS in GMT) phone1 Primary contact phone number phone2 Alternate contact phone number services Array. Lists which of the following services the user has permission to use: • pop – POP3 access to email • imap – IMAP4 access to email • smtp – SMTP for sending email • spam – Basic Spam and Virus Filtering • ftp – FTP and/or SFTP access • website – permission to login to the Web Interface state State/Province