---
title: "Post Ui Context"
method: POST
path: "/api/v1/agents/{system}/{entity_id}/ui-context"
tags: ["v1", "Agent Chat", "agent-chat"]
---

# Post Ui Context

`POST /api/v1/agents/{system}/{entity_id}/ui-context`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/agents/{system}/{entity_id}/ui-context`
- Auth: none declared

Silently record which portal page/tab the user is looking at.

Writes LastValue ``viewer_page`` on the chat thread. Does not append a
HumanMessage and does not invoke the model.
For shop, thread is resolved from session (shop_id + user + instance_id).

## Path parameters

- `system` string, required
- `entity_id` string, required

## Request body

- UiContextRequest: Silent portal-view update: writes LastValue viewer_page, does not run the agent.
  - `instance_id` string, nullable
  - `viewer_page` object, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
