---
title: "Update one-time token status"
method: PUT
path: "/api/one-time-tokens/{id}/status"
tags: ["One-time tokens"]
---

# Update one-time token status

`PUT /api/one-time-tokens/{id}/status`

Update the status of a one-time token by its ID. This can be used to mark the token as consumed or expired.

## Path parameters

- `id` string, required

## Request body

- object
  - `status` 'active' | 'consumed' | 'revoked' | 'expired', required — The new status of the one-time token.

## Response `200`

The one-time token status was updated successfully.

- object
  - `tenantId` string, required
  - `id` string, required
  - `email` string, required
  - `token` string, required
  - `context` object, required
    - `jitOrganizationIds` string[]
    - `interactionEvent` 'SignIn' | 'Register' | 'ForgotPassword'
  - `status` 'active' | 'consumed' | 'revoked' | 'expired', required
  - `createdAt` number, required
  - `expiresAt` number, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

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