---
title: "POST /api/protected/user/report"
method: POST
path: "/api/protected/user/report"
tags: ["User"]
---

# POST /api/protected/user/report

`POST /api/protected/user/report`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/protected/user/report`
- Auth: API key in cookie `authjs.session-token`

Submit a medication status report (in-stock or out-of-stock). Sending the same status again clears it. A native app sends `x-idkrx-client` instead of a Turnstile token and is rate limited per account.

## Headers

- `x-idkrx-client` 'ios'

## Request body

- union
  - object
    - `pId` string, required
    - `dId` string, required
    - `df` string
    - `da` string
    - `turnstileToken` string
    - `analytics` object
      - `visitorId` string
      - `sessionId` string
      - `attribution` object
        - `utmSource` string
        - `utmMedium` string
        - `utmCampaign` string
        - `utmContent` string
        - `clickIdSource` 'tiktok' | 'meta'
        - `clickId` string
    - `st` 'av' | 'li', required
    - `pr` number
    - `ra` number
    - `i` string
    - `mId` string
  - object
    - `pId` string, required
    - `dId` string, required
    - `df` string
    - `da` string
    - `turnstileToken` string
    - `analytics` object
      - `visitorId` string
      - `sessionId` string
      - `attribution` object
        - `utmSource` string
        - `utmMedium` string
        - `utmCampaign` string
        - `utmContent` string
        - `clickIdSource` 'tiktok' | 'meta'
        - `clickId` string
    - `st` 'un', required
    - `exp` string
    - `ds` 'ps' | 'pdk' | 'idk'

## Response `200`

Report filed or cleared

- ReportSubmitResult
  - `undo` boolean, required
  - `attemptsUsed` integer, required
  - `maxAttempts` integer, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Outside the served country, or out of attempts for this dosage here
- `429`: Too many reports from this account
- `500`: Internal error

---

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