---
title: "Sync Grants"
method: POST
path: "/v1/access-control/sync"
tags: ["v1", "protected", "access-control"]
---

# Sync Grants

`POST /v1/access-control/sync`

Mirror existing grants into the graph backend and seed a starter collection.

Idempotent: safe to call repeatedly. Steps:
  1. Mirror workspace members into the graph.
  2. If no collections exist, create "All skills" containing every workspace
     skill and grant workspace-member access to the collection.
  3. Mirror each collection membership relationship.
  4. Mirror each direct agent-to-skill grant.

## Response `200`

Successful Response

- AgentareaApiApiV1AccessControlSyncResponse
  - `collections` integer, required
  - `written` integer, required

## Changes

- **2026-06-18** `dad98bb65260` — 1 info
  - endpoint added
- **2026-03-30** `e9c153221160` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/access-control/sync/post.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/dad98bb65260/schema)
