This API call allows user to add a new set of credentials to their account.
Parameters
Parameter
Required
Requirements
Description
api_user
Yes
alphanumeric
The primary account holder’s user ID creating the new
account
api_key
Yes
alphanumeric
The primary account holder’s password
username
Yes
alphanumeric
Enter a username for the new account
password
Yes
alphanumeric
Enter a password for the new account
permissions
No
JSON array of bits
Credentials are specified using a JSON object. There are three key names: email for access to SMTP, api for programmatic access, and web for administration. The values for each are a bit, 0 for off or 1 for on.
The following example allows the specified username/password to log into the dashboard, but not send email or have access to any of the APIs:
Info
Excluding a permission is the same as granting access rights. In other words, if you do not specify email, web or api at all, the new credentials will have access to all three. If you do not want the credentials to have access to email, web, or api, you must explicitly set those parameter options to zeroes.
Edit
Parameters
Parameter
Required
Requirements
Description
api_user
Yes
alphanumeric
The primary account holder’s user ID creating the new
account
api_key
Yes
alphanumeric
The primary account holder’s password
username
Yes
alphanumeric
The existing credentials to edit
password
No
alphanumeric
Optionally update the password
permissions
No
JSON array of bits
Credentials are specified using a JSON object. There are three key names: email for access to SMTP, api for programmatic access, and web for administration. The values for each are a bit, 0 for off or 1 for on.
The following example allows the specified username/password to log into the dashboard, but not send email or have access to any of the APIs:
{"email": 0, "web": 1, "api": 0}
If you do not specify any additional parameters (i.e., email, web, api), then no permissions will be changed. This behavior allows you to change passwords without having to lookup the current applied permissions.