---
title: "Generate portal token for customer (deprecated)"
method: POST
path: "/v1/workspaces/{workspaceId}/portal/token"
tags: ["portal"]
deprecated: true
---

# Generate portal token for customer (deprecated)

`POST /v1/workspaces/{workspaceId}/portal/token`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/workspaces/{workspaceId}/portal/token`
- Auth: HTTP bearer

> **Deprecated.**

Deprecated: Use /brands/:brandId/portal/token instead.

## Path parameters

- `workspaceId` string, required

## Request body

- GeneratePortalTokenDto

## Response `201`

Portal token generated

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/529e6717d295?raw)
