---
title: "Create Workspace Api Key"
method: POST
path: "/api/admin/workspaces/{workspace_id}/api-keys"
tags: ["admin-workspaces"]
---

# Create Workspace Api Key

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

## Path parameters

- `workspace_id` string, required

## Request body

- CreateApiKeyRequest
  - `description` string, nullable
  - `make_default` boolean

## Response `201`

Successful Response

- CreateApiKeyResponse
  - `id` string, required
  - `key` string, required
  - `description` string, nullable
  - `is_default` boolean, required
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/outcallerai/apis/fastapi.md) · [All operations](https://skmtc.net/outcallerai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/outcallerai/fastapi/versions/2e4355d35497/schema)
