---
title: "Update API key expiry"
method: POST
path: "/v1/manage/apikey/{id}/expiry"
---

# Update API key expiry

`POST /v1/manage/apikey/{id}/expiry`

Update the expiry date for an API key. If expires_at is not set or is null, the current expiry will be removed, making the API key non-expiring.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateExpiryRequest
  - `expires_at` string, date-time — Expiry date in RFC3339 format (e.g., 2025-12-31T23:59:59Z). If not set or null, the current expiry will be removed, making the API key non-expiring.

## Response `204`

Expiry updated successfully

## Other responses

- `400` — Bad request - malformed payload or invalid parameters.
- `401` — Unauthorized - missing or empty Authorization header.
- `402` — Payment required - organization balance exhausted.
- `403` — Forbidden - invalid token or model not in access list.
- `404` — Not found - provider/model not supported.
- `429` — Rate limit exceeded. Retry after the Retry-After header value.
- `500` — Internal server error.
- `502` — Bad gateway - upstream provider returned an invalid response.

---

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