---
title: "POST /internal/hosting/login-token/create"
method: POST
path: "/internal/hosting/login-token/create"
tags: ["auth"]
---

# POST /internal/hosting/login-token/create

`POST /internal/hosting/login-token/create`

Create the server-side token behind a private docs magic link. The hosting service emails the returned token as the link secret.

## Request body

- object
  - `email` string, email, required
  - `host` string, required
  - `redirect` string
  - `loginPortalUid` string

## Response `200`

Default Response

- object
  - `token` string, required
  - `exp` number, required

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

---

[API](https://skmtc.dev/scalar/apis/core.md) · [All operations](https://skmtc.dev/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalar/core/revisions/8586b0646aa3/schema)
