---
title: "Get session messages"
method: GET
path: "/api/v0/agent/sessions/{session_id}/messages"
tags: ["Agent"]
---

# Get session messages

`GET /api/v0/agent/sessions/{session_id}/messages`

Get all messages in an agent session.

## Path parameters

- `session_id` string, uuid, required

## Query parameters

- `after_sequence` integer, nullable — Only return messages with sequence_number greater than this value.

## Response `200`

Successful Response

- AgentMessageGetResponse[]
  - `id` string, uuid, required — The ID of the message.
  - `role` string, required — The role of the message sender. Options: 'user', 'assistant', 'tool'.
  - `content` string, nullable — The content of the message.
  - `tool_calls` object[], nullable — Tool calls for assistant messages.
  - `tool_call_id` string, nullable — Tool call ID for tool result messages.
  - `attachments` AgentAttachmentGetResponse[], nullable — Attachments on this message (images/files).
    - `id` string, uuid, required — The ID of the attachment.
    - `filename` string, required — Original filename.
    - `content_type` string, required — MIME type of the attachment.
    - `size_bytes` integer, required — File size in bytes.
    - `url` string, nullable — Signed URL for downloading the attachment.
  - `sequence_number` integer, required — Ordering sequence number.
  - `created_at` string, date-time, required — When the message was created.

## Other responses

- `422` — Validation Error

---

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