Email-domain-usernames-mailboxName-webmail:GET

From Hostway API Documentation
Revision as of 15:24, 15 November 2013 by Mike.robski (Talk | contribs)
Jump to: navigation, search

GET /email/{domain}/usernames/{mailboxName}/webmail

Gets OpenXchange account type.

Contents


Request

GET /email/{domain}/usernames/{mailboxName}/webmail

URI Parameters

domain - string
mailboxName - string

Request Headers

Authorization - HTTP Authorization header [1]
Use the mailbox owner credentials for the specific mailbox, e.g. username: email@domain.com, password: secret
Content-Type
Required. Set this header to application/json; charset=UTF-8

Response

Status Code

200 OK
Success
401 Unauthorized
The supplied credentials are invalid or do not provide permissions for this operation.
404 Not Found
The domain name does not exist.

Response Body

{
   "type": "{type}",
   "allowUpgrade": {allowUpgrade},
   "links": [
      {
         "location": "{APIBaseURL}/email/{domain}/usernames/{mailboxName}/webmail/", 
         "rel": "self"
      }
   ]
}
 


Parameters

allowUpgrade - boolean
OpenXchange allowUpgrade option value.
type - string - one of "standard", "activesync" or "premium"
OpenXchange account type.

Examples

Success getting account type

Request

GET /email/test.com/usernames/test/webmail
 

Response

200 OK

{"type": "standard", "allowUpgrade": true, "links": [{"href": "{APIBaseURL}/email/test.com/usernames/test/webmail/", "rel": "self"}]}


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox