MessageOS
APITyping

Show the typing indicator

POST
/typing

Answers 404 until MessageOS turns it on for you: GET /whoami shows rcsExtras true once it is. Shows a contact the typing indicator, so they can see that an answer is on its way while your own system works on one.

  • to is the same as in POST /messages, except that a phone number must already be a contact.
  • It is a signal, not a message: it is not counted in usage, it does not appear in the conversation, quiet hours do not hold it, and it needs no Idempotency-Key.
  • A contact who opted out is refused with 409 blocked and the reason opted_out or org_opted_out, and so is a contact with no consent record who has never written in, with the reason no_consent_record.
  • The messaging network does not say how long a phone shows the indicator, so send it again if your answer takes a while.

Scope: messages:write.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Request Body

application/json
  1. body
to*

Who gets the message: one of contactId, phoneNumber, or externalId.

Response Body

The messaging network took the request.

application/json
  1. response
status*string

The messaging network took the request.

contactId*integer

The contact the message went to.

Example request

curl -X POST 'https://api.messageos.ai/v1/typing' \  -H 'Authorization: Bearer mosc_...' \  -H 'Content-Type: application/json' \  -d '{  "to": {    "contactId": 42  }}'

Example response

{  "status": "accepted",  "contactId": 42}