v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1494674591.3 KB

Retrieves next message on an Amazon Q in Connect session.

get/assistants/{assistantId}/sessions/{sessionId}/messages/next#nextMessageToken

Path parameters

assistantIdstring required

The identifier of the Amazon Q in Connect assistant.

sessionIdstring required

The identifier of the Amazon Q in Connect session.

Query parameters

nextMessageTokenstring required

The token for the next message. Use the value returned in the SendMessage or previous response in the next request to retrieve the next message.

Response

Success

type'TEXT' | 'TOOL_USE_RESULT' required

The type of message response.

requestMessageIdstring required

The identifier of the submitted message.

nextMessageTokenstring

The token for the next message.

chunkedResponseTerminatedboolean

Indicates whether the chunked response has been terminated.