---
title: "Upload a raw source (role&#58; member+)"
method: POST
path: "/api/sources"
tags: ["Sources"]
---

# Upload a raw source (role&#58; member+)

`POST /api/sources`

## Request

- Base URL: `https://api.witwiki.app`
- URL: `https://api.witwiki.app/api/sources`
- Auth: HTTP bearer

## Headers

- `X-Project-ID` string

## Request body

- object
  - `name` string
  - `content_type` string
  - `data` string: Base64-encoded content

## Response `201`

Created source

- Source
  - `id` string
  - `project_id` string
  - `name` string
  - `content_type` string
  - `size` integer
  - `ingested` boolean
  - `created_at` string, date-time

## Other responses

- `402`: Plan quota exceeded (upgrade required)

---

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