---
title: "Rename an API key"
method: PATCH
path: "/api/v1/keys/{id}"
tags: ["Account"]
---

# Rename an API key

`PATCH /api/v1/keys/{id}`

## Request

- Base URL: `https://verifly.email`
- URL: `https://verifly.email/api/v1/keys/{id}`
- Auth: HTTP bearer

Rename an API key. Body {name} is required.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, required

## Response `200`

Key renamed.

- object
  - `success` boolean
  - `message` string
  - `key` ApiKey
    - `id` string
    - `prefix` string
    - `name` string, nullable
    - `active` boolean
    - `created_at` string, date-time
    - `last_used_at` string, date-time, nullable

## Other responses

- `400`: Invalid request or invalid input.
- `401`: Missing or invalid API key.
- `404`: Resource not found or not owned by the authenticated account.

---

[API](https://skmtc.dev/verifly/apis/verifly-email-verification-api.md) · [All operations](https://skmtc.dev/verifly/apis/verifly-email-verification-api/llms.txt) · [OpenAPI document](https://skmtc.dev/verifly/apis/verifly-email-verification-api/revisions/9b2787c04363?raw)
