You are currently viewing 'Get Chat Message ' page



Usage

GET /Chat/Message/:DistrictId/:ChatMessageId

Content-Type

application/json

Description

Returns the chat information for the specified ID.

Note

Put the access token generated from the Get Access Token endpoint (Auth/ValidateUser) in the request header field "Authorization" as "bearer ACCESS_TOKEN_HERE". Sample request URL used when GET request is made
/Chat/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000

Example

Type Name Required Note
URL District ID YES District ID of user
URL Chat Message ID YES ID of Chat Message
Sample response 1:

{
"chatMessageId": "d2c4473a-07d5-4644-91c7-32bd22c3ae16",
"chatId": "4f8df05c-0d35-4fe1-b772-62e15a03f910",
"messageText": "Injury Created by Brian Mann",
"createdDate": "2018-07-02T14:11:49.3157334-05:00",
"messageCreatedByName": "Brian Mann",
"createdByRecipientId": "3ee3fde1-4e9b-46f0-b055-c3aeca80da34"
}


Sample response 2:

{
"chatMessageId": "d2c4473a-07d5-4644-91c7-32bd22c3ae16",
"chatId": "4f8df05c-0d35-4fe1-b772-62e15a03f910",
"messageText": "Injury Created by Brian Mann",
"files": [
{
"fileId": "bd060dca-4949-4f0e-bd84-db3967512f34"
},
]
"createdDate": "2018-07-02T14:11:49.3157334-05:00",
"messageCreatedByName": "Brian Mann",
"createdByRecipientId": "3ee3fde1-4e9b-46f0-b055-c3aeca80da34"
}