OpenAdapterOpenAdapter
Vector DB

Collections

Create, list, and delete vector collections.

Create a collection

curl -X POST https://api.openadapter.in/v1/vectors/collections \
  -H "Authorization: Bearer $OPENADAPTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "docs",
    "vector_size": 384,
    "distance": "Cosine"
  }'
FieldNotes
nameUnique within your account
vector_sizeMust match your embedding model's output dimension (the dashboard's "New collection" UI calls this dim)
distanceCosine is what the dashboard sends. Other values depend on the upstream vector service — confirm before using.

List collections

curl https://api.openadapter.in/v1/vectors/collections \
  -H "Authorization: Bearer $OPENADAPTER_API_KEY"

Inspect a collection

curl https://api.openadapter.in/v1/vectors/collections/docs \
  -H "Authorization: Bearer $OPENADAPTER_API_KEY"

Returns point count, vector size, distance metric.

Delete a collection

curl -X DELETE https://api.openadapter.in/v1/vectors/collections/docs \
  -H "Authorization: Bearer $OPENADAPTER_API_KEY"

Notes

  • A vector tenant is auto-provisioned for your account on the first call.
  • Collections are isolated per API key — two users with the same collection name don't see each other's data.
  • Don't pick a vector_size you can't generate. If you switch embedding models later, you'll need a new collection.
  • Each vector API call costs 0.05 of one request against your plan quota.

On this page