Platform API

This platform provides a unified API interface for product discovery, content access, content management, automation, and AI-assisted integrations.

The API is organized around public read-only endpoints, authenticated action-based operations, and MCP-compatible tools for AI clients. Public endpoints expose safe read-only data, while authenticated `get_action` and `set_action` operations allow authorized clients to retrieve or modify platform state.

The MCP interface allows AI agents to discover available tools, inspect supported capabilities, and execute approved actions through a structured JSON-RPC protocol.

All access control is enforced by the backend. Authentication, permissions, scopes, ownership checks, and module-level rules determine which operations a client may perform. The documentation describes available capabilities and request formats, but does not grant access by itself.

Clients and AI agents should read the current state before making changes, preserve existing data unless explicitly instructed otherwise, and perform write or destructive operations only when authorized and explicitly requested..

SHOP API


Endpoint

https://www.mednatura.ro/shop/api/products

Example

https://www.mednatura.ro/shop/api/products?p=1

Query parameters

Response

JSON format.

CONTENT API


Endpoint

https://www.mednatura.ro/content/api

Send get_action, set_action, or export as a POST field.

Direct routes

Accessed via URL: https://www.mednatura.ro/content/api/{route}

collections

Load a named data collection.

POST https://www.mednatura.ro/content/api/collections
POST: collection={name}
POST: module={module-name}    -- omit for core collections
[ ...collection data... ]

Returns false if the collection file does not exist.

extend

Load API data from a collection folder's api.json.

GET https://www.mednatura.ro/content/api/{collection-slug}
{ "{key}": [ ...values... ] }

Reads data/content/collections/{slug}/api.json. Returns nothing if file not found.

fileman

File manager — list, upload, delete, rename, move files and folders under data/media/.

POST https://www.mednatura.ro/content/api/fileman
POST: action={list|upload|remove|create_folder|rename|move|search}
POST: path={virtual-path}
-- additional params depend on action --
action required params description
list path List files and folders at path
upload path, FILES: file Upload file to path
remove path Delete file or folder
create_folder path, name Create new folder
rename path, name Rename file or folder
move path, destination Move file or folder
search path, query Search files by name