Get one knowledge collection by id
Retrieve one collection, including the embedding model it was created with. An unknown, foreign or malformed id all give the same 404.
GET
/
knowledge
/
collections
/
{collection_id}
curl --request GET "$MITHUNAI_URL/mithunai/api/v1/knowledge/collections/0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88" \
--header "Authorization: Bearer $MITHUNAI_API_KEY"
import os, requests
collection_id = "0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88"
response = requests.get(
f"{os.environ['MITHUNAI_URL']}/mithunai/api/v1/knowledge/collections/{collection_id}",
headers={"Authorization": f"Bearer {os.environ['MITHUNAI_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())
const collectionId = '0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88'
const response = await fetch(
`${process.env.MITHUNAI_URL}/mithunai/api/v1/knowledge/collections/${collectionId}`,
{ headers: { Authorization: `Bearer ${process.env.MITHUNAI_API_KEY}` } },
)
console.log(await response.json())
{
"id": "0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88",
"name": "Product documentation",
"description": "Public docs and API reference",
"status": "active",
"embedding_model": "text-embedding-3-small",
"embedding_dimensions": 1536,
"created_at": "2026-09-24T10:15:02.418331",
"updated_at": "2026-09-24T10:15:02.418331"
}
{ "code": "not_found", "message": "The knowledge collection was not found." }
Returns
404 both for an ID that does not exist and for a collection that belongs to another organization. A malformed ID also returns 404.
Any role in the organization can read a collection.
string
required
Collection ID (a UUID).
Response
string
required
Collection ID (a UUID).
string
required
Display name.
string
required
Description. Empty string when none was set.
string
required
active or archived. An archived collection refuses ingestion and stays readable.string
required
Embedding model, fixed at creation.
integer
required
Vector width, fixed at creation.
string
required
ISO 8601 timestamp, in UTC.
string
required
ISO 8601 timestamp, in UTC.
curl --request GET "$MITHUNAI_URL/mithunai/api/v1/knowledge/collections/0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88" \
--header "Authorization: Bearer $MITHUNAI_API_KEY"
import os, requests
collection_id = "0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88"
response = requests.get(
f"{os.environ['MITHUNAI_URL']}/mithunai/api/v1/knowledge/collections/{collection_id}",
headers={"Authorization": f"Bearer {os.environ['MITHUNAI_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())
const collectionId = '0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88'
const response = await fetch(
`${process.env.MITHUNAI_URL}/mithunai/api/v1/knowledge/collections/${collectionId}`,
{ headers: { Authorization: `Bearer ${process.env.MITHUNAI_API_KEY}` } },
)
console.log(await response.json())
{
"id": "0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88",
"name": "Product documentation",
"description": "Public docs and API reference",
"status": "active",
"embedding_model": "text-embedding-3-small",
"embedding_dimensions": 1536,
"created_at": "2026-09-24T10:15:02.418331",
"updated_at": "2026-09-24T10:15:02.418331"
}
{ "code": "not_found", "message": "The knowledge collection was not found." }
Last modified on November 7, 2026
curl --request GET "$MITHUNAI_URL/mithunai/api/v1/knowledge/collections/0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88" \
--header "Authorization: Bearer $MITHUNAI_API_KEY"
import os, requests
collection_id = "0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88"
response = requests.get(
f"{os.environ['MITHUNAI_URL']}/mithunai/api/v1/knowledge/collections/{collection_id}",
headers={"Authorization": f"Bearer {os.environ['MITHUNAI_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())
const collectionId = '0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88'
const response = await fetch(
`${process.env.MITHUNAI_URL}/mithunai/api/v1/knowledge/collections/${collectionId}`,
{ headers: { Authorization: `Bearer ${process.env.MITHUNAI_API_KEY}` } },
)
console.log(await response.json())
{
"id": "0b6f2c14-8a3d-4e91-9c77-2f5b1d0a4e88",
"name": "Product documentation",
"description": "Public docs and API reference",
"status": "active",
"embedding_model": "text-embedding-3-small",
"embedding_dimensions": 1536,
"created_at": "2026-09-24T10:15:02.418331",
"updated_at": "2026-09-24T10:15:02.418331"
}
{ "code": "not_found", "message": "The knowledge collection was not found." }