Accounts-account-email-domain:GET
From Hostway API Documentation
Revision as of 08:44, 31 July 2014 by Mike.robski (Talk | contribs)
GET /accounts/{account}/email/{domain}
Gets email domain's info.
Contents |
Request
GET /accounts/{account}/email/{domain}
URI Parameters
- account - string
- domain - string
Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
- Content-Type
- Optional. 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
{ "quota": 19320, "links": [ { "location": "{APIBaseURL}/accounts/{account}/email/{domain}", "rel": "self" } ] }
Parameters
- quota - int
- Domain quota in MB(sum of all domain's mailboxes quota).
Examples
Success getting domain info
Request
GET /accounts/test-account/email/test.com
Response
200 OK { "quota": 19320, "links": [ { "href": "{APIBaseURL}/accounts/test-account/email/test.com/", "rel": "self" } ] }