GET api/new

Request Information

URI Parameters

None.

Body Parameters

webhook
NameDescriptionTypeAdditional information
product_id

string

None.

phone_id

integer

None.

message

Message

None.

user

User

None.

conversation

string

None.

conversation_name

string

None.

receiver

string

None.

timestamp

integer

None.

type

string

None.

reply

string

None.

productId

string

None.

phoneId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "product_id": "sample string 1",
  "phone_id": 2,
  "message": {
    "type": "sample string 1",
    "text": "sample string 2",
    "id": "sample string 3",
    "_serialized": "sample string 4",
    "fromMe": true
  },
  "user": {
    "id": "sample string 1",
    "name": "sample string 2",
    "phone": "sample string 3"
  },
  "conversation": "sample string 3",
  "conversation_name": "sample string 4",
  "receiver": "sample string 5",
  "timestamp": 6,
  "type": "sample string 7",
  "reply": "sample string 8",
  "productId": "sample string 9",
  "phoneId": 10
}

application/xml, text/xml

Sample:
<webhook xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication9.Models">
  <conversation>sample string 3</conversation>
  <conversation_name>sample string 4</conversation_name>
  <message>
    <_serialized>sample string 4</_serialized>
    <fromMe>true</fromMe>
    <id>sample string 3</id>
    <text>sample string 2</text>
    <type>sample string 1</type>
  </message>
  <phoneId>10</phoneId>
  <phone_id>2</phone_id>
  <productId>sample string 9</productId>
  <product_id>sample string 1</product_id>
  <receiver>sample string 5</receiver>
  <reply>sample string 8</reply>
  <timestamp>6</timestamp>
  <type>sample string 7</type>
  <user>
    <id>sample string 1</id>
    <name>sample string 2</name>
    <phone>sample string 3</phone>
  </user>
</webhook>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>