TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/No-Country-simulation/G9-LATAM-Team-58/llms.txt
Use this file to discover all available pages before exploring further.
/contents family of endpoints exposes Mindloom’s stored knowledge corpus for reading. GET /contents returns a paginated, filterable list of content summaries — lightweight objects suited for index views and search results. GET /contents/{id} returns the complete detail record for a single item, including the full body text, classification metadata, and explainability fields. Both endpoints require a configured database; if the API is running in scaffold mode, both return 503.
GET /contents — List content items
Retrieves a paginated list of content summaries. Supports optional filtering by category name and a keyword search across title and body. All query parameters are optional.Endpoint
Query parameters
Filter results to items belonging to this category. Must match a category name exactly (e.g.
Backend, Bases de datos). When omitted, items from all categories are returned.Keyword filter applied to item titles and bodies. When omitted, no keyword filtering is applied.
Sort order for the result list. Defaults to an empty string (implementation-defined default ordering).
Zero-based page number. The first page is
0.Number of items to return per page. Defaults to
20.Example request
Response — 200 OK
Total number of items matching the current filters, across all pages.
Array of content summary objects for the current page.
Example response
GET /contents/ — Get content detail
Retrieves the full detail record for a single content item, including its body text and all classification metadata.Endpoint
Path parameters
The unique identifier of the content item to retrieve (e.g.
usr-9f3c1e0a-42b8-4d17-9a55-7c0e1b2d3f44).Example request
Response — 200 OK
ContentDetail extends ContentSummary with the following additional fields. All ContentSummary fields (id, title, category, source, language, addedAt) are also present.
The full text of the content item.
The classifier’s confidence score for the assigned category (
0–1), or null for seeded corpus items that were not processed through the /predict inference pipeline.Top TF-IDF keywords extracted from the body at ingestion time.
Top terms from the baseline classifier that drove the category decision at ingestion time.
The original URL of the content item, if it was sourced from an external corpus.
null for user-submitted items.Seeded corpus items (those with
source ≠ "user") have probability: null because they were pre-loaded directly into the database without being run through the inference service’s /predict endpoint. All other classification fields (category, keywords, explanation) are populated at load time using a separate offline process.Example response
Error responses
All errors follow theApiError envelope defined in GlobalExceptionHandler. Every error response contains three fields:
| Field | Type | Description |
|---|---|---|
error | string | Machine-readable error code (e.g. NOT_FOUND, INTERNAL_ERROR). |
message | string | Human-readable description of what went wrong, in Spanish. |
timestamp | string | ISO 8601 UTC timestamp of when the error was generated (e.g. "2026-07-28T10:32:41.123456Z"). |
| HTTP Status | error code | When it occurs |
|---|---|---|
404 Not Found | NOT_FOUND | No content item with the given id exists in the database. Applies to GET /contents/{id} only. |
503 Service Unavailable | INTERNAL_ERROR | The database is not configured (scaffold / demo mode). Start the API with app.database.enabled=true. Applies to both endpoints. |