---
title: "Share a trace publicly"
method: PATCH
path: "/api/traces/{trace_unique_id}/"
tags: ["traces"]
---

# Share a trace publicly

`PATCH /api/traces/{trace_unique_id}/`

Set public-sharing metadata for a trace ID. This operation upserts the sharing record and returns `200` when `is_public` is supplied; it does not first verify that trace spans exist.

## Path parameters

- `trace_unique_id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `is_public` boolean, required — Set `true` to make the trace public, or `false` to revoke public access.

## Response `200`

Trace sharing state updated.

- TracesShareTraceResponse200
  - `trace_unique_id` string, required
  - `is_public` boolean, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing/invalid authentication

## Changes

> 6 revisions in range; 3 could not be searched.

- **2026-07-31** `c26d550029f8` — 3 breaking, 3 info
  - removed the request body
  - removed the required property `is_public` from the response with the `200` status
  - removed the required property `trace_unique_id` from the response with the `200` status
  - removed the non-success response with the status `400`
  - …2 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/traces/:trace_unique_id/patch.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c61efaf24756/schema)
