Update one-time token 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 The unique identifier of the one time token.
PUT
/api/one-time-tokens/{id}/status
curl \
--request PUT 'https://[tenant_id].logto.app/api/one-time-tokens/{id}/status' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"status":"active"}'
Request examples
{
"status": "active"
}
Response examples (200)
{
"tenantId": "string",
"id": "string",
"email": "string",
"token": "string",
"context": {
"jitOrganizationIds": [
"string"
]
},
"status": "active",
"createdAt": 42.0,
"expiresAt": 42.0
}