---
title: "Create a connector source"
method: POST
path: "/api/connectors"
tags: ["Connectors"]
---

# Create a connector source

`POST /api/connectors`

## Request

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

## Request body

- object
  - `name` string, required
  - `type` string, required
  - `config` object
  - `workspace` string
  - `syncIntervalMinutes` integer
  - `enabled` boolean

## Response `201`

Created connector source.

- ConnectorSource
  - `id` integer
  - `tenantId` integer
  - `name` string
  - `type` string
  - `config` object
  - `workspace` string, nullable
  - `syncIntervalMinutes` integer, nullable
  - `enabled` boolean
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400`: Validation failure, unknown connector type, or invalid config.
- `401`: Missing or invalid credentials.
- `403`: The caller has no resolvable tenant context.

---

[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)
