---
title: "Get message details"
method: GET
path: "/chat/message/{messageId}"
tags: ["API: Streaming Messaging"]
---

# Get message details

`GET /chat/message/{messageId}`

Used for retrieval of references and other details of a message. Primarily used after streaming has been completed in order to retrieve id of the answer and references.

## Path parameters

- `messageId` string, uuid, required

## Response `200`

Details of a message.

- GenerateMessageAnswerResponse
  - `conversationId` string, uuid — ID of the chat conversation/thread.
  - `messageId` string, uuid — ID of the message record that was created.
  - `answerContent` string, text — Content of the answer that was generated.
  - `answerMessageId` string, text — Message ID for the associated generated answer. Use this to fetch suggested questions, references, details.
  - `references` object[]
    - `id` string, uuid — ID of the reference record.
    - `contentId` string, uuid — ID of the parent content record from which the reference were generated. Useful in case of multiple references being generated from the same content record, in case deduplication is needed.
    - `relevanceRank` integer — Rank of relevance of the reference to the generated answer content.
    - `source` 'YOUTUBE' | 'VIMEO' | 'WEBSITE' | 'VIDEO' | 'SPOTIFY' — Source of the content to be used for handling its display to the user.
    - `title` string — Title of the main/source media.
    - `url` string, url
    - `text` string — Text of the referenced section's content.
    - `thumbnailUrl` string, url
    - `urlContentId` string — Original ID of the media from the given source. It can be used to generate an iframe/embed url when displaying the content from the reference.
    - `timeSeconds` number, float — Optional time location seconds of the content. If it's null or undefined, then it's a text document without timestamps.
    - `footnoteId` string — ID of a footnote used within the answer, useful to display additional information when inline references are being used.

## Other responses

- `422` — Some or all of the received payload is unprocessable.
- `500` — Internal server error

---

[API](https://skmtc.dev/sentiyen/apis/sentiyen-api-v3.md) · [All operations](https://skmtc.dev/sentiyen/apis/sentiyen-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sentiyen/sentiyen-api-v3/revisions/8ce4e621146e/schema)
