Skip to main content
POST
/
api
/
v2
/
tenants
/
{tenant}
/
databases
/
{database}
/
collections
/
{collection_id}
/
add
Adds records to a collection.
curl --request POST \
  --url https://api.trychroma.com/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/add \
  --header 'Content-Type: application/json' \
  --header 'x-chroma-token: <api-key>' \
  --data '
{
  "embeddings": [
    [
      123
    ]
  ],
  "ids": [
    "<string>"
  ],
  "documents": [
    "<string>"
  ],
  "metadatas": [
    "<unknown>"
  ],
  "uris": [
    "<string>"
  ]
}
'
{}

Authorizations

x-chroma-token
string
header
required

Path Parameters

tenant
string
required
database
string
required
collection_id
string
required

Body

application/json
embeddings
required
ids
string[]
required
documents
(string | null)[] | null
metadatas
(null | object)[] | null
uris
(string | null)[] | null

Response

Collection added successfully

The response is of type object.