> ## Documentation Index
> Fetch the complete documentation index at: https://docs.genviral.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Analytics Target

> Fetch detail + summary for one tracked analytics target

Returns a single analytics target plus its summary data (profile, totals, timeline,
top posts, and refresh status).

## Path Parameters

<ParamField path="id" type="string" required>
  Analytics target ID.
</ParamField>

<Note>
  Use [Update Analytics Target](/api-reference/update-analytics-target) to update
  target settings and [Delete Analytics Target](/api-reference/delete-analytics-target)
  to remove a target.
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url https://www.genviral.io/api/partner/v1/analytics/targets/e7a7f417-56db-4320-9e9a-fd6fdabda09d \
    --header 'Authorization: Bearer <token>'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "ok": true,
    "code": 200,
    "message": "Analytics target retrieved",
    "data": {
      "target": {
        "id": "e7a7f417-56db-4320-9e9a-fd6fdabda09d",
        "platform": "tiktok",
        "identifier": "@brand",
        "display_name": "Brand HQ"
      },
      "summary": {
        "profile": {},
        "totals": {},
        "timeline": [],
        "topPosts": [],
        "latestRefresh": null
      }
    }
  }
  ```
</ResponseExample>

## Error Responses

* `400 missing_target_id` - missing path parameter
* `404` - target not found in current key scope
* `401`/`403` - authentication failed or key lacks workspace access
* `500` - unexpected database/analytics service error

All error responses from analytics endpoints include an `error_code` field.
