GalaxyMobile App API

<back to all web services

PostMessage

The following routes are available for this service:
POST/galaxy/sendmessageSends a push message to users, notifying them of a message in the app.
PostMessage Parameters:
NameParameterData TypeRequiredDescription
TypebodyMessageTypeYesThe type of message being sent.

Allowable Values

  • Info
  • Marketing
  • Policy
  • Announcement
  • General
  • Claim
SubjectbodystringYesThe subject of the message
ContentbodystringYesThe content of the message
RecipientsbodyList<UserDetails>YesThe recipients who will be receiving the message
ApiKeybodystringYesThe API Key required for authentication
ShowInInboxbodyboolYesIf set, the message will be displayed in the user's inbox in the app. Otherwise will just be a push notification.
MessageType Enum:
NameValue
Info1
Marketing2
Policy3
Announcement4
General5
Claim6
UserDetails Parameters:
NameParameterData TypeRequiredDescription
IdNumberformstringNo
GalaxyCompanyIdformintNo
ApiServiceResponse Parameters:
NameParameterData TypeRequiredDescription
DescriptionformstringNo
HeadingformstringNo
WasSuccessfulformboolNo
ModelStateformObjectNo

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 /galaxy/sendmessage HTTP/1.1 
Host: galaxymobile.api.dev.86degrees.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Type":1,"Subject":"String","Content":"String","Recipients":[{"IdNumber":"String","GalaxyCompanyId":0}],"ApiKey":"String","ShowInInbox":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Description":"String","Heading":"String","WasSuccessful":false,"ModelState":{}}