---
title: "Create a short-lived WebSocket upgrade ticket"
method: POST
path: "/auth/ws-ticket"
tags: ["auth"]
---

# Create a short-lived WebSocket upgrade ticket

`POST /auth/ws-ticket`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/auth/ws-ticket`
- Auth: none required

Returns a one-time token used to authenticate a WebSocket connection

## Response `200`

WebSocket ticket created

- object
  - `ticket` string
  - `expiresAt` string, date-time

## Other responses

- `401`: Unauthorized

## Changes

- **2026-04-18** `518dcf68679a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/auth/ws-ticket/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
