---
title: "Create API key."
method: POST
path: "/project/v1/api-keys"
tags: ["api-keys"]
---

# Create API key.

`POST /project/v1/api-keys`

Create a new API key for the project.

## Query parameters

- `projectId` string, required

## Request body

- object
  - `name` string, required — Name for the API key
  - `domains` string[] — Allowed domains for this API key

## Response `201`

Default Response

- object
  - `data` object
    - `id` string
    - `name` string
    - `key` string
    - `domains` string[]
    - `createdAt` string, date-time
    - `active` boolean

## Changes

- **2026-01-13** `343ccfa7da7d` — 1 breaking
  - added the new required `query` request parameter `projectId`
- **2025-12-09** `9c0284025bec` — 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added

[Change history](https://skmtc.dev/unlayer/apis/unlayer-api/changes/project/v1/api-keys/post.md)

---

[API](https://skmtc.dev/unlayer/apis/unlayer-api.md) · [All operations](https://skmtc.dev/unlayer/apis/unlayer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unlayer/unlayer-api/revisions/343ccfa7da7d/schema)
