agents

Preview Raw Payload

Inspect the raw LLM request payload without sending it.

This endpoint processes the message through the agent loop up until the LLM request, then returns the raw request payload that would be sent to the LLM provider. Useful for debugging and inspection.

post/v1/agents/{agent_id}/messages/preview-raw-payload

Path parameters

agent_idstring required

Request body

OR

Response

Successful Response

object required

Changes

Changed in 1 of the 36 revisions of this API.6

    • added the new optional request property anyOf[subschema #1: LettaRequest]/messages/items/anyOf[subschema #1: MessageCreate]/content/anyOf[subschema #1]/items/oneOf[subschema #1: TextContent]/signature

      new-optional-request-property

    • added the new optional request property anyOf[subschema #1: LettaRequest]/messages/items/anyOf[subschema #1: MessageCreate]/content/anyOf[subschema #1]/items/oneOf[subschema #3: ToolCallContent]/signature

      new-optional-request-property

    • added the new optional request property anyOf[subschema #1: LettaRequest]/messages/items/anyOf[subschema #1: MessageCreate]/content/anyOf[subschema #1]/items/oneOf[subschema #7: OmittedReasoningContent]/signature

      new-optional-request-property

    • added the new optional request property anyOf[subschema #2: LettaStreamingRequest]/messages/items/anyOf[subschema #1: MessageCreate]/content/anyOf[subschema #1]/items/oneOf[subschema #1: TextContent]/signature

      new-optional-request-property

    • added the new optional request property anyOf[subschema #2: LettaStreamingRequest]/messages/items/anyOf[subschema #1: MessageCreate]/content/anyOf[subschema #1]/items/oneOf[subschema #3: ToolCallContent]/signature

      new-optional-request-property

    • added the new optional request property anyOf[subschema #2: LettaStreamingRequest]/messages/items/anyOf[subschema #1: MessageCreate]/content/anyOf[subschema #1]/items/oneOf[subschema #7: OmittedReasoningContent]/signature

      new-optional-request-property