Accounts-account-email-domain-blackwhitelist-address:GET

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Parameters)
m (1 revision: Release 109)
 

Latest revision as of 13:14, 24 July 2015

[edit] GET /accounts/{account}/email/{domain}/blackwhitelist/{address}

Get black/white listed address details

Contents


[edit] Request

GET /accounts/{account}/email/{domain}/blackwhitelist/{address}

[edit] URI Parameters

account - string
domain - string
address - string

[edit] 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

[edit] Response

[edit] 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.

[edit] Response Body

{
    "type": "{type}",
    "address": "{address}",
    "links": {links}
}
 


[edit] Parameters

type - string
Type of address included in black/white list. Possible values are "W" or "B". "W" means the mailbox is included in "whitelist", "B" - included in "blacklist".
address - string
The address of the black/whitelisted mailbox or domain.
links - list
Hypermedia to the get black/whitelisted address

[edit] Examples

[edit] Get address details

Request

GET /accounts/account-number/email/test.com/blackwhitelist/mb1-white20150114-0113@somedomain.com
 

Response

200 OK

{
    "type": "W",
    "address": "mb1-white20150114-0113@somedomain.com",
    "links": [{
        "href": "{{APIBaseURL}}/accounts/account-number/email/test.com/blackwhitelist/mb1-white20150114-0113@somedomain.com/",
        "rel": "self"
    }]
}
 


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox