---
title: "Attach a page snapshot to a step's report"
method: POST
path: "/linkedin/agent/actions/{action_id}/diagnostic/"
tags: ["linkedin"]
---

# Attach a page snapshot to a step's report

`POST /linkedin/agent/actions/{action_id}/diagnostic/`

## 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/linkedin/agent/actions/{action_id}/diagnostic/`
- Auth: API key in header `X-API-Key`

The heavy half of a page report, posted after the step's result has landed: the structure of the part of LinkedIn's page the browser was reading (tags, a few attributes, icon names, text lengths, never text) and how many elements each selector candidate matched there. Cleaned again on arrival and kept only when it adds evidence. Never refused for its content, so a report can never cost a result.

## Path parameters

- `action_id` string, uuid, required

## Request body

- object

## Response `200`

Successful Response

- AgentDiagnosticStoredSchema: Whether a page snapshot was kept.
  - `stored` boolean, required: False when there was no report to attach it to, or a recent one already carries the same evidence.

## Other responses

- `401`: The agent token is invalid, revoked, or expired.
- `403`: Forbidden
- `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)
