---
title: "Returns the expiration (UTC) of the authenticated Auth key (or null if none set)"
method: GET
path: "/api/Plugin/authkey-expires"
tags: ["Plugin"]
---

# Returns the expiration (UTC) of the authenticated Auth key (or null if none set)

`GET /api/Plugin/authkey-expires`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Plugin/authkey-expires`
- Auth: API key in header `x-api-key`

Will always return null if the Auth Key does not belong to this account

## Response `200`

OK

- AuthKeyExpiresAtDto
  - `expiresAt` string, date-time, nullable, required

## Changes

- **2026-03-19** `1acacd51149a`: 1 breaking, 3 info
  - the response's body type changed from `string` to `object`, and format from `date-time` to no format for status `200` (media type: application/json)
  - added the required property `expiresAt` to the response with the `200` status (media type: text/plain)
  - added the required property `expiresAt` to the response with the `200` status (media type: application/json)
  - added the required property `expiresAt` to the response with the `200` status (media type: text/json)
- **2026-01-18** `226b1b545fc6`: 1 warning
  - deleted the `query` request parameter `authKey`
- **2025-12-13** `ba8553c39654`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Plugin/authkey-expires/get.md)

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
