---
title: "Revoke a public share link"
method: DELETE
path: "/chats/{id}/share"
tags: ["Chats"]
---

# Revoke a public share link

`DELETE /chats/{id}/share`

## Request

- Base URL: `https://app.gc.ai/api/external/v1`
- URL: `https://app.gc.ai/api/external/v1/chats/{id}/share`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/gc-ai/apis/gc-ai-external-api/docs/chats/:id/share/delete.ts> (a function with typed inputs; its response is checked against the schema)

Make a previously public chat private again.

## Path parameters

- `id` string, uuid, required: The chat ID

## Response `204`

Share link revoked

## Other responses

- `400`: Invalid chat ID
- `401`: Missing or malformed API key
- `403`: Invalid API key
- `404`: Chat not found or access denied
- `429`: Rate limit exceeded. See [Rate Limits](https://docs.gc.ai/api-reference/concepts/rate-limits) for the tiers, limits, and how to back off.
- `500`: Failed to revoke share link
- `503`: Service temporarily unavailable

---

[API](https://skmtc.dev/gc-ai/apis/gc-ai-external-api.md) - [All operations](https://skmtc.dev/gc-ai/apis/gc-ai-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gc-ai/apis/gc-ai-external-api/revisions/2bbdfddf7107?raw)
