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

From Hostway API Documentation
Revision as of 15:24, 15 November 2013 by Mike.robski (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GET accounts/{account}/email/{domain}/usernames/{mailbox}/forwards

Gets forwarding for specified mailbox,domain and account.

Contents


Request

GET accounts/{account}/email/{domain}/usernames/{mailbox}/forwards

URI Parameters

account - string
domain - string
mailbox - 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

{
   "targets": [
      {
         "target":"{target_mailbox}"
      }, 
      {
         "target":"{target_mailbox}"
      }
   ],
   "links": [
      {
         "location": "{APIBaseURL}/accounts/{account}/email/{domain}/usernames/{mailbox}/forwards/", 
         "rel": "self"
      }
   ]
}
 

Parameters

target_mailbox - string
The returned forward target mailbox.

Examples

Sucess getting forwarding info

Request

GET accounts/{account}/email/test.com/usernames/test/forwards
 

Response

200 OK

 <nowiki>
{
   "targets": [
      {
         "target":"mb1@test.com"
      }, 
      {
         "target":"test@test-forward.com"
      }
   ],
   "links": [
      {
         "location": "{APIBaseURL}/accounts/{account}/email/{domain}/usernames/{mailbox}/forwards/", 
         "rel": "self"
      }
   ]
}
 
</nowiki>

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox