Email-domain-usernames-mailboxName-webmail:GET
(Difference between revisions)
m (moved Email-domain-usernames-mailbox-webmail:GET to Email-domain-usernames-mailboxName-webmail:GET) |
Mike.robski (Talk | contribs) m (1 revision: Release 87) |
Revision as of 15:24, 15 November 2013
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"}]}