---
title: "Create Api Key"
method: POST
path: "/api/v1/mcp/api-keys"
tags: ["MCP Keys"]
---

# Create Api Key

`POST /api/v1/mcp/api-keys`

## Request

- Base URL: `https://foto.damdafa.com/dreamhome`
- URL: `https://foto.damdafa.com/dreamhome/api/v1/mcp/api-keys`
- Auth: HTTP bearer

Creates a new MCP API key for the authenticated user.

## Headers

- `ProviderId` 'firebase' | 'google' | 'apple'
- `X-Provider-Id` 'firebase' | 'google' | 'apple'
- `X-Device-Id` string, nullable

## Request body

- ApiKeyCreateRequest
  - `name` string, required: A friendly name for the API key

## Response `200`

Successful Response

- ApiKeyResponse
  - `id` string, required
  - `key` string, required: The actual API key. Usually only shown once.
  - `name` string, required
  - `userId` string, required
  - `createdAt` string, date-time, required
  - `isActive` boolean, required

## Other responses

- `401`: Unauthorized
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/damdafa/apis/homedecor-api.md) · [All operations](https://skmtc.dev/damdafa/apis/homedecor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/damdafa/apis/homedecor-api/revisions/372f33a6d18e?raw)
