---
title: "Create Api Key"
method: POST
path: "/api/workspaces/{workspace_id}/keys"
---

# Create Api Key

`POST /api/workspaces/{workspace_id}/keys`

## Request

- Base URL: `https://api.crowelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.crowelogic.com/api/workspaces/{workspace_id}/keys`
- Auth: none declared

## Path parameters

- `workspace_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- ApiKeyCreate
  - `label` string
  - `scopes` string[]

## Response `201`

Successful Response

- ApiKeyResponse
  - `id` string, required
  - `key` string, required
  - `key_prefix` string, required
  - `label` string, required
  - `scopes` string[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry.md) · [All operations](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/llms.txt) · [OpenAPI document](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/revisions/a3c1ef17f171?raw)
