v1

latestOpenAPI 3.0.02026-07-14235231.7 KB
event

Create an event

post/conversations/{conversation_id}/events

Request body

bodyEventBody

Event Body

fromstring required

Member ID

tostring

Member ID

typestring required

Event type

Example request

{
  "body": {
    "text": "My Text"
  },
  "from": "MEM-63f61863-4a51-4f6b-86e1-46edebio0391",
  "to": "MEM-63f61863-4a51-4f6b-86e1-46edebio0391",
  "type": "text"
}

Response

Create New Event Response Payload Object

hrefstring url

A link towards a conversation event included in Conversation API

idstring

Event id. This is a progressive integer

timestampstring

Time of event creation

Example response

{
  "href": "https://api.nexmo.com/v0.1/conversations/CON-63f61863-4a51-4f6b-86e1-46edebio0391/events/1",
  "id": "5",
  "timestamp": "2020-01-01T14:00:00.00Z"
}