---
title: "Export User Llm Payloads"
method: GET
path: "/api/admin/users/{user_id}/llm-payloads"
tags: ["admin"]
---

# Export User Llm Payloads

`GET /api/admin/users/{user_id}/llm-payloads`

Download the captured LLM request payloads for one user.

Returns the previous-era and current-era payload snapshots stored
by ``llm_payload_capture`` for users who have toggled
``data_sharing_consent``. Non-consenting users are not captured in
the first place, so 404 is returned both when no row exists and
when the user has revoked consent (which deletes the row).

Response is served with ``Content-Disposition: attachment`` so the
admin frontend can drop it to disk for offline analysis without
rendering the JSON in-page.

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/clawbolt.md) · [All operations](https://skmtc.net/mozilla-ai/apis/clawbolt/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/clawbolt/revisions/0e52fe5f8d33/schema)
