---
title: "Expire API key"
method: PUT
path: "/api/v2/users/{user}/keys/{keyid}/expire"
tags: ["Users"]
---

# Expire API key

`PUT /api/v2/users/{user}/keys/{keyid}/expire`

## Path parameters

- `user` string, required
- `keyid` string, string, required

## Response `204`

No Content

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
