---
title: "Create API key"
method: POST
path: "/auth/keys"
tags: ["auth"]
---

# Create API key

`POST /auth/keys`

## Request

- Base URL: `https://api.source.parts/v1`
- URL: `https://api.source.parts/v1/auth/keys`
- Auth: HTTP bearer

## Request body

- KeyCreateRequest
  - `name` string, required
  - `description` string
  - `scopes` string[]

## Response `201`

API key created

- KeyCreateResponse
  - `status` string
  - `data` object
    - `id` string
    - `apiKey` string
    - `key_prefix` string

---

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