---
title: "Get Ai Config Recent Activity"
method: GET
path: "/api/agents/{agent_id}/ai-config/{op_key}/recent-activity"
tags: ["agents"]
---

# Get Ai Config Recent Activity

`GET /api/agents/{agent_id}/ai-config/{op_key}/recent-activity`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agents/{agent_id}/ai-config/{op_key}/recent-activity`
- Auth: none declared

The trust loop: proof that this operation's config actually did
something, not just that it was saved (TOS-1281 Task 6).

Same read-visibility gate as `GET .../ai-config`. Deliberately NOT part of
that sheet response - it queries `model_runs` (the newest row for this
agent's `identity_id` + the op's mapped `capability`) on demand, called by
the frontend on row-expand, so the sheet GET's own bounded query count is
untouched. Returns an all-null row when `op_key` has no discoverable
capability mapping (`capability_for_op`) or when no run has landed yet.
`params_summary` never echoes the raw `model_runs.raw_request` - only the
keys already declared editable for the op's currently resolved model.

## Path parameters

- `agent_id` string, uuid, required
- `op_key` string, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Response `200`

Successful Response

- AiConfigRecentActivityResponse: TOS-1281 Task 6: the trust-loop read for one operation. All four fields are `None` together when the op_key has no discoverable `model_runs.capability` mapping, or when it does but no run has landed yet - the UI hides the "recent activity" line in either case.
  - `at` string, nullable, required
  - `provider` string, nullable, required
  - `model_id` string, nullable, required
  - `params_summary` object, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/ce2c2ce318b1?raw)
