---
title: "Get the code-sync policy"
method: GET
path: "/api/v1/manage/project/code-sync"
tags: ["Workspace"]
---

# Get the code-sync policy

`GET /api/v1/manage/project/code-sync`

## Request

- Base URL: `https://fillo.so`
- URL: `https://fillo.so/api/v1/manage/project/code-sync`
- Auth: HTTP bearer

Report the code-sync policy in force for the key's project: `publishable_key` (the browser key may stage from an allowed origin) or `trusted_only` (an authenticated sync token is required). Tier A. Scope: workspace:manage.

## Response `200`

The policy in force.

- object
  - `policy` 'publishable_key' | 'trusted_only', required

## Other responses

- `400`: Invalid request (e.g. a body on a GET/DELETE, or a missing required query parameter).
- `401`: Missing, malformed, unknown, revoked, or expired key.
- `403`: The key is valid but lacks the required scope.
- `404`: No such resource in this project (returned instead of 403 for ids in other projects).
- `429`: Per-key (120/min), per-workspace (240/min), or per-IP (300/min) rate limit exceeded. Retry after the Retry-After header.

---

[API](https://skmtc.dev/fillo/apis/fillo-management-api.md) · [All operations](https://skmtc.dev/fillo/apis/fillo-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fillo/apis/fillo-management-api/revisions/867f943f04f5?raw)
