POST
/
autocompose
/
v1
/
spellcheck
/
correction
curl --request POST \
  --url https://api.sandbox.asapp.com/autocompose/v1/spellcheck/correction \
  --header 'Content-Type: application/json' \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>' \
  --data '{
  "text": "How is tihs ",
  "typingEvent": {
    "cursorStart": 11,
    "cursorEnd": 12
  },
  "userDictionary": [
    "Hellooo"
  ]
}'
{
  "id": "01BX5ZZKBKACTAV9WEVGEMMVS1",
  "misspelledText": "tihs",
  "correctedText": "this",
  "position": 7
}

Authorizations

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

Body

application/json
The parameters for getting a spelling correction as a message is being typed.

The body is of type object.

Response

200
application/json
Successfully checked for a spelling mistake.

The response is of type object.