POST
/
conversation
/
v1
/
conversations
/
{conversationId}
/
messages
/
batch
curl --request POST \
  --url https://api.sandbox.asapp.com/conversation/v1/conversations/{conversationId}/messages/batch \
  --header 'Content-Type: application/json' \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>' \
  --data '{
  "messages": [
    {
      "text": "Hello, I would like to upgrade my internet plan to GOLD.",
      "sender": {
        "role": "customer",
        "externalId": "customer-xyz"
      },
      "timestamp": "2021-11-23T12:13:14.555Z"
    },
    {
      "text": "Let me help you with that",
      "sender": {
        "role": "agent",
        "externalId": "agent-111"
      },
      "timestamp": "2021-11-23T12:13:16.666Z"
    }
  ]
}'
{}

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

A batch of messages for conversation

messages
object[]

Represents a single message within a conversation.

Response

200
application/json
Successfully created messages in conversation

Response for batch messages