POST
/
autocompose
/
v1
/
analytics
/
message-sent
curl --request POST \
  --url https://api.sandbox.asapp.com/autocompose/v1/analytics/message-sent \
  --header 'Content-Type: application/json' \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>' \
  --data '{
  "conversationId": "01G1167H5FFQ47SMSRYGKBW7HM",
  "messageId": "01BX5ZZKBKACTAV9WEVGEMMVS1",
  "augmentationType": [
    "AUTOSUGGEST"
  ]
}'
This response has no body data.

Authorizations

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

Body

application/json
The parameters for creating a MessageSent event

Analytics event describing the agent's usage of AutoCompose features while composing a message (we sometimes refer to these as augmentation features, because they augment the agent's work). Note that many of the fields are not technically required according to this spec. This does not mean that they can omitted arbitrarily. They should all be set, when they relevant for AutoCompose features a particular ASAPP customer is using and the data is available. For some use cases, some fields are not relevant (for example, phraseAutocompletePresentedCt is only relevant if phrase completions are being used). In other cases, the field may relevant but the data might not be avaialble (for example, if the request for suggestions returns too late, it might not be possible set initialSuggestionsId). The customer should try to fill in all relevant fields when they can; this information enables ASAPP to report on the performance of our features and to improve their perforamnce over time. When a field is omitted, it will take on a default value in the event data. String fields default to empty string and numeric fields default to 0.