---
title: "Compensate keys"
method: POST
path: "/api/v1/keys/compensate"
tags: ["Keys"]
---

# Compensate keys

`POST /api/v1/keys/compensate`

Extends the expriration time of a key

## Headers

- `Authentication` string, required

## Request body

- ModelsCompensateKeysRequest — Request body for extending key expiration times
  - `duration` integer, required
  - `key` string

## Response `200`

Compensation result

- object

## Other responses

- `400` — Invalid request
- `404` — No keys matched

---

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