POST
/
conversation
/
v1
/
conversations
/
{conversationId}
/
messages
curl --request POST \
  --url https://api.sandbox.asapp.com/conversation/v1/conversations/{conversationId}/messages \
  --header 'Content-Type: application/json' \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>' \
  --data '{
  "text": "Hello, I would like to upgrade my internet plan to GOLD.",
  "sender": {
    "role": "agent",
    "externalId": 123
  },
  "timestamp": "2021-11-23T12:13:14.555Z"
}'
{
  "id": "01BX5ZZKBKACTAV9WEVGEMMVS1"
}

Authorizations

asapp-api-id
string
header
required
asapp-api-secret
string
header
required

Path Parameters

conversationId
string
required

The identifier for a conversation.

Body

application/json

Represents a single message within a conversation.

Response

200
application/json

Successfully created message in conversation

Response for messages