---
title: "Code Set Public"
method: POST
path: "/code/public"
tags: ["code-sites"]
---

# Code Set Public

`POST /code/public`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/code/public`
- Auth: API key in header `X-Agent-Key`

Make a code site publicly accessible (disable Vercel Authentication) or re-protect it.

## Query parameters

- `email` string, nullable

## Request body

- PublicBody
  - `site_id` string, required
  - `public` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
