{
  "info": {
    "name": "EvolvixOS API",
    "description": "EvolvixOS \u2014 self-hostable AI engineering platform. 435+ models, one API.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://evolvixos.com",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "YOUR_API_KEY",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Playground",
      "item": [
        {
          "name": "Chat (no stream)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/playground",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "playground"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"message\": \"Write a haiku about code\", \"model\": \"auto\", \"temperature\": 0.7, \"max_tokens\": 1000}"
            }
          }
        },
        {
          "name": "Chat (SSE stream)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/playground/stream",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "playground",
                "stream"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"message\": \"Tell me a story\", \"model\": \"auto\"}"
            }
          }
        }
      ]
    },
    {
      "name": "Demo (No Auth)",
      "item": [
        {
          "name": "Demo Chat",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/demo",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "demo"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"message\": \"What is 2+2?\"}"
            }
          }
        }
      ]
    },
    {
      "name": "Models",
      "item": [
        {
          "name": "List Models",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/models",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "models"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Entities",
      "item": [
        {
          "name": "Create Entity",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/entities",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "entities"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"name\": \"Task\", \"schema\": {\"type\": \"object\", \"properties\": {\"title\": {\"type\": \"string\"}, \"status\": {\"type\": \"string\", \"enum\": [\"todo\", \"done\"]}}, \"required\": [\"title\"]}}"
            }
          }
        },
        {
          "name": "List Entities",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/entities",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "entities"
              ]
            }
          }
        },
        {
          "name": "Create Record",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/entities/Task/records",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "entities",
                "Task",
                "records"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"title\": \"Ship the demo\", \"status\": \"todo\"}"
            }
          }
        },
        {
          "name": "List Records",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/entities/Task/records",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "entities",
                "Task",
                "records"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Agents",
      "item": [
        {
          "name": "Create Agent",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "agents"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"name\": \"code-reviewer\", \"system_prompt\": \"You are a senior code reviewer.\", \"model\": \"auto\"}"
            }
          }
        },
        {
          "name": "List Agents",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/agents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "agents"
              ]
            }
          }
        },
        {
          "name": "Chat with Agent",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/agents/code-reviewer/chat",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "agents",
                "code-reviewer",
                "chat"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"message\": \"Review: def fib(n): return fib(n-1)+fib(n-2)\"}"
            }
          }
        }
      ]
    },
    {
      "name": "Functions",
      "item": [
        {
          "name": "Deploy Function",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/functions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "functions"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\"name\": \"getWeather\", \"code\": \"def handler(input):\\n    return {\\\"city\\\": input.get(\\\"city\\\"), \\\"temp\\\": 22}\"}"
            }
          }
        },
        {
          "name": "Call Function",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/fn/getWeather?city=Madrid",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "fn",
                "getWeather"
              ],
              "query": [
                {
                  "key": "city",
                  "value": "Madrid"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Workflows",
      "item": [
        {
          "name": "List Workflows",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/workflows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "workflows"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Credits & Health",
      "item": [
        {
          "name": "Check Credits",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/platform/api/credits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "credits"
              ]
            }
          }
        },
        {
          "name": "Health Check",
          "request": {
            "method": "GET",
            "url": {
              "raw": "{{baseUrl}}/platform/api/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "platform",
                "api",
                "health"
              ]
            }
          }
        }
      ]
    }
  ]
}