Skip to main content
A collection groups related memories. Each 60db workspace has automatic per-user personal collections, plus any team/knowledge/hive collections created by owners/admins.

List collections

GET /memory/collections Returns all collections the caller can access in the current workspace.
curl https://api.60db.com/memory/collections \
  -H "Authorization: Bearer sk_abc123"
Response
{
  "success": true,
  "data": [
    {
      "hash_id": "uuid-1",
      "collection_id": "user_abc123",
      "label": "Personal Memories",
      "kind": "personal",
      "owner_user_id": 42,
      "shared": false,
      "created_at": "2026-04-01T10:00:00Z"
    },
    {
      "hash_id": "uuid-2",
      "collection_id": "customer_support",
      "label": "Customer Support KB",
      "kind": "team",
      "owner_user_id": null,
      "shared": true,
      "created_at": "2026-04-02T14:30:00Z"
    }
  ]
}

Create collection

POST /memory/collections Permission: Owner or admin only.

Body

collection_id
string
required
Unique ID within the workspace. Lowercase, alphanumeric, underscore, hyphen.
label
string
required
Human-readable display name.
kind
string
default:"team"
Collection type. One of: team, knowledge, hive.
shared
boolean
default:"true"
If true, all workspace members can read memories in this collection.
metadata
object
Arbitrary metadata attached to the collection.
curl -X POST https://api.60db.com/memory/collections \
  -H "Authorization: Bearer sk_abc123" \
  -H "Content-Type: application/json" \
  -d '{
    "collection_id": "customer_support",
    "label": "Customer Support KB",
    "kind": "knowledge",
    "shared": true
  }'

Collection kinds

KindUse caseWho can readWho can write
personalPer-user private memoriesOwner onlyOwner only
teamShared team-scoped memoriesAll membersAll members
knowledgeReference documents, policiesAll membersOwner/admin only
hiveCross-collection shared facts appearing in every searchAll membersOwner/admin only