---
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

---

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