---
title: "Record that the caller opened this table"
method: POST
path: "/tables/{table_id}/viewed/"
tags: ["table-user-prefs"]
---

# Record that the caller opened this table

`POST /tables/{table_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/tables/{table_id}/viewed/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Note that the CALLING USER just opened this table, which is what feeds their recently-opened list. Best-effort: clients fire it on open and ignore the result. Never touches the starred flag: opening a table says nothing about whether the user wants it starred.

## Path parameters

- `table_id` string, uuid, required

## Response `200`

Successful Response

- TableUserPrefsReadSchema: One user's relationship with one table. Per-USER: two people in the same organisation are meant to disagree about what they have starred.
  - `is_favorite` boolean, required: Whether this user starred the table.
  - `last_viewed_at` string, date-time, nullable, required: When this user last opened the table; null means never.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Table 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)
