Skip to main content
Collections are containers for your knowledge. Upload documents to a collection, and Aigmented extracts structured knowledge cards that you can search and query.

List collections

curl https://aigmented.io/api/v1/collections/list \
  -H "Authorization: Bearer sk-YOUR_API_KEY"
Returns all collections for your team:
{
  "message": "List of collections",
  "data": [
    {
      "id": 49,
      "name": "Product Documentation",
      "status": "processed",
      "_count": {
        "knowledgeCards": 1248,
        "fileInstances": 4
      }
    }
  ]
}

Get collection details

curl https://aigmented.io/api/v1/collections/49 \
  -H "Authorization: Bearer sk-YOUR_API_KEY"

Create a collection

curl -X POST https://aigmented.io/api/v1/collections/add \
  -H "Authorization: Bearer sk-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Q4 2024 Contracts" }'

Delete a collection

curl -X DELETE https://aigmented.io/api/v1/collections/49 \
  -H "Authorization: Bearer sk-YOUR_API_KEY"
Deleting a collection removes all associated knowledge cards. This action cannot be undone.

Collection statuses

StatusMeaning
newCollection created, no files processed yet
processingFiles are being parsed and knowledge extracted
processedAll files processed successfully
processed_with_conflictsProcessed but some knowledge cards have conflicts
errorProcessing failed

List knowledge cards

curl "https://aigmented.io/api/v1/collections/49/knowledge-cards?page=1&limit=20" \
  -H "Authorization: Bearer sk-YOUR_API_KEY"
Supports pagination (page, limit), filtering by type (type), and full-text search (search).