Sign in

Create User Token

documented

Create a temporary authentication token for a user.

POST /api/v1/users.createTokenUser Managementno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://rocket.chat/api/v1/users.createToken" \
  -X POST \
  -H "X-Auth-Token: {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-User-Id: {{OAUTH2_USER_ID}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"userId": "{{$target_user_id}}", "secret": "{{$CREATE_TOKENS_FOR_USERS_SECRET}}"}'