---
title: "A private, unlisted link to the full results with written answers; expires in 1 to 90 days."
method: POST
path: "/v2/questions/{id}/share-links"
tags: ["questions"]
---

# A private, unlisted link to the full results with written answers; expires in 1 to 90 days.

`POST /v2/questions/{id}/share-links`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v2/questions/{id}/share-links`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`, scopes: `questions:write`)

## Path parameters

- `id` string, required

## Request body

- CreateShareLinkRequest
  - `expiresInDays` integer

## Response `201`

OK

- CreateShareLinkResponse
  - `link` object, required
    - `id` string, required
    - `url` string, nullable, required
    - `createdAt` string, required
    - `expiresAt` string, required
    - `revokedAt` string, nullable, required
    - `views` integer, required
    - `lastViewedAt` string, nullable, required

## Other responses

- `400`: The request is not valid; `error.details.validation` lists the fixes.
- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `404`: No such question, endpoint or delivery on this account.
- `429`: Too many requests; wait for Retry-After.

---

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