API Endpoints Documentation
GET /index.php?route=api/list
Retrieves a list of all projects and their unique IDs.
{
"projects": [
{
"id": "64bc...123",
"name": "Project Name",
"description": "Short description"
}
]
}
GET /index.php?route=api/project&id={id}
Fetches full details and AI markdown instructions for a specific project.
POST /index.php?route=api/inventory
AI model endpoint to create data inventory and record new software locations.
Payload:
{
"name": "New Project",
"description": "...",
"urls": "...",
"ssh_params": "...",
"markdown_info": "..."
}
POST /index.php?route=api/log_chat
Stores an AI chat conversation securely into MongoDB.
Payload:
{
"model": "gpt-4o",
"project_id": "optional_id",
"messages": [
{"role": "user", "content": "Help me with X"},
{"role": "assistant", "content": "Sure, here is X"}
]
}