Account
Register new account
Registers new IMAP account to be synced<br/><br/>Credentials are not verified while handling this request. The account connects afterwards, and an authentication failure surfaces as an authenticationError state rather than an error here. Use the account verification endpoint to test credentials up front.
post/v1/account
Request
- Base URL: https://your-emailengine-host
- URL: https://your-emailengine-host/v1/account
- Auth: HTTP bearer
Headers
x-ee-timeoutinteger
Request timeout in milliseconds. Raises the command timeout above the EENGINE_TIMEOUT default for a long-running request; a value below the default has no effect
Example:30000
Request body
Example request
{
"account": "example",
"name": "Nyan Cat",
"email": "nyan.cat@example.com",
"imap": {
"auth": {
"user": "nyan.cat",
"pass": "sercretpass"
},
"host": "mail.example.com",
"port": 993,
"secure": true
},
"smtp": {
"auth": {
"user": "nyan.cat",
"pass": "secretpass"
},
"host": "mail.example.com",
"port": 465,
"secure": true
}
}Response
Returns the registered account, including the generated account ID when one was not supplied.
Example response
{
"account": "user123",
"state": "new",
"redirect": "https://emailengine.example.com/oauth?account=example"
}Changes
No recorded changes to this operation across all 1 revision of this API.