---
title: "Request an on-demand sync for a knowledge source"
method: POST
path: "/api/knowledge/sources/{id}/sync"
tags: ["Knowledge"]
---

# Request an on-demand sync for a knowledge source

`POST /api/knowledge/sources/{id}/sync`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/knowledge/sources/{id}/sync`
- Auth: one of:
  - API key in cookie `luca.session_token`
  - API key in header `x-api-key`
  - HTTP bearer

Queues a re-read of the source now, instead of waiting for the next scheduled sync. It returns as soon as the job is queued.

**API key scopes:** `knowledge:write`. You also need an `Idempotency-Key` header.

## Path parameters

- `id` string, uuid, required

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- KnowledgeSourceSyncResponse
  - `ok` true, required
  - `sourceId` string, uuid, required

## Other responses

- `401`: unauthorized
- `404`: not found
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
