{ "openapi": "3.1.0", "info": { "title": "MESH Platform API", "description": "Enterprise SaaS control plane for MESH decentralized supply chain coordination", "version": "0.1.0" }, "paths": { "/api/v1/auth/register": { "post": { "tags": [ "auth" ], "summary": "Register", "operationId": "register_api_v1_auth_register_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } } }, "required": true }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/auth/login": { "post": { "tags": [ "auth" ], "summary": "Login", "operationId": "login_api_v1_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/auth/refresh": { "post": { "tags": [ "auth" ], "summary": "Refresh", "operationId": "refresh_api_v1_auth_refresh_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/auth/me": { "get": { "tags": [ "auth" ], "summary": "Me", "operationId": "me_api_v1_auth_me_get", "parameters": [ { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces": { "post": { "tags": [ "workspaces" ], "summary": "Create", "operationId": "create_api_v1_workspaces_post", "parameters": [ { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceCreateRequest" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "workspaces" ], "summary": "List Ws", "operationId": "list_ws_api_v1_workspaces_get", "parameters": [ { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}": { "get": { "tags": [ "workspaces" ], "summary": "Get Ws", "operationId": "get_ws_api_v1_workspaces__workspace_id__get", "parameters": [ { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}/orders": { "get": { "tags": [ "orders" ], "summary": "List Orders", "operationId": "list_orders_api_v1_workspaces__workspace_id__orders_get", "parameters": [ { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "status", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "default": 50, "title": "Limit" } }, { "name": "offset", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 0, "default": 0, "title": "Offset" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}/orders/{order_id}": { "get": { "tags": [ "orders" ], "summary": "Get Order", "operationId": "get_order_api_v1_workspaces__workspace_id__orders__order_id__get", "parameters": [ { "name": "order_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Order Id" } }, { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}/orders/{order_id}/events": { "get": { "tags": [ "orders" ], "summary": "List Order Events", "operationId": "list_order_events_api_v1_workspaces__workspace_id__orders__order_id__events_get", "parameters": [ { "name": "order_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Order Id" } }, { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/OrderEventResponse" }, "title": "Response List Order Events Api V1 Workspaces Workspace Id Orders Order Id Events Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}/ledger/transactions": { "get": { "tags": [ "ledger" ], "summary": "List Transactions", "operationId": "list_transactions_api_v1_workspaces__workspace_id__ledger_transactions_get", "parameters": [ { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "default": 50, "title": "Limit" } }, { "name": "offset", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 0, "default": 0, "title": "Offset" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LedgerListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}/agents": { "get": { "tags": [ "agents" ], "summary": "List Agents", "operationId": "list_agents_api_v1_workspaces__workspace_id__agents_get", "parameters": [ { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}/agents/{agent_id}/status": { "get": { "tags": [ "agents" ], "summary": "Get Agent Status", "operationId": "get_agent_status_api_v1_workspaces__workspace_id__agents__agent_id__status_get", "parameters": [ { "name": "agent_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Agent Id" } }, { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentStatusResponse" }, "title": "Response Get Agent Status Api V1 Workspaces Workspace Id Agents Agent Id Status Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}/payments": { "post": { "tags": [ "payments" ], "summary": "Create Payment", "operationId": "create_payment_api_v1_workspaces__workspace_id__payments_post", "parameters": [ { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePaymentRequest" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentIntentResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "payments" ], "summary": "List Payments", "operationId": "list_payments_api_v1_workspaces__workspace_id__payments_get", "parameters": [ { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/webhooks/xendit": { "post": { "tags": [ "payments" ], "summary": "Xendit Webhook", "operationId": "xendit_webhook_api_v1_webhooks_xendit_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/v1/webhooks/cryptomus": { "post": { "tags": [ "payments" ], "summary": "Cryptomus Webhook", "operationId": "cryptomus_webhook_api_v1_webhooks_cryptomus_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/v1/workspaces/{workspace_id}/api-keys": { "post": { "tags": [ "api-keys" ], "summary": "Create Api Key", "operationId": "create_api_key_api_v1_workspaces__workspace_id__api_keys_post", "parameters": [ { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAPIKeyRequest" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/APIKeyCreatedResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "api-keys" ], "summary": "List Keys", "operationId": "list_keys_api_v1_workspaces__workspace_id__api_keys_get", "parameters": [ { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/APIKeyListResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/v1/workspaces/{workspace_id}/api-keys/{key_id}": { "delete": { "tags": [ "api-keys" ], "summary": "Revoke Key", "operationId": "revoke_key_api_v1_workspaces__workspace_id__api_keys__key_id__delete", "parameters": [ { "name": "key_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Key Id" } }, { "name": "workspace_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Workspace Id" } }, { "name": "authorization", "in": "header", "required": true, "schema": { "type": "string", "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/health": { "get": { "summary": "Health", "operationId": "health_health_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } } }, "components": { "schemas": { "APIKeyCreatedResponse": { "properties": { "id": { "type": "string", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "key_prefix": { "type": "string", "title": "Key Prefix" }, "raw_key": { "type": "string", "title": "Raw Key" }, "scopes": { "type": "string", "title": "Scopes" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "expires_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Expires At" } }, "type": "object", "required": [ "id", "name", "key_prefix", "raw_key", "scopes", "created_at" ], "title": "APIKeyCreatedResponse" }, "APIKeyListResponse": { "properties": { "keys": { "items": { "$ref": "#/components/schemas/APIKeyResponse" }, "type": "array", "title": "Keys" } }, "type": "object", "required": [ "keys" ], "title": "APIKeyListResponse" }, "APIKeyResponse": { "properties": { "id": { "type": "string", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "key_prefix": { "type": "string", "title": "Key Prefix" }, "scopes": { "type": "string", "title": "Scopes" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "expires_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Expires At" }, "last_used_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Last Used At" } }, "type": "object", "required": [ "id", "name", "key_prefix", "scopes", "created_at" ], "title": "APIKeyResponse" }, "AgentDefinitionResponse": { "properties": { "id": { "type": "string", "title": "Id" }, "workspace_id": { "type": "string", "title": "Workspace Id" }, "agent_role": { "type": "string", "title": "Agent Role" }, "agent_mesh_id": { "type": "string", "title": "Agent Mesh Id" }, "capabilities": { "type": "string", "title": "Capabilities" }, "initial_balance": { "type": "number", "title": "Initial Balance" }, "is_active": { "type": "boolean", "title": "Is Active" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "workspace_id", "agent_role", "agent_mesh_id", "capabilities", "initial_balance", "is_active", "created_at" ], "title": "AgentDefinitionResponse" }, "AgentListResponse": { "properties": { "agents": { "items": { "$ref": "#/components/schemas/AgentDefinitionResponse" }, "type": "array", "title": "Agents" } }, "type": "object", "required": [ "agents" ], "title": "AgentListResponse" }, "AgentStatusResponse": { "properties": { "status": { "type": "string", "title": "Status" }, "load": { "type": "number", "title": "Load" }, "active_orders": { "type": "integer", "title": "Active Orders" }, "recorded_at": { "type": "string", "format": "date-time", "title": "Recorded At" } }, "type": "object", "required": [ "status", "load", "active_orders", "recorded_at" ], "title": "AgentStatusResponse" }, "CreateAPIKeyRequest": { "properties": { "name": { "type": "string", "title": "Name", "default": "Default" }, "scopes": { "items": { "type": "string" }, "type": "array", "title": "Scopes", "default": [] }, "expires_in_days": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Expires In Days" } }, "type": "object", "title": "CreateAPIKeyRequest" }, "CreatePaymentRequest": { "properties": { "provider": { "type": "string", "title": "Provider" }, "amount": { "type": "number", "title": "Amount" }, "currency": { "type": "string", "title": "Currency" } }, "type": "object", "required": [ "provider", "amount", "currency" ], "title": "CreatePaymentRequest" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "LedgerEntryResponse": { "properties": { "id": { "type": "integer", "title": "Id" }, "tx_id": { "type": "string", "title": "Tx Id" }, "tx_type": { "type": "string", "title": "Tx Type" }, "from_agent": { "type": "string", "title": "From Agent" }, "to_agent": { "type": "string", "title": "To Agent" }, "amount": { "type": "number", "title": "Amount" }, "order_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Order Id" }, "memo": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Memo" }, "recorded_at": { "type": "string", "format": "date-time", "title": "Recorded At" } }, "type": "object", "required": [ "id", "tx_id", "tx_type", "from_agent", "to_agent", "amount", "recorded_at" ], "title": "LedgerEntryResponse" }, "LedgerListResponse": { "properties": { "entries": { "items": { "$ref": "#/components/schemas/LedgerEntryResponse" }, "type": "array", "title": "Entries" }, "total": { "type": "integer", "title": "Total" } }, "type": "object", "required": [ "entries", "total" ], "title": "LedgerListResponse" }, "LoginRequest": { "properties": { "email": { "type": "string", "format": "email", "title": "Email" }, "password": { "type": "string", "title": "Password" } }, "type": "object", "required": [ "email", "password" ], "title": "LoginRequest" }, "OrderEventResponse": { "properties": { "id": { "type": "integer", "title": "Id" }, "event_type": { "type": "string", "title": "Event Type" }, "agent_id": { "type": "string", "title": "Agent Id" }, "payload_json": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Payload Json" }, "occurred_at": { "type": "string", "format": "date-time", "title": "Occurred At" }, "recorded_at": { "type": "string", "format": "date-time", "title": "Recorded At" } }, "type": "object", "required": [ "id", "event_type", "agent_id", "occurred_at", "recorded_at" ], "title": "OrderEventResponse" }, "OrderListResponse": { "properties": { "orders": { "items": { "$ref": "#/components/schemas/OrderResponse" }, "type": "array", "title": "Orders" }, "total": { "type": "integer", "title": "Total" } }, "type": "object", "required": [ "orders", "total" ], "title": "OrderListResponse" }, "OrderResponse": { "properties": { "id": { "type": "string", "title": "Id" }, "workspace_id": { "type": "string", "title": "Workspace Id" }, "goods": { "type": "string", "title": "Goods" }, "quantity": { "type": "integer", "title": "Quantity" }, "max_price_per_unit": { "type": "number", "title": "Max Price Per Unit" }, "current_status": { "type": "string", "title": "Current Status" }, "winner_supplier_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Winner Supplier Id" }, "agreed_price_per_unit": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Agreed Price Per Unit" }, "bid_count": { "type": "integer", "title": "Bid Count" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "workspace_id", "goods", "quantity", "max_price_per_unit", "current_status", "bid_count", "created_at" ], "title": "OrderResponse" }, "PaymentIntentResponse": { "properties": { "id": { "type": "string", "title": "Id" }, "workspace_id": { "type": "string", "title": "Workspace Id" }, "provider": { "type": "string", "title": "Provider" }, "amount": { "type": "number", "title": "Amount" }, "currency": { "type": "string", "title": "Currency" }, "status": { "type": "string", "title": "Status" }, "payment_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Payment Url" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "workspace_id", "provider", "amount", "currency", "status", "created_at" ], "title": "PaymentIntentResponse" }, "PaymentListResponse": { "properties": { "payments": { "items": { "$ref": "#/components/schemas/PaymentIntentResponse" }, "type": "array", "title": "Payments" } }, "type": "object", "required": [ "payments" ], "title": "PaymentListResponse" }, "RefreshRequest": { "properties": { "refresh_token": { "type": "string", "title": "Refresh Token" } }, "type": "object", "required": [ "refresh_token" ], "title": "RefreshRequest" }, "RegisterRequest": { "properties": { "email": { "type": "string", "format": "email", "title": "Email" }, "password": { "type": "string", "title": "Password" }, "display_name": { "type": "string", "title": "Display Name" } }, "type": "object", "required": [ "email", "password", "display_name" ], "title": "RegisterRequest" }, "TokenResponse": { "properties": { "access_token": { "type": "string", "title": "Access Token" }, "refresh_token": { "type": "string", "title": "Refresh Token" }, "token_type": { "type": "string", "title": "Token Type", "default": "bearer" } }, "type": "object", "required": [ "access_token", "refresh_token" ], "title": "TokenResponse" }, "UserResponse": { "properties": { "id": { "type": "string", "title": "Id" }, "email": { "type": "string", "title": "Email" }, "display_name": { "type": "string", "title": "Display Name" }, "is_active": { "type": "boolean", "title": "Is Active" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "email", "display_name", "is_active", "created_at" ], "title": "UserResponse" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" }, "input": { "title": "Input" }, "ctx": { "type": "object", "title": "Context" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" }, "WorkspaceCreateRequest": { "properties": { "name": { "type": "string", "title": "Name" }, "slug": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Slug" } }, "type": "object", "required": [ "name" ], "title": "WorkspaceCreateRequest" }, "WorkspaceListResponse": { "properties": { "workspaces": { "items": { "$ref": "#/components/schemas/WorkspaceResponse" }, "type": "array", "title": "Workspaces" } }, "type": "object", "required": [ "workspaces" ], "title": "WorkspaceListResponse" }, "WorkspaceResponse": { "properties": { "id": { "type": "string", "title": "Id" }, "slug": { "type": "string", "title": "Slug" }, "name": { "type": "string", "title": "Name" }, "owner_id": { "type": "string", "title": "Owner Id" }, "plan": { "type": "string", "title": "Plan" }, "max_agents": { "type": "integer", "title": "Max Agents" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "slug", "name", "owner_id", "plan", "max_agents", "created_at" ], "title": "WorkspaceResponse" } } }, "servers": [ { "url": "https://api.agentmesh.world", "description": "Production" }, { "url": "http://localhost:8000", "description": "Local development" } ] }