---
title: "Generate a login token"
method: POST
path: "/auth/login-token"
tags: ["Auth"]
---

# Generate a login token

`POST /auth/login-token`

Generate a login token. If the visitor is already logged into a XenForo account, they will not be logged into the specified account. Only available to super user keys.

## Response `200`

OK

- object
  - `login_token` string
  - `login_url` string — Direct user to this URL to trigger a login
  - `expiry_date` integer — Unix timestamp of when the token expires. An error will be displayed if the token is expired or invalid

## Other responses

- `default` — Error

---

[API](https://skmtc.net/xenforo-ltd/apis/xenforo-api.md) · [All operations](https://skmtc.net/xenforo-ltd/apis/xenforo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xenforo-ltd/xenforo-api/revisions/b15eba33657a/schema)
