---
title: "Create a source"
method: POST
path: "/v1/sources"
tags: ["Sources"]
---

# Create a source

`POST /v1/sources`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/sources`
- Auth: HTTP bearer

Create a new document ingest source. Returns the source details plus a
dedicated `api_key` for uploading documents into this source.

## Request body

- SourceCreateRequest
  - `name` string, required: Source name.
  - `default_schema_id` string, uuid: Optional schema ID to apply by default to documents in this source.

## Response `201`

Source created with a dedicated API key.

- object
  - `id` string, uuid, required
  - `name` string, required
  - `type` string, required
  - `status` 'active' | 'syncing' | 'error', required
  - `document_count` integer
  - `default_schema` object, nullable
    - `id` string, uuid
  - `endpoint` string: URL path for uploading documents to this source.
  - `created_at` string, date-time
  - `links` object
    - `self` string
    - `documents` string
    - `dashboard` string, uri
  - `api_key` string: Dedicated API key for this source. Only returned at creation time.

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `429`: Daily rate limit exceeded.

---

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