---
title: "Record that the caller opened this agent"
method: POST
path: "/table-enrichments/saved-agents/{saved_agent_id}/viewed/"
tags: ["table-enrichments"]
---

# Record that the caller opened this agent

`POST /table-enrichments/saved-agents/{saved_agent_id}/viewed/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/table-enrichments/saved-agents/{saved_agent_id}/viewed/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Note that the CALLING USER just opened this agent, which is what feeds their Recent on the Agents list. Best-effort: clients fire it on open and ignore the result. Never touches the star: opening an agent says nothing about whether the person wants it starred.

## Path parameters

- `saved_agent_id` string, uuid, required

## Response `200`

Successful Response

- SavedAgentUserPrefsReadSchema: The asking person's own star and last open of one saved agent.
  - `favorite` boolean, required: Whether this person starred the agent.
  - `last_viewed_at` string, date-time, nullable, required: When this person last opened the agent; null means never.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Saved agent not found
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
