Post a chat message
POST/admin/chat_sessions/:id/chat_messages
Post a new chat message in the current session on behalf of a coach user.
Channels supported:
- APP: Send message to participant via in-app messaging (ChannelID 1)
- EMAIL: Send message to participant via email. Not shown in the chat (ChannelID 4)
- SMS: Send message to participant via SMS (ChannelID 5)
- CARD: Send message to participant via a card message in App (ChannelID 6)
- PUSH_NOTIFICATION_ONLY: Send message to participant via push notification. Not shown in the chat (ChannelID 7)
'subject' should be included for EMAIL and PUSH_NOTIFICATION_ONLY channels.
Request
Responses
- 201
- 400
- 401
- 409
- 422
- 500
Created
Response Headers
Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Cache-Control
Content-Type
Bad Request
Unauthorized
Conflict
Unprocessable Entity
Internal Server Error