---
title: "Update API key."
method: PUT
path: "/project/v1/api-keys/{id}"
tags: ["api-keys"]
---

# Update API key.

`PUT /project/v1/api-keys/{id}`

Update API key settings.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string — Updated name for the API key
  - `domains` string[] — Updated allowed domains
  - `active` boolean — Whether the API key is active

## Response `200`

Default Response

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

## Other responses

- `404` — Default Response

## Changes

- **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/:id/put.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/364ec0aeb973/schema)
