---
title: "Set Api Key Expiry"
method: PATCH
path: "/api/v1/users/api-key/expiry"
tags: ["Users"]
---

# Set Api Key Expiry

`PATCH /api/v1/users/api-key/expiry`

Set or remove API key expiry. Pass expires_in_days=null to remove.

## Request body

- SetApiKeyExpiryRequest
  - `expires_in_days` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/humwork/apis/humwork-ai.md) · [All operations](https://skmtc.dev/humwork/apis/humwork-ai/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/humwork/humwork-ai/revisions/38d9dc5f27e6/schema)
