MyHome.ie Data Delivery Service

<back to all web services

ContactUs

The following routes are available for this service:
GET,POST/message/contactus
ContactUs Parameters:
NameParameterData TypeRequiredDescription
NamebodystringNo
EmailbodystringNo
MessagebodystringNo
ClientInfobodyList<string>No
BaseSendEmailRequest Parameters:
NameParameterData TypeRequiredDescription
SenderformSenderEnumNo
ToAddressesformList<MailAddress>No
ReplyToAddressformMailAddressNo
CcAddressesformList<MailAddress>No
BccAddressesformList<MailAddress>No
CustomerCopyAddressesformList<MailAddress>No
SubjectformstringNo
RecaptchaResponseformstringNo
MoreDetailsformstringNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringNo
CorrelationIdformstringNo
ActiveUserIdformint?No
VersionformdoubleNo
RequestTypeIdformintNo
SenderEnum Enum:
WelcomeAt
NotificationAt
LeadAt
MailAddress Parameters:
NameParameterData TypeRequiredDescription
DisplayNameformstringNo
EmailAddressformstringNo
BaseSendMessageResponse Parameters:
NameParameterData TypeRequiredDescription
SentMessageformSentMessageNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
BaseType Parameters:
NameParameterData TypeRequiredDescription
VersionformdoubleNo
SentMessage Parameters:
NameParameterData TypeRequiredDescription
SentMessageIdformGuidNo
SubjectformstringNo
BodyformstringNo
HtmlBodyformstringNo
IsSpamformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /message/contactus HTTP/1.1 
Host: agentapi.myhome.ie 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Name":"String","Email":"String","Message":"String","ClientInfo":["String"],"Sender":"WelcomeAt","ToAddresses":[{"DisplayName":"String","EmailAddress":"String"}],"ReplyToAddress":{"DisplayName":"String","EmailAddress":"String"},"CcAddresses":[{"DisplayName":"String","EmailAddress":"String"}],"BccAddresses":[{"DisplayName":"String","EmailAddress":"String"}],"CustomerCopyAddresses":[{"DisplayName":"String","EmailAddress":"String"}],"Subject":"String","RecaptchaResponse":"String","MoreDetails":"String","ApiKey":"String","CorrelationId":"String","ActiveUserId":0,"Version":0,"RequestTypeId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"SentMessage":{"SentMessageId":"00000000000000000000000000000000","Subject":"String","Body":"String","HtmlBody":"String","IsSpam":false},"Version":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}