Accounts-account-email-domain-usernames-mailboxName-webmail:GET

(Difference between revisions)
Jump to: navigation, search
 
m (1 revision: Release 87)

Revision as of 15:24, 15 November 2013

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

Gets OpenXchange account type.

Contents


Request

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

URI Parameters

account - string
domain - string
mailboxName - string

Request Headers

Authorization - HTTP Authorization header [1]
The Authentication credentials of the client application.
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

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


Parameters

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

Examples

Success getting account type

Request

GET /accounts/test/email/test.com/usernames/john.smith/webmail
 

Response

200 OK

{
   "authToken": "PoiC9iyBehe13ZHWyhfa2eArKUJy+RJ5WpyN0eCBs2+Ns8SIdvhgto9zWLDnGZWlgTV9MuJ1F+//XnoKZWxjaRr2qh++437fChyxZmaHwe7g==",
   "type": "standard", 
   "allowUpgrade": true, 
   "links": [
      {
         "href": "{APIBaseURL}/accounts/test/email/test.com/usernames/john.smith/webmail/", 
         "rel": "self"
      }
   ]
}


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox