---
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}/`

Toggle public sharing for a trace. When `is_public` is `true`, the trace becomes accessible through the public trace URL.

## 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
- `404` — Not Found

---

[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/58a2eabdccf3/schema)
