---
title: "Generates a secure single-use token for a QuickLink tied to a specific scheduled order."
method: POST
path: "/Sites/{siteId}/Quicklinks/{id}/Tokens"
tags: ["QuickLinks"]
---

# Generates a secure single-use token for a QuickLink tied to a specific scheduled order.

`POST /Sites/{siteId}/Quicklinks/{id}/Tokens`

The generated token is cryptographically secure and shown only once in the response.
Store it securely - it cannot be retrieved again. Tokens are tied to specific scheduled orders.

## Path parameters

- `siteId` integer, required
- `id` integer, required

## Request body

- QPilotCoreModelsDtoQuickLinksGenerateTokenRequestDto
  - `scheduledOrderId` integer, required
  - `expiredUtc` string, date-time, nullable

## Response `200`

Token generated successfully

- QPilotCoreModelsDtoQuickLinksGenerateTokenResponseDto
  - `tokenId` integer
  - `token` string, nullable
  - `url` string, nullable
  - `scheduledOrderId` integer
  - `expiredUtc` string, date-time, nullable
  - `warning` string, nullable

## Other responses

- `400` — Invalid request data
- `404` — QuickLink not found
- `500` — Internal server error occurred

---

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