---
title: "Generate (or return existing) a public review token and set whether the link includes evidence content. Existing tokens are preserved while their disclosure mode is updated."
method: POST
path: "/api/v1/intents/{id}/share"
tags: ["intents"]
---

# Generate (or return existing) a public review token and set whether the link includes evidence content. Existing tokens are preserved while their disclosure mode is updated.

`POST /api/v1/intents/{id}/share`

token is a raw crypto.randomUUID() (v4 UUID, no prefix). Token and includeEvidence are persisted in one intent_specs UPDATE. A bodyless request is supported and resets the link to metadata-only. No 201 — created and pre-existing tokens both return 200. No rate limiter on this route.

## Path parameters

- `id` string, required

## Query parameters

- `workspace_id` string

## Request body

- object
  - `includeEvidence` boolean — Include linked evidence content and source in the public response. Defaults to false; metadata (id, type, severity) remains visible.

## Response `200`

Returns { token, includeEvidence } after atomically saving both settings

- object

## Other responses

- `400` — Invalid JSON body or includeEvidence is not a boolean
- `401` — Missing/invalid API key or session
- `403` — Authenticated but lacks write scope
- `404` — Intent not found in this workspace
- `500` — Failed to generate share link

## Changes

- **2026-08-31** `8ef75cba546a` — 2 info
  - added optional request body
  - added the non-success response with the status `400`
- **2026-08-23** `155c812b368b` — 4 info
  - added the optional property `details` to the response with the `401` status
  - added the optional property `details` to the response with the `403` status
  - added the optional property `details` to the response with the `404` status
  - added the optional property `details` to the response with the `500` status

[Change history](https://skmtc.dev/pathmode/apis/pathmode-api/changes/api/v1/intents/:id/share/post.md)

---

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