---
title: "Manually trigger a sync for one connector source"
method: POST
path: "/api/connectors/{id}/sync"
tags: ["Connectors"]
---

# Manually trigger a sync for one connector source

`POST /api/connectors/{id}/sync`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/connectors/{id}/sync`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

Enqueues the same durable pg-boss `connector-sync` job the scheduler would enqueue. A `singletonKey` per source dedups against a sync already in flight, so a manual trigger and the schedule can never run the same source concurrently.

## Path parameters

- `id` integer, required

## Response `202`

Sync job enqueued.

- object
  - `jobId` string
  - `sourceId` integer

## Other responses

- `400`: Invalid id.
- `401`: Missing or invalid credentials.
- `403`: The caller has no resolvable tenant context.
- `404`: Resource not found (or not visible to the caller).

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
