---
title: "Ws Ticket"
method: POST
path: "/api/auth/ws-ticket"
tags: ["auth"]
---

# Ws Ticket

`POST /api/auth/ws-ticket`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/auth/ws-ticket`
- Auth: HTTP bearer

A one-minute ticket for opening this person's WebSockets.

The dashboard used to hand page JavaScript the 30-day session itself
(GET /api/auth/ws-token returned the httpOnly cookie). The ticket works
only where a WebSocket is opened, and the REST API refuses it.

## Response `200`

Successful Response

- object

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
