AutoCompose
Check for spelling mistakes
Get spelling correction for a message as it is being typed, if there is a misspelling. Only the current word will be corrected, once it’s fully typed (so it is recommended to call this endpoint after space characters).
POST
/
autocompose
/
v1
/
spellcheck
/
correction
Authorizations
asapp-api-id
string
headerrequiredasapp-api-secret
string
headerrequiredBody
application/json
text
string
requiredtext being typed by the agent, already entered into the composer
typingEvent
object
requireduserDictionary
string[]
Words that should not be corrected if they are present on the text
Response
200 - application/json
id
string
ID for the spelling correction that was returned (to be used in analytics events)
misspelledText
string
misspelling that needs to be replaced with the corrected text
correctedText
string
correction for the misspelling
position
integer
position where the misspelling starts
Was this page helpful?