---
title: "Generate a one-time JSON Web Token for authentication on the platform"
method: POST
path: "/users/{user_id}/one-time-token"
tags: ["users"]
---

# Generate a one-time JSON Web Token for authentication on the platform

`POST /users/{user_id}/one-time-token`

You need `tenants.user.generate_one_time_token` permission to access resource

## Path parameters

- `user_id` string, required

## Response `200`

OK

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
