Message

Create / Import

Creates/Imports a Message in Social Gateway. The message will get routed to the right Case and Campaign according to the Rules defined by the Social Gateway administrator.

POST /api/v2/message

Input Parameters

Name Type Description
campaign string Required. Name of the campaign in Social Gateway
source string Required. Channel of the message. Valid values are email or custom
fromId string Required. Unique ID of the sender of the message (normally an email address)
fromName string Required. Name sender - e.g. John Smith
fromUserName string Logical username of the sender
fromCrmId string CRM id of the sender
fromCrmNick string CRM Nickname of the sender
UUID string Unique ID of the message for the given source. If not sent, Social Gateway will compute it.
subject string Subject of the message. If null, Social Gateway will compute it with the first 127 characters of content
content string Required. Complete text of the message
note string Text note to be associated with the Case (supports multiple values)
tag string Tag to be associated with the Case (supports multiple values)

Response Sample

Status: 200 OK
{
  "success": true,
  "case_id": 1,
  "UUID": "FSAOIUFO4324324FJKQWRIO4234IOIOH23"
}