---
title: "Retrieves API tokens that are about to expire"
method: GET
path: "/api/v1/apitoken/expiring"
tags: ["API Token"]
---

# Retrieves API tokens that are about to expire

`GET /api/v1/apitoken/expiring`

Returns a list of API tokens that will expire within the configured number of days.

For admin users, returns all expiring tokens from all users.
For limited users, returns only their own expiring tokens.

The number of days to look ahead can be configured via the EXPIRING_TOKEN_LOOKAHEAD_DAYS property (default: 7).

## Response `200`

Expiring API tokens successfully retrieved

## Other responses

- `401` — Invalid user
- `403` — Forbidden
- `500` — Unexpected server error

---

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