Skip to main content
POST
/
api
/
v1
/
sources
Create source
curl --request POST \
  --url https://sync.trychroma.com/api/v1/sources \
  --header 'Content-Type: application/json' \
  --header 'x-chroma-token: <api-key>' \
  --data '
{
  "github": {
    "repository": "<string>",
    "app_id": "<string>",
    "include_globs": [
      "<string>"
    ]
  },
  "database_name": "<string>",
  "chunking": {
    "type": "tree_sitter",
    "max_size_bytes": 1
  },
  "embedding": {
    "dense": {
      "model": "Qwen/Qwen3-Embedding-0.6B",
      "task": "<unknown>"
    },
    "sparse": "<unknown>"
  },
  "embedding_model": "<unknown>"
}
'
{
  "source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

x-chroma-token
string
header
required

Body

application/json
github
object
required
database_name
string
required
chunking
object

Optional chunking configuration for this source.

embedding
object
embedding_model
object

Response

Source creation successful

source_id
string<uuid>
required

Source ID