---
title: "List Messages"
method: GET
path: "/api/sourcing/messages/{session_id}"
tags: ["Sourcing"]
---

# List Messages

`GET /api/sourcing/messages/{session_id}`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/sourcing/messages/{session_id}`
- Auth: HTTP bearer

Get all messages for a sourcing chat session.

## Path parameters

- `session_id` string, required

## Response `200`

Successful Response

- MessageOut[]
  - `id` string, required
  - `role` string, required
  - `content` string, required
  - `metadata` object, nullable
  - `created_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flagpost/apis/flagpost-api.md) - [All operations](https://skmtc.dev/flagpost/apis/flagpost-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flagpost/apis/flagpost-api/revisions/0308cef485ca?raw)
