---
title: "Create Api Key"
method: POST
path: "/dropship/api-key"
tags: ["dropship"]
---

# Create Api Key

`POST /dropship/api-key`

Self-service API key generation and rotation for an approved account.

The key is returned exactly once; afterwards only its existence is
reported (has_api_key). If a key already exists, the caller must pass
rotate=true — the old key stops working immediately. Admin approval of
the account (not key possession) is what gates API access: /v1 rejects
any non-approved account even with a valid key.

## Request body

- DropshipApiKeyRequest
  - `rotate` boolean

## Response `201`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

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