---
title: "Remember your chat with this agent in a workspace"
method: PUT
path: "/v1/personal-agents/{id}/chat"
tags: ["Agents"]
---

# Remember your chat with this agent in a workspace

`PUT /v1/personal-agents/{id}/chat`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/personal-agents/{id}/chat`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Saves which session in this workspace is your chat with the agent, so it can be reopened later. It only changes your own chat.

## Path parameters

- `id` string, required

## Request body

- SetPersonalAgentChat
  - `workspaceId` string, required
  - `sessionId` string, required

## Response `200`

Your saved chat.

- PersonalAgentChatResponse
  - `chat` PersonalAgentChat, nullable, required
    - `agentId` string, required
    - `workspaceId` string, required
    - `sessionId` string, required
    - `updatedAt` string, date-time, required

## Other responses

- `404`: Not found.

## Changes

- **2026-11-26** `bc0092687a7b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/personal-agents/:id/chat/put.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
