---
title: "Add website pages"
method: POST
path: "/knowledge/sources"
tags: ["Knowledge"]
---

# Add website pages

`POST /knowledge/sources`

## Request

- Base URL: `https://api.meetdarwin.ai/v1`
- URL: `https://api.meetdarwin.ai/v1/knowledge/sources`
- Auth: HTTP bearer

Requires the `knowledge:write` scope.

## Headers

- `Idempotency-Key` string

## Request body

- KnowledgeSourcesCreate
  - `urls` string[], required

## Response `200`

Nothing new was added.

- object
  - `object` 'knowledge_import'
  - `added` integer
  - `skipped` integer
  - `rejected` string[]

## Other responses

- `202`: OK
- `400`: Invalid request (`invalid_request`, `unsupported_version`).
- `401`: Missing or invalid key (`authentication_required`, `invalid_api_key`).
- `402`: The workspace must add a card before the API can be used (`payment_required`).
- `403`: The key lacks the scope (`insufficient_scope`).
- `404`: No such object in this workspace (`not_found`).
- `409`: Conflicts with the current state (`conflict`, `idempotency_key_in_use`).
- `422`: Refused by a rule (`unprocessable`, `idempotency_key_reused`).
- `429`: Rate limited (`rate_limited`) or a monthly allowance used (`quota_exceeded`); see Retry-After.

---

[API](https://skmtc.dev/meetdarwin/apis/darwin-api.md) · [All operations](https://skmtc.dev/meetdarwin/apis/darwin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/meetdarwin/apis/darwin-api/revisions/4b7ea8fe8645?raw)
