Skip to content
Navigation

Get chat history

Get chat history.

Each returned message carries a created_at derived from the LangGraph checkpoint that first contained it — clients use this for stable display timestamps instead of stamping fetch time. Falls back to None when the originating checkpoint cannot be resolved (very rare; treat as unknown on the client and render a fallback there).

POST
https://truememory-api.mvstg.com/history
View as Markdown

Authorization

  • HTTPBearerHTTPrequired

Header parameters

  • x-app-idoptional

    Application ID for scoping threads

    One of the following:

    • string
    • null
  • X-On-Behalf-Ofoptional

    One of the following:

    • string
    • null
  • X-External-User-Idoptional

    One of the following:

    • string
    • null
  • X-App-Idoptional

    One of the following:

    • string
    • null

Request bodyJSONrequired

  • thread_idstringrequired

    Thread ID to persist and continue a multi-turn conversation.

Returns

200

Successful Response

JSON
  • messagesarray ofobjectrequired
    • typehumanoraiorsystemortoolorcustomrequired

      Role of the message.

    • contentstringrequired

      Content of the message.

    • tool_callsoptionalarray ofobject

      Tool calls in the message.

      default: []
      • idstringrequired
      • typestringrequired
      • functionobjectrequired

        Function call details (OpenAI chat completions format).

        • namestringrequired
        • argumentsstringrequired
    • tool_call_idoptional

      Tool call that this message is responding to.

      One of the following:

      • string
      • null
    • run_idoptional

      Run ID of the message.

      One of the following:

      • string
      • null
    • response_metadataoptionalobject

      Response metadata. For example: response headers, logprobs, token counts.

      default: {}
    • custom_dataoptionalobject

      Custom message data.

      default: {}
    • metadataoptional

      Up to 16 key-value pairs attached to the message. Keys max 64 chars, values max 512 chars.

      One of the following:

      • map<string>
      • null
    • created_atoptional

      UTC timestamp of when the message was first persisted to the thread, derived from the LangGraph checkpoint that first contained this message. Null for messages whose origin checkpoint is not available.

      One of the following:

      • string
      • null

422

Validation Error
JSON
  • detailoptionalarray ofobject
    • locarray ofrequired

      One of the following:

      • string
      • integer
    • msgstringrequired
    • typestringrequired
    • inputoptionalunknown
    • ctxoptionalobject

Type to search…

↑↓ navigate↵ selectEsc close