---
title: "Create a public link for a questionnaire response"
method: POST
path: "/QuestionnaireResponses/{id}/links"
tags: ["QuestionnaireResponses"]
---

# Create a public link for a questionnaire response

`POST /QuestionnaireResponses/{id}/links`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/QuestionnaireResponses/{id}/links`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/QuestionnaireResponses/:id/links/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- CreateQuestionnaireLinkRequest: Request to create a new link
  - `responseId` string, required
  - `expirationHours` union
    - integer
    - string, int32
  - `maxUses` union
    - integer
    - string, int32
  - `clientId` string, nullable
  - `appointmentId` string, nullable
  - `customAttributes` string, nullable

## Response `200`

OK

- QuestionnaireLinkResponse: Response when creating a link (includes full URL)
  - `id` string
  - `token` string
  - `url` string
  - `expiresAt` string, date-time
  - `maxUses` union
    - integer
    - string, int32
  - `handoutVersion` union: The handout content version this link serves (ITE-1474); null for other types.
    - integer
    - string, int32

## Changes

- **2026-10-28** `099cf36186e0`: 3 info
  - added the optional property `handoutVersion` to the response with the `200` status (media type: text/plain)
  - added the optional property `handoutVersion` to the response with the `200` status (media type: application/json)
  - added the optional property `handoutVersion` to the response with the `200` status (media type: text/json)

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/QuestionnaireResponses/:id/links/post.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
