feat(agent): expose chat history with existing chat scope (#6443)

Co-authored-by: Raul <9117159+raultcj@users.noreply.github.com>
This commit is contained in:
Raul Juarez
2026-10-23 13:18:49 -06:00
committed by GitHub
co-authored by Raul
parent 01566b158e
commit b4ae7ebcc4
6 changed files with 167 additions and 3 deletions
@@ -100,6 +100,14 @@ python3 integrations/codex/scripts/odysseus_api.py POST /api/codex/memory '{"tex
- `POST /api/codex/documents` — body `{"session_id": "...", "title": "...", "content": "...", "language": "markdown"}`. Requires `documents:write`.
- `DELETE /api/codex/documents/{doc_id}` — delete a document. Requires `documents:write`.
## Chat history
- `GET /api/codex/chat/{session_id}?offset=0&limit=100` — read a paginated conversation transcript owned by the token owner. Requires the existing `chat` scope.
```bash
python3 integrations/codex/scripts/odysseus_api.py GET /api/codex/chat/SESSION_ID
```
## Email draft + send
- Prefer `POST /api/codex/emails/draft-document` for Codex-written email replies. It creates an editable Odysseus Document with `language: "email"` and does not touch IMAP/send.