Cortex icon

Cortex

Interact with Cortex API

Conversation → Get History

AI-generated

Summary

Retrieve the message history for a specific conversation with optional pagination.

Inputs

  • Conversation ID (required) — The UUID of the conversation whose message history to retrieve.
  • Limit — The maximum number of messages to retrieve, between 1 and 100 (default 20).
  • Before (ISO Timestamp) — An ISO timestamp to paginate messages before this datetime.

Output shape

a JSON array of message objects representing the conversation's message history.

The output contains an array of messages retrieved from the Cortex API; pagination support is available via the 'Before' timestamp parameter to fetch earlier messages. Errors are returned as JSON error messages if the request fails and "Continue On Fail" is enabled.

Links

Discussion