---
title: "POST /api/rep/dashboard/medications/configure"
method: POST
path: "/api/rep/dashboard/medications/configure"
tags: ["Rep Dashboard"]
---

# POST /api/rep/dashboard/medications/configure

`POST /api/rep/dashboard/medications/configure`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/rep/dashboard/medications/configure`
- Auth: API key in cookie `authjs.session-token`

Configure medication automation (auto thresholds, referral locations). Pro required

## Request body

- object
  - `medicationIds` string[], required
  - `auto` object
    - `ltdMin` integer, required
    - `ltdMax` integer, required
  - `refer` object, nullable
    - `pharmacyIds` string[], required

## Response `200`

Medication configured

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Pro plan required

---

[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)
