POST WhatsAppApi/V1/SendMessage

Request Information

URI Parameters

None.

Body Parameters

Input
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

MessageText

string

None.

MobileNumbers

string

None.

ScheduleDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Password": "sample string 2",
  "MessageText": "sample string 3",
  "MobileNumbers": "sample string 4",
  "ScheduleDate": "sample string 5"
}

text/html

Sample:
{"Username":"sample string 1","Password":"sample string 2","MessageText":"sample string 3","MobileNumbers":"sample string 4","ScheduleDate":"sample string 5"}

application/xml, text/xml

Sample:
<Input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1">
  <MessageText>sample string 3</MessageText>
  <MobileNumbers>sample string 4</MobileNumbers>
  <Password>sample string 2</Password>
  <ScheduleDate>sample string 5</ScheduleDate>
  <Username>sample string 1</Username>
</Input>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Input'.

Response Information

Resource Description

SendMessageResponse
NameDescriptionTypeAdditional information
ResponseMessage

string

None.

ErrorCode

integer

None.

ErrorMessage

string

None.

DateSent

string

None.

MessageId

string

None.

MessageText

string

None.

DateCreated

string

None.

MobileNumbers

string

None.

ScheduledDate

string

None.

From

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseMessage": "sample string 1",
  "ErrorCode": 2,
  "ErrorMessage": "sample string 3",
  "DateSent": "sample string 4",
  "MessageId": "sample string 5",
  "MessageText": "sample string 6",
  "DateCreated": "sample string 7",
  "MobileNumbers": "sample string 8",
  "ScheduledDate": "sample string 9",
  "From": "sample string 10"
}

text/html

Sample:
{"ResponseMessage":"sample string 1","ErrorCode":2,"ErrorMessage":"sample string 3","DateSent":"sample string 4","MessageId":"sample string 5","MessageText":"sample string 6","DateCreated":"sample string 7","MobileNumbers":"sample string 8","ScheduledDate":"sample string 9","From":"sample string 10"}

application/xml, text/xml

Sample:
<SendMessageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <DateCreated>sample string 7</DateCreated>
  <From>sample string 10</From>
  <MessageId>sample string 5</MessageId>
  <MessageText>sample string 6</MessageText>
  <MobileNumbers>sample string 8</MobileNumbers>
  <ScheduledDate>sample string 9</ScheduledDate>
  <DateSent>sample string 4</DateSent>
  <ErrorCode>2</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <ResponseMessage>sample string 1</ResponseMessage>
</SendMessageResponse>