---
title: "Create Partner User API Key"
method: POST
path: "/api/organizations/{org_id}/users/{id}/keys"
tags: ["Users"]
---

# Create Partner User API Key

`POST /api/organizations/{org_id}/users/{id}/keys`

Issues a new API key for the specified user.

> 🚧 The API key value is only included in the response at creation time and
> cannot be retrieved again. Store it securely immediately after creation.

## Path parameters

- `org_id` string, uuid, required — Unique identifier of the organization the user belongs to.
- `id` string, uuid, required — Unique identifier of the user the key will be issued for.

## Query parameters

- `force` boolean — If true, revoke any existing API key for the user before creating a new one.

## Headers

- `X-Polytomic-Version` string

## Response `200`

OK

- APIKeyResponseEnvelope
  - `data` APIKeyResponse
    - `value` string — Newly created API key. This value is shown only once; store it securely.

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.dev/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/revisions/6c3b7c51e463/schema)
