Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API allows you to receive / send a message to a contact and also receive the entire history of correspondence with the selected contact.

...

Name

Description

Validation

type

Message type

Available types

  • file

  • location

  • picture

  • voice

  • text

  • video

  • audio

  • contact

  • animation

watermark

Message priority timestamp (default, use current timestamp)

Timestamp

media

Attachment URL

Mandatory if media message. If the type does not match the file format, it will be sent as a “document”

title

Place name

Mandatory if location type

latitude

Width

Mandatory if location type

longitude

Longitude

Mandatory if location type

content

Text

Required if type is text

fullName

Full name

Required if type is contact

phoneNumber

Phone number

Required if type is contact

 
In case of a successful response, get an object of type Message.


Receipt (via contact).

Allows you to receive a message through a contact.

...

Answer description:

Name

Description

cursor

Cursor object

collection

Array of Message objects

 


Receiving (via chat).

...

Answer description:

Name

Description

cursor

Cursor object

collection

Array of Message objects