---
title: "Create a Grepr API Key"
method: POST
path: "/v1/apikey"
tags: ["Grepr API Key"]
---

# Create a Grepr API Key

`POST /v1/apikey`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/apikey`
- Auth: API key in header `GREPR-API-KEY`

## Response `201`

API key created successfully

- GreprApiKey
  - `apiKey` string, required

## Other responses

- `401`: API key is invalid

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
