---
title: "Create Psr"
method: POST
path: "/create_psr"
---

# Create Psr

`POST /create_psr`

The InsureCare API: Medline posts a supply request, we create the order.

The body is taken as a plain dict rather than a typed `CreatePSR` so that
validation stays in `create_psr_common`: Medline's published contract answers
a bad payload with the `CreatePSRResponse` envelope, which FastAPI's own 422
would replace, and the raw request is logged before validation runs. A dict
(not `Any`) because FastAPI hands the parameter raw bytes when the content
type isn't JSON, which the logging of the body can't serialize.

The api-key check is skipped in development so the endpoint can be exercised
locally without the shared secret.

## Headers

- `x-api-key` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/versemedical/apis/fastapi.md) · [All operations](https://skmtc.dev/versemedical/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/versemedical/fastapi/revisions/2fa122a248bb/schema)
