---
title: "Get Messages"
method: POST
path: "/get-messages"
---

# Get Messages

`POST /get-messages`

Retrieve the entire message history for a given agent session.  
Messages include user messages, the agent’s internal thoughts, agent responses, and tool
usage records.

## Query parameters

- `session` string, required

## Response `200`

An array of message objects from the session.

- Message[]
  - `type` string, required — Type of the message (e.g., user_message, agent_thinking, agent_response, agent_tool_use).
  - `content` string, required — The textual content of the message.

---

[API](https://skmtc.dev/agentbasehq/apis/agentbase-agents-api.md) · [All operations](https://skmtc.dev/agentbasehq/apis/agentbase-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentbasehq/agentbase-agents-api/revisions/c12be3e0fb0d/schema)
