{ "openapi": "3.0.3", "info": { "title": "AgentSwarm API", "description": "API documentation for the **AgentSwarm** application.\n\n**Authentication:** Most endpoints require the `api_key` header. If using Swagger UI, click the **Authorize** button at the top of the page and enter your API key before trying any endpoint.", "version": "1.0.0" }, "servers": [ { "url": "https://agent-swarm-efe0bd7e.base44.app/api", "description": "API server" } ], "security": [ { "ApiKeyAuth": [] } ], "paths": { "/entities/Agent": { "get": { "tags": [ "Entities - Agent" ], "summary": "List Agent records", "operationId": "list_Agent", "description": "Retrieve a list of Agent records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Agent" } } } } } } }, "post": { "tags": [ "Entities - Agent" ], "summary": "Create a Agent record", "operationId": "create_Agent", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" }, "example": { "name": "Example name", "type": "social_manager", "system_prompt": "Example system_prompt" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } } } }, "delete": { "tags": [ "Entities - Agent" ], "summary": "Delete multiple Agent records", "operationId": "delete_many_Agent", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "name": "Example name" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/Agent/bulk": { "post": { "tags": [ "Entities - Agent" ], "summary": "Bulk create Agent records", "operationId": "bulk_create_Agent", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Agent" } }, "example": [ { "name": "Example name", "type": "social_manager", "system_prompt": "Example system_prompt" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Agent" } } } } } } }, "put": { "tags": [ "Entities - Agent" ], "summary": "Bulk update Agent records", "operationId": "bulk_update_Agent", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Agent" } }, "example": [ { "id": "", "name": "Example name", "type": "social_manager", "system_prompt": "Example system_prompt" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Agent" } } } } } } } }, "/entities/Agent/update-many": { "patch": { "tags": [ "Entities - Agent" ], "summary": "Update many Agent records by query", "operationId": "update_many_Agent", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "name": "Example name" }, "data": { "$set": { "name": "Example name" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/Agent/{Agent_id}": { "get": { "tags": [ "Entities - Agent" ], "summary": "Get a Agent record by ID", "operationId": "get_Agent", "parameters": [ { "name": "Agent_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } } } }, "put": { "tags": [ "Entities - Agent" ], "summary": "Update a Agent record", "operationId": "update_Agent", "parameters": [ { "name": "Agent_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } } } }, "delete": { "tags": [ "Entities - Agent" ], "summary": "Delete a Agent record", "operationId": "delete_Agent", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "Agent_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/Agent/{Agent_id}/restore": { "put": { "tags": [ "Entities - Agent" ], "summary": "Restore a deleted Agent record", "operationId": "restore_Agent", "parameters": [ { "name": "Agent_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Agent" } } } } } } }, "/entities/AgentHandoff": { "get": { "tags": [ "Entities - AgentHandoff" ], "summary": "List AgentHandoff records", "operationId": "list_AgentHandoff", "description": "Retrieve a list of AgentHandoff records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentHandoff" } } } } } } }, "post": { "tags": [ "Entities - AgentHandoff" ], "summary": "Create a AgentHandoff record", "operationId": "create_AgentHandoff", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentHandoff" }, "example": { "task_id": "Example task_id", "from_agent_id": "Example from_agent_id", "to_agent_id": "Example to_agent_id", "reason": "capability_match" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentHandoff" } } } } } }, "delete": { "tags": [ "Entities - AgentHandoff" ], "summary": "Delete multiple AgentHandoff records", "operationId": "delete_many_AgentHandoff", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "task_id": "Example task_id" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/AgentHandoff/bulk": { "post": { "tags": [ "Entities - AgentHandoff" ], "summary": "Bulk create AgentHandoff records", "operationId": "bulk_create_AgentHandoff", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentHandoff" } }, "example": [ { "task_id": "Example task_id", "from_agent_id": "Example from_agent_id", "to_agent_id": "Example to_agent_id", "reason": "capability_match" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentHandoff" } } } } } } }, "put": { "tags": [ "Entities - AgentHandoff" ], "summary": "Bulk update AgentHandoff records", "operationId": "bulk_update_AgentHandoff", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentHandoff" } }, "example": [ { "id": "", "task_id": "Example task_id", "from_agent_id": "Example from_agent_id", "to_agent_id": "Example to_agent_id", "reason": "capability_match" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentHandoff" } } } } } } } }, "/entities/AgentHandoff/update-many": { "patch": { "tags": [ "Entities - AgentHandoff" ], "summary": "Update many AgentHandoff records by query", "operationId": "update_many_AgentHandoff", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "task_id": "Example task_id" }, "data": { "$set": { "task_id": "Example task_id" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/AgentHandoff/{AgentHandoff_id}": { "get": { "tags": [ "Entities - AgentHandoff" ], "summary": "Get a AgentHandoff record by ID", "operationId": "get_AgentHandoff", "parameters": [ { "name": "AgentHandoff_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentHandoff" } } } } } }, "put": { "tags": [ "Entities - AgentHandoff" ], "summary": "Update a AgentHandoff record", "operationId": "update_AgentHandoff", "parameters": [ { "name": "AgentHandoff_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentHandoff" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentHandoff" } } } } } }, "delete": { "tags": [ "Entities - AgentHandoff" ], "summary": "Delete a AgentHandoff record", "operationId": "delete_AgentHandoff", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "AgentHandoff_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/AgentHandoff/{AgentHandoff_id}/restore": { "put": { "tags": [ "Entities - AgentHandoff" ], "summary": "Restore a deleted AgentHandoff record", "operationId": "restore_AgentHandoff", "parameters": [ { "name": "AgentHandoff_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentHandoff" } } } } } } }, "/entities/AgentTemplate": { "get": { "tags": [ "Entities - AgentTemplate" ], "summary": "List AgentTemplate records", "operationId": "list_AgentTemplate", "description": "Retrieve a list of AgentTemplate records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentTemplate" } } } } } } }, "post": { "tags": [ "Entities - AgentTemplate" ], "summary": "Create a AgentTemplate record", "operationId": "create_AgentTemplate", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentTemplate" }, "example": { "name": "Example name", "description": "Example description", "category": "social_media", "agent_config": {} } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentTemplate" } } } } } }, "delete": { "tags": [ "Entities - AgentTemplate" ], "summary": "Delete multiple AgentTemplate records", "operationId": "delete_many_AgentTemplate", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "name": "Example name" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/AgentTemplate/bulk": { "post": { "tags": [ "Entities - AgentTemplate" ], "summary": "Bulk create AgentTemplate records", "operationId": "bulk_create_AgentTemplate", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentTemplate" } }, "example": [ { "name": "Example name", "description": "Example description", "category": "social_media", "agent_config": {} } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentTemplate" } } } } } } }, "put": { "tags": [ "Entities - AgentTemplate" ], "summary": "Bulk update AgentTemplate records", "operationId": "bulk_update_AgentTemplate", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentTemplate" } }, "example": [ { "id": "", "name": "Example name", "description": "Example description", "category": "social_media", "agent_config": {} } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentTemplate" } } } } } } } }, "/entities/AgentTemplate/update-many": { "patch": { "tags": [ "Entities - AgentTemplate" ], "summary": "Update many AgentTemplate records by query", "operationId": "update_many_AgentTemplate", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "name": "Example name" }, "data": { "$set": { "name": "Example name" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/AgentTemplate/{AgentTemplate_id}": { "get": { "tags": [ "Entities - AgentTemplate" ], "summary": "Get a AgentTemplate record by ID", "operationId": "get_AgentTemplate", "parameters": [ { "name": "AgentTemplate_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentTemplate" } } } } } }, "put": { "tags": [ "Entities - AgentTemplate" ], "summary": "Update a AgentTemplate record", "operationId": "update_AgentTemplate", "parameters": [ { "name": "AgentTemplate_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentTemplate" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentTemplate" } } } } } }, "delete": { "tags": [ "Entities - AgentTemplate" ], "summary": "Delete a AgentTemplate record", "operationId": "delete_AgentTemplate", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "AgentTemplate_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/AgentTemplate/{AgentTemplate_id}/restore": { "put": { "tags": [ "Entities - AgentTemplate" ], "summary": "Restore a deleted AgentTemplate record", "operationId": "restore_AgentTemplate", "parameters": [ { "name": "AgentTemplate_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentTemplate" } } } } } } }, "/entities/AgentThreshold": { "get": { "tags": [ "Entities - AgentThreshold" ], "summary": "List AgentThreshold records", "operationId": "list_AgentThreshold", "description": "Retrieve a list of AgentThreshold records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentThreshold" } } } } } } }, "post": { "tags": [ "Entities - AgentThreshold" ], "summary": "Create a AgentThreshold record", "operationId": "create_AgentThreshold", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentThreshold" }, "example": { "agent_id": "Example agent_id", "agent_name": "Example agent_name" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentThreshold" } } } } } }, "delete": { "tags": [ "Entities - AgentThreshold" ], "summary": "Delete multiple AgentThreshold records", "operationId": "delete_many_AgentThreshold", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "agent_id": "Example agent_id" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/AgentThreshold/bulk": { "post": { "tags": [ "Entities - AgentThreshold" ], "summary": "Bulk create AgentThreshold records", "operationId": "bulk_create_AgentThreshold", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentThreshold" } }, "example": [ { "agent_id": "Example agent_id", "agent_name": "Example agent_name" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentThreshold" } } } } } } }, "put": { "tags": [ "Entities - AgentThreshold" ], "summary": "Bulk update AgentThreshold records", "operationId": "bulk_update_AgentThreshold", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentThreshold" } }, "example": [ { "id": "", "agent_id": "Example agent_id", "agent_name": "Example agent_name" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentThreshold" } } } } } } } }, "/entities/AgentThreshold/update-many": { "patch": { "tags": [ "Entities - AgentThreshold" ], "summary": "Update many AgentThreshold records by query", "operationId": "update_many_AgentThreshold", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "agent_id": "Example agent_id" }, "data": { "$set": { "agent_id": "Example agent_id" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/AgentThreshold/{AgentThreshold_id}": { "get": { "tags": [ "Entities - AgentThreshold" ], "summary": "Get a AgentThreshold record by ID", "operationId": "get_AgentThreshold", "parameters": [ { "name": "AgentThreshold_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentThreshold" } } } } } }, "put": { "tags": [ "Entities - AgentThreshold" ], "summary": "Update a AgentThreshold record", "operationId": "update_AgentThreshold", "parameters": [ { "name": "AgentThreshold_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentThreshold" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentThreshold" } } } } } }, "delete": { "tags": [ "Entities - AgentThreshold" ], "summary": "Delete a AgentThreshold record", "operationId": "delete_AgentThreshold", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "AgentThreshold_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/AgentThreshold/{AgentThreshold_id}/restore": { "put": { "tags": [ "Entities - AgentThreshold" ], "summary": "Restore a deleted AgentThreshold record", "operationId": "restore_AgentThreshold", "parameters": [ { "name": "AgentThreshold_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentThreshold" } } } } } } }, "/entities/AppProject": { "get": { "tags": [ "Entities - AppProject" ], "summary": "List AppProject records", "operationId": "list_AppProject", "description": "Retrieve a list of AppProject records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AppProject" } } } } } } }, "post": { "tags": [ "Entities - AppProject" ], "summary": "Create a AppProject record", "operationId": "create_AppProject", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppProject" }, "example": { "name": "Example name", "concept": "Example concept", "revenue_model": "saas_subscription" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppProject" } } } } } }, "delete": { "tags": [ "Entities - AppProject" ], "summary": "Delete multiple AppProject records", "operationId": "delete_many_AppProject", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "name": "Example name" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/AppProject/bulk": { "post": { "tags": [ "Entities - AppProject" ], "summary": "Bulk create AppProject records", "operationId": "bulk_create_AppProject", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AppProject" } }, "example": [ { "name": "Example name", "concept": "Example concept", "revenue_model": "saas_subscription" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AppProject" } } } } } } }, "put": { "tags": [ "Entities - AppProject" ], "summary": "Bulk update AppProject records", "operationId": "bulk_update_AppProject", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AppProject" } }, "example": [ { "id": "", "name": "Example name", "concept": "Example concept", "revenue_model": "saas_subscription" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AppProject" } } } } } } } }, "/entities/AppProject/update-many": { "patch": { "tags": [ "Entities - AppProject" ], "summary": "Update many AppProject records by query", "operationId": "update_many_AppProject", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "name": "Example name" }, "data": { "$set": { "name": "Example name" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/AppProject/{AppProject_id}": { "get": { "tags": [ "Entities - AppProject" ], "summary": "Get a AppProject record by ID", "operationId": "get_AppProject", "parameters": [ { "name": "AppProject_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppProject" } } } } } }, "put": { "tags": [ "Entities - AppProject" ], "summary": "Update a AppProject record", "operationId": "update_AppProject", "parameters": [ { "name": "AppProject_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppProject" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppProject" } } } } } }, "delete": { "tags": [ "Entities - AppProject" ], "summary": "Delete a AppProject record", "operationId": "delete_AppProject", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "AppProject_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/AppProject/{AppProject_id}/restore": { "put": { "tags": [ "Entities - AppProject" ], "summary": "Restore a deleted AppProject record", "operationId": "restore_AppProject", "parameters": [ { "name": "AppProject_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppProject" } } } } } } }, "/entities/Campaign": { "get": { "tags": [ "Entities - Campaign" ], "summary": "List Campaign records", "operationId": "list_Campaign", "description": "Retrieve a list of Campaign records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } } } } } } }, "post": { "tags": [ "Entities - Campaign" ], "summary": "Create a Campaign record", "operationId": "create_Campaign", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" }, "example": { "name": "Example name", "course_name": "Example course_name" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } } } }, "delete": { "tags": [ "Entities - Campaign" ], "summary": "Delete multiple Campaign records", "operationId": "delete_many_Campaign", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "name": "Example name" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/Campaign/bulk": { "post": { "tags": [ "Entities - Campaign" ], "summary": "Bulk create Campaign records", "operationId": "bulk_create_Campaign", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } }, "example": [ { "name": "Example name", "course_name": "Example course_name" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } } } } } } }, "put": { "tags": [ "Entities - Campaign" ], "summary": "Bulk update Campaign records", "operationId": "bulk_update_Campaign", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } }, "example": [ { "id": "", "name": "Example name", "course_name": "Example course_name" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } } } } } } } }, "/entities/Campaign/update-many": { "patch": { "tags": [ "Entities - Campaign" ], "summary": "Update many Campaign records by query", "operationId": "update_many_Campaign", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "name": "Example name" }, "data": { "$set": { "name": "Example name" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/Campaign/{Campaign_id}": { "get": { "tags": [ "Entities - Campaign" ], "summary": "Get a Campaign record by ID", "operationId": "get_Campaign", "parameters": [ { "name": "Campaign_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } } } }, "put": { "tags": [ "Entities - Campaign" ], "summary": "Update a Campaign record", "operationId": "update_Campaign", "parameters": [ { "name": "Campaign_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } } } }, "delete": { "tags": [ "Entities - Campaign" ], "summary": "Delete a Campaign record", "operationId": "delete_Campaign", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "Campaign_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/Campaign/{Campaign_id}/restore": { "put": { "tags": [ "Entities - Campaign" ], "summary": "Restore a deleted Campaign record", "operationId": "restore_Campaign", "parameters": [ { "name": "Campaign_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } } } } }, "/entities/Mission": { "get": { "tags": [ "Entities - Mission" ], "summary": "List Mission records", "operationId": "list_Mission", "description": "Retrieve a list of Mission records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Mission" } } } } } } }, "post": { "tags": [ "Entities - Mission" ], "summary": "Create a Mission record", "operationId": "create_Mission", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Mission" }, "example": { "mission_id": "Example mission_id", "title": "Example title", "type": "financial_transaction" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Mission" } } } } } }, "delete": { "tags": [ "Entities - Mission" ], "summary": "Delete multiple Mission records", "operationId": "delete_many_Mission", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "mission_id": "Example mission_id" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/Mission/bulk": { "post": { "tags": [ "Entities - Mission" ], "summary": "Bulk create Mission records", "operationId": "bulk_create_Mission", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Mission" } }, "example": [ { "mission_id": "Example mission_id", "title": "Example title", "type": "financial_transaction" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Mission" } } } } } } }, "put": { "tags": [ "Entities - Mission" ], "summary": "Bulk update Mission records", "operationId": "bulk_update_Mission", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Mission" } }, "example": [ { "id": "", "mission_id": "Example mission_id", "title": "Example title", "type": "financial_transaction" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Mission" } } } } } } } }, "/entities/Mission/update-many": { "patch": { "tags": [ "Entities - Mission" ], "summary": "Update many Mission records by query", "operationId": "update_many_Mission", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "mission_id": "Example mission_id" }, "data": { "$set": { "mission_id": "Example mission_id" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/Mission/{Mission_id}": { "get": { "tags": [ "Entities - Mission" ], "summary": "Get a Mission record by ID", "operationId": "get_Mission", "parameters": [ { "name": "Mission_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Mission" } } } } } }, "put": { "tags": [ "Entities - Mission" ], "summary": "Update a Mission record", "operationId": "update_Mission", "parameters": [ { "name": "Mission_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Mission" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Mission" } } } } } }, "delete": { "tags": [ "Entities - Mission" ], "summary": "Delete a Mission record", "operationId": "delete_Mission", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "Mission_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/Mission/{Mission_id}/restore": { "put": { "tags": [ "Entities - Mission" ], "summary": "Restore a deleted Mission record", "operationId": "restore_Mission", "parameters": [ { "name": "Mission_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Mission" } } } } } } }, "/entities/PayoutBatch": { "get": { "tags": [ "Entities - PayoutBatch" ], "summary": "List PayoutBatch records", "operationId": "list_PayoutBatch", "description": "Retrieve a list of PayoutBatch records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutBatch" } } } } } } }, "post": { "tags": [ "Entities - PayoutBatch" ], "summary": "Create a PayoutBatch record", "operationId": "create_PayoutBatch", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutBatch" }, "example": { "batch_id": "Example batch_id", "total_amount": 0, "currency": "USD" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutBatch" } } } } } }, "delete": { "tags": [ "Entities - PayoutBatch" ], "summary": "Delete multiple PayoutBatch records", "operationId": "delete_many_PayoutBatch", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "batch_id": "Example batch_id" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/PayoutBatch/bulk": { "post": { "tags": [ "Entities - PayoutBatch" ], "summary": "Bulk create PayoutBatch records", "operationId": "bulk_create_PayoutBatch", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutBatch" } }, "example": [ { "batch_id": "Example batch_id", "total_amount": 0, "currency": "USD" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutBatch" } } } } } } }, "put": { "tags": [ "Entities - PayoutBatch" ], "summary": "Bulk update PayoutBatch records", "operationId": "bulk_update_PayoutBatch", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutBatch" } }, "example": [ { "id": "", "batch_id": "Example batch_id", "total_amount": 0, "currency": "USD" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutBatch" } } } } } } } }, "/entities/PayoutBatch/update-many": { "patch": { "tags": [ "Entities - PayoutBatch" ], "summary": "Update many PayoutBatch records by query", "operationId": "update_many_PayoutBatch", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "batch_id": "Example batch_id" }, "data": { "$set": { "batch_id": "Example batch_id" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/PayoutBatch/{PayoutBatch_id}": { "get": { "tags": [ "Entities - PayoutBatch" ], "summary": "Get a PayoutBatch record by ID", "operationId": "get_PayoutBatch", "parameters": [ { "name": "PayoutBatch_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutBatch" } } } } } }, "put": { "tags": [ "Entities - PayoutBatch" ], "summary": "Update a PayoutBatch record", "operationId": "update_PayoutBatch", "parameters": [ { "name": "PayoutBatch_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutBatch" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutBatch" } } } } } }, "delete": { "tags": [ "Entities - PayoutBatch" ], "summary": "Delete a PayoutBatch record", "operationId": "delete_PayoutBatch", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "PayoutBatch_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/PayoutBatch/{PayoutBatch_id}/restore": { "put": { "tags": [ "Entities - PayoutBatch" ], "summary": "Restore a deleted PayoutBatch record", "operationId": "restore_PayoutBatch", "parameters": [ { "name": "PayoutBatch_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutBatch" } } } } } } }, "/entities/PayoutItem": { "get": { "tags": [ "Entities - PayoutItem" ], "summary": "List PayoutItem records", "operationId": "list_PayoutItem", "description": "Retrieve a list of PayoutItem records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutItem" } } } } } } }, "post": { "tags": [ "Entities - PayoutItem" ], "summary": "Create a PayoutItem record", "operationId": "create_PayoutItem", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutItem" }, "example": { "batch_id": "Example batch_id", "recipient": "Example recipient", "recipient_type": "paypal_email", "amount": 0, "currency": "USD" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutItem" } } } } } }, "delete": { "tags": [ "Entities - PayoutItem" ], "summary": "Delete multiple PayoutItem records", "operationId": "delete_many_PayoutItem", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "batch_id": "Example batch_id" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/PayoutItem/bulk": { "post": { "tags": [ "Entities - PayoutItem" ], "summary": "Bulk create PayoutItem records", "operationId": "bulk_create_PayoutItem", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutItem" } }, "example": [ { "batch_id": "Example batch_id", "recipient": "Example recipient", "recipient_type": "paypal_email", "amount": 0, "currency": "USD" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutItem" } } } } } } }, "put": { "tags": [ "Entities - PayoutItem" ], "summary": "Bulk update PayoutItem records", "operationId": "bulk_update_PayoutItem", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutItem" } }, "example": [ { "id": "", "batch_id": "Example batch_id", "recipient": "Example recipient", "recipient_type": "paypal_email", "amount": 0, "currency": "USD" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutItem" } } } } } } } }, "/entities/PayoutItem/update-many": { "patch": { "tags": [ "Entities - PayoutItem" ], "summary": "Update many PayoutItem records by query", "operationId": "update_many_PayoutItem", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "batch_id": "Example batch_id" }, "data": { "$set": { "batch_id": "Example batch_id" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/PayoutItem/{PayoutItem_id}": { "get": { "tags": [ "Entities - PayoutItem" ], "summary": "Get a PayoutItem record by ID", "operationId": "get_PayoutItem", "parameters": [ { "name": "PayoutItem_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutItem" } } } } } }, "put": { "tags": [ "Entities - PayoutItem" ], "summary": "Update a PayoutItem record", "operationId": "update_PayoutItem", "parameters": [ { "name": "PayoutItem_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutItem" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutItem" } } } } } }, "delete": { "tags": [ "Entities - PayoutItem" ], "summary": "Delete a PayoutItem record", "operationId": "delete_PayoutItem", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "PayoutItem_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/PayoutItem/{PayoutItem_id}/restore": { "put": { "tags": [ "Entities - PayoutItem" ], "summary": "Restore a deleted PayoutItem record", "operationId": "restore_PayoutItem", "parameters": [ { "name": "PayoutItem_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutItem" } } } } } } }, "/entities/PayoutRecipient": { "get": { "tags": [ "Entities - PayoutRecipient" ], "summary": "List PayoutRecipient records", "operationId": "list_PayoutRecipient", "description": "Retrieve a list of PayoutRecipient records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutRecipient" } } } } } } }, "post": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Create a PayoutRecipient record", "operationId": "create_PayoutRecipient", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutRecipient" }, "example": { "name": "Example name", "recipient_type": "paypal_email", "currency": "USD", "account_identifier": "Example account_identifier" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutRecipient" } } } } } }, "delete": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Delete multiple PayoutRecipient records", "operationId": "delete_many_PayoutRecipient", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "name": "Example name" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/PayoutRecipient/bulk": { "post": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Bulk create PayoutRecipient records", "operationId": "bulk_create_PayoutRecipient", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutRecipient" } }, "example": [ { "name": "Example name", "recipient_type": "paypal_email", "currency": "USD", "account_identifier": "Example account_identifier" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutRecipient" } } } } } } }, "put": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Bulk update PayoutRecipient records", "operationId": "bulk_update_PayoutRecipient", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutRecipient" } }, "example": [ { "id": "", "name": "Example name", "recipient_type": "paypal_email", "currency": "USD", "account_identifier": "Example account_identifier" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PayoutRecipient" } } } } } } } }, "/entities/PayoutRecipient/update-many": { "patch": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Update many PayoutRecipient records by query", "operationId": "update_many_PayoutRecipient", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "name": "Example name" }, "data": { "$set": { "name": "Example name" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/PayoutRecipient/{PayoutRecipient_id}": { "get": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Get a PayoutRecipient record by ID", "operationId": "get_PayoutRecipient", "parameters": [ { "name": "PayoutRecipient_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutRecipient" } } } } } }, "put": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Update a PayoutRecipient record", "operationId": "update_PayoutRecipient", "parameters": [ { "name": "PayoutRecipient_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutRecipient" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutRecipient" } } } } } }, "delete": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Delete a PayoutRecipient record", "operationId": "delete_PayoutRecipient", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "PayoutRecipient_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/PayoutRecipient/{PayoutRecipient_id}/restore": { "put": { "tags": [ "Entities - PayoutRecipient" ], "summary": "Restore a deleted PayoutRecipient record", "operationId": "restore_PayoutRecipient", "parameters": [ { "name": "PayoutRecipient_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PayoutRecipient" } } } } } } }, "/entities/ProductListing": { "get": { "tags": [ "Entities - ProductListing" ], "summary": "List ProductListing records", "operationId": "list_ProductListing", "description": "Retrieve a list of ProductListing records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProductListing" } } } } } } }, "post": { "tags": [ "Entities - ProductListing" ], "summary": "Create a ProductListing record", "operationId": "create_ProductListing", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductListing" }, "example": { "title": "Example title", "marketplace": "etsy", "price": 0, "created_by_agent": "Example created_by_agent" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductListing" } } } } } }, "delete": { "tags": [ "Entities - ProductListing" ], "summary": "Delete multiple ProductListing records", "operationId": "delete_many_ProductListing", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "title": "Example title" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/ProductListing/bulk": { "post": { "tags": [ "Entities - ProductListing" ], "summary": "Bulk create ProductListing records", "operationId": "bulk_create_ProductListing", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProductListing" } }, "example": [ { "title": "Example title", "marketplace": "etsy", "price": 0, "created_by_agent": "Example created_by_agent" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProductListing" } } } } } } }, "put": { "tags": [ "Entities - ProductListing" ], "summary": "Bulk update ProductListing records", "operationId": "bulk_update_ProductListing", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProductListing" } }, "example": [ { "id": "", "title": "Example title", "marketplace": "etsy", "price": 0, "created_by_agent": "Example created_by_agent" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ProductListing" } } } } } } } }, "/entities/ProductListing/update-many": { "patch": { "tags": [ "Entities - ProductListing" ], "summary": "Update many ProductListing records by query", "operationId": "update_many_ProductListing", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "title": "Example title" }, "data": { "$set": { "title": "Example title" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/ProductListing/{ProductListing_id}": { "get": { "tags": [ "Entities - ProductListing" ], "summary": "Get a ProductListing record by ID", "operationId": "get_ProductListing", "parameters": [ { "name": "ProductListing_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductListing" } } } } } }, "put": { "tags": [ "Entities - ProductListing" ], "summary": "Update a ProductListing record", "operationId": "update_ProductListing", "parameters": [ { "name": "ProductListing_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductListing" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductListing" } } } } } }, "delete": { "tags": [ "Entities - ProductListing" ], "summary": "Delete a ProductListing record", "operationId": "delete_ProductListing", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "ProductListing_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/ProductListing/{ProductListing_id}/restore": { "put": { "tags": [ "Entities - ProductListing" ], "summary": "Restore a deleted ProductListing record", "operationId": "restore_ProductListing", "parameters": [ { "name": "ProductListing_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductListing" } } } } } } }, "/entities/ReconciliationAlert": { "get": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "List ReconciliationAlert records", "operationId": "list_ReconciliationAlert", "description": "Retrieve a list of ReconciliationAlert records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReconciliationAlert" } } } } } } }, "post": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Create a ReconciliationAlert record", "operationId": "create_ReconciliationAlert", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReconciliationAlert" }, "example": { "alert_type": "missing_payout", "severity": "low", "description": "Example description", "dedup_key": "Example dedup_key" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReconciliationAlert" } } } } } }, "delete": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Delete multiple ReconciliationAlert records", "operationId": "delete_many_ReconciliationAlert", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "alert_type": "missing_payout" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/ReconciliationAlert/bulk": { "post": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Bulk create ReconciliationAlert records", "operationId": "bulk_create_ReconciliationAlert", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReconciliationAlert" } }, "example": [ { "alert_type": "missing_payout", "severity": "low", "description": "Example description", "dedup_key": "Example dedup_key" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReconciliationAlert" } } } } } } }, "put": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Bulk update ReconciliationAlert records", "operationId": "bulk_update_ReconciliationAlert", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReconciliationAlert" } }, "example": [ { "id": "", "alert_type": "missing_payout", "severity": "low", "description": "Example description", "dedup_key": "Example dedup_key" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReconciliationAlert" } } } } } } } }, "/entities/ReconciliationAlert/update-many": { "patch": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Update many ReconciliationAlert records by query", "operationId": "update_many_ReconciliationAlert", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "alert_type": "missing_payout" }, "data": { "$set": { "alert_type": "missing_payout" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/ReconciliationAlert/{ReconciliationAlert_id}": { "get": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Get a ReconciliationAlert record by ID", "operationId": "get_ReconciliationAlert", "parameters": [ { "name": "ReconciliationAlert_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReconciliationAlert" } } } } } }, "put": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Update a ReconciliationAlert record", "operationId": "update_ReconciliationAlert", "parameters": [ { "name": "ReconciliationAlert_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReconciliationAlert" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReconciliationAlert" } } } } } }, "delete": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Delete a ReconciliationAlert record", "operationId": "delete_ReconciliationAlert", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "ReconciliationAlert_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/ReconciliationAlert/{ReconciliationAlert_id}/restore": { "put": { "tags": [ "Entities - ReconciliationAlert" ], "summary": "Restore a deleted ReconciliationAlert record", "operationId": "restore_ReconciliationAlert", "parameters": [ { "name": "ReconciliationAlert_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReconciliationAlert" } } } } } } }, "/entities/RevenueEvent": { "get": { "tags": [ "Entities - RevenueEvent" ], "summary": "List RevenueEvent records", "operationId": "list_RevenueEvent", "description": "Retrieve a list of RevenueEvent records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueEvent" } } } } } } }, "post": { "tags": [ "Entities - RevenueEvent" ], "summary": "Create a RevenueEvent record", "operationId": "create_RevenueEvent", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueEvent" }, "example": { "source": "mission_completed", "amount": 0, "currency": "USD" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueEvent" } } } } } }, "delete": { "tags": [ "Entities - RevenueEvent" ], "summary": "Delete multiple RevenueEvent records", "operationId": "delete_many_RevenueEvent", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "source": "mission_completed" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/RevenueEvent/bulk": { "post": { "tags": [ "Entities - RevenueEvent" ], "summary": "Bulk create RevenueEvent records", "operationId": "bulk_create_RevenueEvent", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueEvent" } }, "example": [ { "source": "mission_completed", "amount": 0, "currency": "USD" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueEvent" } } } } } } }, "put": { "tags": [ "Entities - RevenueEvent" ], "summary": "Bulk update RevenueEvent records", "operationId": "bulk_update_RevenueEvent", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueEvent" } }, "example": [ { "id": "", "source": "mission_completed", "amount": 0, "currency": "USD" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueEvent" } } } } } } } }, "/entities/RevenueEvent/update-many": { "patch": { "tags": [ "Entities - RevenueEvent" ], "summary": "Update many RevenueEvent records by query", "operationId": "update_many_RevenueEvent", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "source": "mission_completed" }, "data": { "$set": { "source": "mission_completed" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/RevenueEvent/{RevenueEvent_id}": { "get": { "tags": [ "Entities - RevenueEvent" ], "summary": "Get a RevenueEvent record by ID", "operationId": "get_RevenueEvent", "parameters": [ { "name": "RevenueEvent_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueEvent" } } } } } }, "put": { "tags": [ "Entities - RevenueEvent" ], "summary": "Update a RevenueEvent record", "operationId": "update_RevenueEvent", "parameters": [ { "name": "RevenueEvent_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueEvent" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueEvent" } } } } } }, "delete": { "tags": [ "Entities - RevenueEvent" ], "summary": "Delete a RevenueEvent record", "operationId": "delete_RevenueEvent", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "RevenueEvent_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/RevenueEvent/{RevenueEvent_id}/restore": { "put": { "tags": [ "Entities - RevenueEvent" ], "summary": "Restore a deleted RevenueEvent record", "operationId": "restore_RevenueEvent", "parameters": [ { "name": "RevenueEvent_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueEvent" } } } } } } }, "/entities/RevenueStream": { "get": { "tags": [ "Entities - RevenueStream" ], "summary": "List RevenueStream records", "operationId": "list_RevenueStream", "description": "Retrieve a list of RevenueStream records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueStream" } } } } } } }, "post": { "tags": [ "Entities - RevenueStream" ], "summary": "Create a RevenueStream record", "operationId": "create_RevenueStream", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueStream" }, "example": { "name": "Example name", "type": "etsy_pod", "target_monthly_revenue": 0 } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueStream" } } } } } }, "delete": { "tags": [ "Entities - RevenueStream" ], "summary": "Delete multiple RevenueStream records", "operationId": "delete_many_RevenueStream", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "name": "Example name" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/RevenueStream/bulk": { "post": { "tags": [ "Entities - RevenueStream" ], "summary": "Bulk create RevenueStream records", "operationId": "bulk_create_RevenueStream", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueStream" } }, "example": [ { "name": "Example name", "type": "etsy_pod", "target_monthly_revenue": 0 } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueStream" } } } } } } }, "put": { "tags": [ "Entities - RevenueStream" ], "summary": "Bulk update RevenueStream records", "operationId": "bulk_update_RevenueStream", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueStream" } }, "example": [ { "id": "", "name": "Example name", "type": "etsy_pod", "target_monthly_revenue": 0 } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RevenueStream" } } } } } } } }, "/entities/RevenueStream/update-many": { "patch": { "tags": [ "Entities - RevenueStream" ], "summary": "Update many RevenueStream records by query", "operationId": "update_many_RevenueStream", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "name": "Example name" }, "data": { "$set": { "name": "Example name" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/RevenueStream/{RevenueStream_id}": { "get": { "tags": [ "Entities - RevenueStream" ], "summary": "Get a RevenueStream record by ID", "operationId": "get_RevenueStream", "parameters": [ { "name": "RevenueStream_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueStream" } } } } } }, "put": { "tags": [ "Entities - RevenueStream" ], "summary": "Update a RevenueStream record", "operationId": "update_RevenueStream", "parameters": [ { "name": "RevenueStream_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueStream" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueStream" } } } } } }, "delete": { "tags": [ "Entities - RevenueStream" ], "summary": "Delete a RevenueStream record", "operationId": "delete_RevenueStream", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "RevenueStream_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/RevenueStream/{RevenueStream_id}/restore": { "put": { "tags": [ "Entities - RevenueStream" ], "summary": "Restore a deleted RevenueStream record", "operationId": "restore_RevenueStream", "parameters": [ { "name": "RevenueStream_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RevenueStream" } } } } } } }, "/entities/SocialPost": { "get": { "tags": [ "Entities - SocialPost" ], "summary": "List SocialPost records", "operationId": "list_SocialPost", "description": "Retrieve a list of SocialPost records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SocialPost" } } } } } } }, "post": { "tags": [ "Entities - SocialPost" ], "summary": "Create a SocialPost record", "operationId": "create_SocialPost", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SocialPost" }, "example": { "agent_id": "Example agent_id", "platform": "twitter", "content": "Example content" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SocialPost" } } } } } }, "delete": { "tags": [ "Entities - SocialPost" ], "summary": "Delete multiple SocialPost records", "operationId": "delete_many_SocialPost", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "agent_id": "Example agent_id" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/SocialPost/bulk": { "post": { "tags": [ "Entities - SocialPost" ], "summary": "Bulk create SocialPost records", "operationId": "bulk_create_SocialPost", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SocialPost" } }, "example": [ { "agent_id": "Example agent_id", "platform": "twitter", "content": "Example content" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SocialPost" } } } } } } }, "put": { "tags": [ "Entities - SocialPost" ], "summary": "Bulk update SocialPost records", "operationId": "bulk_update_SocialPost", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SocialPost" } }, "example": [ { "id": "", "agent_id": "Example agent_id", "platform": "twitter", "content": "Example content" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SocialPost" } } } } } } } }, "/entities/SocialPost/update-many": { "patch": { "tags": [ "Entities - SocialPost" ], "summary": "Update many SocialPost records by query", "operationId": "update_many_SocialPost", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "agent_id": "Example agent_id" }, "data": { "$set": { "agent_id": "Example agent_id" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/SocialPost/{SocialPost_id}": { "get": { "tags": [ "Entities - SocialPost" ], "summary": "Get a SocialPost record by ID", "operationId": "get_SocialPost", "parameters": [ { "name": "SocialPost_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SocialPost" } } } } } }, "put": { "tags": [ "Entities - SocialPost" ], "summary": "Update a SocialPost record", "operationId": "update_SocialPost", "parameters": [ { "name": "SocialPost_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SocialPost" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SocialPost" } } } } } }, "delete": { "tags": [ "Entities - SocialPost" ], "summary": "Delete a SocialPost record", "operationId": "delete_SocialPost", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "SocialPost_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/SocialPost/{SocialPost_id}/restore": { "put": { "tags": [ "Entities - SocialPost" ], "summary": "Restore a deleted SocialPost record", "operationId": "restore_SocialPost", "parameters": [ { "name": "SocialPost_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SocialPost" } } } } } } }, "/entities/Task": { "get": { "tags": [ "Entities - Task" ], "summary": "List Task records", "operationId": "list_Task", "description": "Retrieve a list of Task records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Task" } } } } } } }, "post": { "tags": [ "Entities - Task" ], "summary": "Create a Task record", "operationId": "create_Task", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" }, "example": { "title": "Example title", "type": "content_creation" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } } } }, "delete": { "tags": [ "Entities - Task" ], "summary": "Delete multiple Task records", "operationId": "delete_many_Task", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "title": "Example title" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/Task/bulk": { "post": { "tags": [ "Entities - Task" ], "summary": "Bulk create Task records", "operationId": "bulk_create_Task", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Task" } }, "example": [ { "title": "Example title", "type": "content_creation" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Task" } } } } } } }, "put": { "tags": [ "Entities - Task" ], "summary": "Bulk update Task records", "operationId": "bulk_update_Task", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Task" } }, "example": [ { "id": "", "title": "Example title", "type": "content_creation" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Task" } } } } } } } }, "/entities/Task/update-many": { "patch": { "tags": [ "Entities - Task" ], "summary": "Update many Task records by query", "operationId": "update_many_Task", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "title": "Example title" }, "data": { "$set": { "title": "Example title" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/Task/{Task_id}": { "get": { "tags": [ "Entities - Task" ], "summary": "Get a Task record by ID", "operationId": "get_Task", "parameters": [ { "name": "Task_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } } } }, "put": { "tags": [ "Entities - Task" ], "summary": "Update a Task record", "operationId": "update_Task", "parameters": [ { "name": "Task_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } } } }, "delete": { "tags": [ "Entities - Task" ], "summary": "Delete a Task record", "operationId": "delete_Task", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "Task_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/Task/{Task_id}/restore": { "put": { "tags": [ "Entities - Task" ], "summary": "Restore a deleted Task record", "operationId": "restore_Task", "parameters": [ { "name": "Task_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Task" } } } } } } }, "/entities/TransactionLog": { "get": { "tags": [ "Entities - TransactionLog" ], "summary": "List TransactionLog records", "operationId": "list_TransactionLog", "description": "Retrieve a list of TransactionLog records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionLog" } } } } } } }, "post": { "tags": [ "Entities - TransactionLog" ], "summary": "Create a TransactionLog record", "operationId": "create_TransactionLog", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionLog" }, "example": { "transaction_type": "deposit", "amount": 0, "currency": "Example currency", "transaction_date": "Example transaction_date" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionLog" } } } } } }, "delete": { "tags": [ "Entities - TransactionLog" ], "summary": "Delete multiple TransactionLog records", "operationId": "delete_many_TransactionLog", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "transaction_type": "deposit" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/TransactionLog/bulk": { "post": { "tags": [ "Entities - TransactionLog" ], "summary": "Bulk create TransactionLog records", "operationId": "bulk_create_TransactionLog", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionLog" } }, "example": [ { "transaction_type": "deposit", "amount": 0, "currency": "Example currency", "transaction_date": "Example transaction_date" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionLog" } } } } } } }, "put": { "tags": [ "Entities - TransactionLog" ], "summary": "Bulk update TransactionLog records", "operationId": "bulk_update_TransactionLog", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionLog" } }, "example": [ { "id": "", "transaction_type": "deposit", "amount": 0, "currency": "Example currency", "transaction_date": "Example transaction_date" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionLog" } } } } } } } }, "/entities/TransactionLog/update-many": { "patch": { "tags": [ "Entities - TransactionLog" ], "summary": "Update many TransactionLog records by query", "operationId": "update_many_TransactionLog", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "transaction_type": "deposit" }, "data": { "$set": { "transaction_type": "deposit" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/TransactionLog/{TransactionLog_id}": { "get": { "tags": [ "Entities - TransactionLog" ], "summary": "Get a TransactionLog record by ID", "operationId": "get_TransactionLog", "parameters": [ { "name": "TransactionLog_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionLog" } } } } } }, "put": { "tags": [ "Entities - TransactionLog" ], "summary": "Update a TransactionLog record", "operationId": "update_TransactionLog", "parameters": [ { "name": "TransactionLog_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionLog" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionLog" } } } } } }, "delete": { "tags": [ "Entities - TransactionLog" ], "summary": "Delete a TransactionLog record", "operationId": "delete_TransactionLog", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "TransactionLog_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/TransactionLog/{TransactionLog_id}/restore": { "put": { "tags": [ "Entities - TransactionLog" ], "summary": "Restore a deleted TransactionLog record", "operationId": "restore_TransactionLog", "parameters": [ { "name": "TransactionLog_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TransactionLog" } } } } } } }, "/entities/Workflow": { "get": { "tags": [ "Entities - Workflow" ], "summary": "List Workflow records", "operationId": "list_Workflow", "description": "Retrieve a list of Workflow records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Workflow" } } } } } } }, "post": { "tags": [ "Entities - Workflow" ], "summary": "Create a Workflow record", "operationId": "create_Workflow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Workflow" }, "example": { "name": "Example name", "category": "social_media" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Workflow" } } } } } }, "delete": { "tags": [ "Entities - Workflow" ], "summary": "Delete multiple Workflow records", "operationId": "delete_many_Workflow", "description": "**Warning:** Passing an empty `{}` query will delete ALL records in this entity.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "description": "Query filter to match records to delete" }, "example": { "name": "Example name" } } } }, "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "deleted": { "type": "integer" } } } } } } } } }, "/entities/Workflow/bulk": { "post": { "tags": [ "Entities - Workflow" ], "summary": "Bulk create Workflow records", "operationId": "bulk_create_Workflow", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Workflow" } }, "example": [ { "name": "Example name", "category": "social_media" } ] } } }, "responses": { "200": { "description": "List of created records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Workflow" } } } } } } }, "put": { "tags": [ "Entities - Workflow" ], "summary": "Bulk update Workflow records", "operationId": "bulk_update_Workflow", "description": "Each item must include an 'id' field along with the fields to update.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Workflow" } }, "example": [ { "id": "", "name": "Example name", "category": "social_media" } ] } } }, "responses": { "200": { "description": "List of updated records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Workflow" } } } } } } } }, "/entities/Workflow/update-many": { "patch": { "tags": [ "Entities - Workflow" ], "summary": "Update many Workflow records by query", "operationId": "update_many_Workflow", "description": "Update multiple records matching a query filter. Supports MongoDB update operators ($set, $inc, $push, $pull).", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "query", "data" ], "properties": { "query": { "type": "object", "description": "Query filter to match records" }, "data": { "type": "object", "description": "Update operations to apply" } } }, "example": { "query": { "name": "Example name" }, "data": { "$set": { "name": "Example name" } } } } } }, "responses": { "200": { "description": "Update result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "integer" }, "has_more": { "type": "boolean" } } } } } } } } }, "/entities/Workflow/{Workflow_id}": { "get": { "tags": [ "Entities - Workflow" ], "summary": "Get a Workflow record by ID", "operationId": "get_Workflow", "parameters": [ { "name": "Workflow_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Workflow" } } } } } }, "put": { "tags": [ "Entities - Workflow" ], "summary": "Update a Workflow record", "operationId": "update_Workflow", "parameters": [ { "name": "Workflow_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Workflow" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Workflow" } } } } } }, "delete": { "tags": [ "Entities - Workflow" ], "summary": "Delete a Workflow record", "operationId": "delete_Workflow", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "Workflow_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/entities/Workflow/{Workflow_id}/restore": { "put": { "tags": [ "Entities - Workflow" ], "summary": "Restore a deleted Workflow record", "operationId": "restore_Workflow", "parameters": [ { "name": "Workflow_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Restored record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Workflow" } } } } } } }, "/entities/User": { "get": { "tags": [ "Entities - User" ], "summary": "List User records", "operationId": "list_User", "description": "Retrieve a list of User records with optional filtering, sorting, and pagination.", "parameters": [ { "name": "q", "in": "query", "schema": { "type": "string" }, "description": "JSON query filter, e.g. {\"status\":\"active\"}" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of records to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of records to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order, e.g. -created_date" } ], "responses": { "200": { "description": "List of records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/User" } } } } } } }, "post": { "tags": [ "Entities - User" ], "summary": "Create a User record", "operationId": "create_User", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/User" }, "example": { "role": "admin", "email": "Example email", "full_name": "Example full_name" } } } }, "responses": { "200": { "description": "Created record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/User" } } } } } } }, "/entities/User/{User_id}": { "get": { "tags": [ "Entities - User" ], "summary": "Get a User record by ID", "operationId": "get_User", "parameters": [ { "name": "User_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "The record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/User" } } } } } }, "put": { "tags": [ "Entities - User" ], "summary": "Update a User record", "operationId": "update_User", "parameters": [ { "name": "User_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "responses": { "200": { "description": "Updated record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/User" } } } } } }, "delete": { "tags": [ "Entities - User" ], "summary": "Delete a User record", "operationId": "delete_User", "description": "Soft-deletes the record. Use the restore endpoint to undo.", "parameters": [ { "name": "User_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Record ID" } ], "responses": { "200": { "description": "Deletion result", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" } } } } } } } } }, "/apps/689afeabf1db9c30efe0bd7e/agents/conversations": { "get": { "tags": [ "App Agents" ], "summary": "List conversations", "operationId": "list_agent_conversations", "description": "List the authenticated user's agent conversations. Returns the most recent conversations first.", "parameters": [ { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 100 }, "description": "Maximum number of conversations to return" }, { "name": "skip", "in": "query", "schema": { "type": "integer", "default": 0 }, "description": "Number of conversations to skip (pagination)" }, { "name": "sort_by", "in": "query", "schema": { "type": "string" }, "description": "Field name to sort by. Prefix with '-' for descending order" } ], "responses": { "200": { "description": "List of conversations", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AgentConversation" } } } } } } }, "post": { "tags": [ "App Agents" ], "summary": "Create a conversation", "operationId": "create_agent_conversation", "description": "Start a new conversation with an app agent. Available agent names: `mission_designer`.", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "agent_name" ], "properties": { "agent_name": { "type": "string", "description": "Name of the agent to start a conversation with", "enum": [ "mission_designer" ] }, "metadata": { "type": "object", "description": "Optional metadata to attach to the conversation", "default": {} } } }, "example": { "agent_name": "mission_designer" } } } }, "responses": { "200": { "description": "Created conversation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentConversation" } } } } } } }, "/apps/689afeabf1db9c30efe0bd7e/agents/conversations/{conversation_id}": { "get": { "tags": [ "App Agents" ], "summary": "Get a conversation", "operationId": "get_agent_conversation", "description": "Retrieve a specific conversation by ID, including all messages.", "parameters": [ { "name": "conversation_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Conversation ID" } ], "responses": { "200": { "description": "The conversation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentConversation" } } } } } } }, "/apps/689afeabf1db9c30efe0bd7e/agents/conversations/{conversation_id}/messages": { "post": { "tags": [ "App Agents" ], "summary": "Send a message", "operationId": "send_agent_message", "description": "Send a message to an existing agent conversation and receive the agent's response. The agent processes the message and returns its reply.", "parameters": [ { "name": "conversation_id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Conversation ID" } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "content" ], "properties": { "content": { "type": "string", "description": "The message text to send to the agent" }, "role": { "type": "string", "enum": [ "user" ], "default": "user", "description": "Message role" } } }, "example": { "role": "user", "content": "Hello, how can you help me?" } } } }, "responses": { "200": { "description": "Agent response message", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentMessage" } } } } } } } }, "components": { "securitySchemes": { "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "api_key", "description": "Your API key. Obtain it from your user profile or via `User.me()` in the app SDK." } }, "schemas": { "Agent": { "type": "object", "properties": { "name": { "type": "string", "description": "Agent name" }, "description": { "type": "string", "description": "Agent description and purpose" }, "type": { "type": "string", "enum": [ "social_manager", "content_creator", "data_analyst", "customer_service", "lead_generator", "workflow_automator", "research_assistant", "listing_bot", "payment_agent", "auto_ads_bot", "pricing_optimizer", "market_researcher", "design_generator", "seo_specialist", "canva_template_architect", "children_toys_specialist", "kids_entertainment_agent", "educational_toys_curator", "toy_safety_compliance", "baby_products_expert", "home_automation_specialist", "smart_home_integrator", "home_decor_designer", "furniture_curator", "kitchen_appliance_expert", "home_security_agent", "gardening_specialist", "interior_design_bot", "corporate_b2b_agent", "enterprise_sales_bot", "corporate_training_agent", "hr_automation_specialist", "office_supplies_manager", "corporate_event_planner", "business_consulting_agent", "procurement_specialist", "high_tech_specialist", "ai_ml_products_expert", "robotics_specialist", "iot_devices_curator", "software_saas_agent", "cloud_services_specialist", "cybersecurity_agent", "electronics_expert", "consumer_tech_reviewer", "fashion_stylist_agent", "beauty_cosmetics_expert", "health_wellness_specialist", "fitness_equipment_curator", "sports_gear_specialist", "nutrition_supplements_agent", "automotive_specialist", "vehicle_accessories_expert", "pet_products_specialist", "pet_care_advisor", "books_media_curator", "digital_courses_agent", "arts_crafts_specialist", "musical_instruments_expert", "gaming_esports_agent", "video_game_curator", "travel_tourism_specialist", "hotel_hospitality_agent", "food_beverage_expert", "restaurant_supplies_specialist", "outdoor_adventure_specialist", "camping_gear_curator", "luxury_goods_specialist", "jewelry_watches_expert", "real_estate_agent", "property_management_bot", "construction_materials_specialist", "industrial_equipment_agent", "manufacturing_automation", "supply_chain_optimizer", "logistics_specialist", "warehouse_management_agent", "medical_devices_specialist", "healthcare_products_expert", "pharmaceutical_agent", "agriculture_specialist", "farming_equipment_expert", "sustainability_agent", "eco_products_curator", "renewable_energy_specialist", "financial_services_agent", "insurance_specialist", "legal_services_agent", "educational_services_specialist", "event_planning_agent", "wedding_specialist", "custom" ], "description": "Agent type/specialization", "default": "custom" }, "status": { "type": "string", "enum": [ "active", "paused", "stopped", "error" ], "description": "Current agent status", "default": "paused" }, "system_prompt": { "type": "string", "description": "System prompt defining agent behavior", "default": "You are a helpful AI assistant. Follow instructions carefully and provide accurate, helpful responses." }, "capabilities": { "type": "array", "items": { "type": "string", "enum": [ "social_posting", "content_generation", "data_analysis", "email_automation", "web_scraping", "api_integration", "file_processing", "image_generation", "marketplace_listing", "payment_processing", "ad_creation", "seo_optimization", "price_optimization", "task_handoff", "quality_review", "lead_scoring", "compliance_checking", "safety_certification", "b2b_negotiation", "contract_management", "vendor_sourcing", "inventory_forecasting", "trend_prediction", "multi_language_support", "video_generation", "3d_modeling", "voice_synthesis", "chatbot_integration" ] }, "description": "Agent capabilities" }, "current_workload": { "type": "number", "description": "Number of active tasks", "default": 0 }, "max_workload": { "type": "number", "description": "Maximum concurrent tasks", "default": 5 }, "task_queue": { "type": "array", "items": { "type": "string" }, "description": "Queue of pending task IDs" }, "collaboration_rules": { "type": "object", "properties": { "can_accept_handoffs": { "type": "boolean", "default": true }, "can_initiate_handoffs": { "type": "boolean", "default": true }, "preferred_handoff_agents": { "type": "array", "items": { "type": "string" } }, "expertise_areas": { "type": "array", "items": { "type": "string" } } } }, "revenue_config": { "type": "object", "properties": { "target_monthly_revenue": { "type": "number", "default": 100 }, "commission_rate": { "type": "number", "default": 0.1 }, "marketplace_apis": { "type": "object", "properties": { "etsy_api_key": { "type": "string" }, "amazon_api_key": { "type": "string" }, "redbubble_api_key": { "type": "string" }, "gumroad_api_key": { "type": "string" } } }, "payment_methods": { "type": "object", "properties": { "paypal_client_id": { "type": "string" }, "stripe_api_key": { "type": "string" }, "payoneer_api_key": { "type": "string" } } } } }, "social_accounts": { "type": "array", "items": { "type": "object", "properties": { "platform": { "type": "string", "enum": [ "twitter", "linkedin", "facebook", "instagram", "tiktok" ] }, "account_handle": { "type": "string" }, "enabled": { "type": "boolean", "default": true } } } }, "automation_config": { "type": "object", "properties": { "posting_frequency": { "type": "string", "enum": [ "real_time", "hourly", "daily", "weekly", "custom" ], "default": "daily" }, "content_themes": { "type": "array", "items": { "type": "string" } }, "engagement_rules": { "type": "object", "properties": { "auto_like": { "type": "boolean", "default": false }, "auto_comment": { "type": "boolean", "default": false }, "auto_follow": { "type": "boolean", "default": false } } } } }, "performance_metrics": { "type": "object", "properties": { "tasks_completed": { "type": "number", "default": 0 }, "handoffs_initiated": { "type": "number", "default": 0 }, "handoffs_received": { "type": "number", "default": 0 }, "success_rate": { "type": "number", "default": 0 }, "revenue_generated": { "type": "number", "default": 0 }, "last_active": { "type": "string", "format": "date-time" }, "total_runtime": { "type": "number", "default": 0 } } }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "name", "type", "system_prompt" ], "description": "Agent entity" }, "AgentHandoff": { "type": "object", "properties": { "task_id": { "type": "string", "description": "Task being handed off" }, "from_agent_id": { "type": "string", "description": "Agent initiating handoff" }, "to_agent_id": { "type": "string", "description": "Agent receiving handoff" }, "reason": { "type": "string", "enum": [ "capability_match", "workload_balance", "specialization_needed", "workflow_requirement", "error_recovery" ], "description": "Reason for handoff" }, "context": { "type": "string", "description": "Additional context and instructions for receiving agent" }, "handoff_data": { "type": "object", "description": "Data and state being passed between agents" }, "status": { "type": "string", "enum": [ "pending", "accepted", "rejected", "completed" ], "default": "pending" }, "response_message": { "type": "string", "description": "Response from receiving agent" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "task_id", "from_agent_id", "to_agent_id", "reason" ], "description": "AgentHandoff entity" }, "AgentTemplate": { "type": "object", "properties": { "name": { "type": "string", "description": "Template name" }, "description": { "type": "string", "description": "Template description" }, "category": { "type": "string", "enum": [ "social_media", "content_creation", "data_analysis", "customer_service", "lead_generation", "automation" ] }, "agent_config": { "type": "object", "description": "Pre-configured agent settings" }, "workflow_config": { "type": "object", "description": "Associated workflow configuration" }, "use_count": { "type": "number", "default": 0 }, "rating": { "type": "number", "default": 5 }, "tags": { "type": "array", "items": { "type": "string" } }, "is_featured": { "type": "boolean", "default": false }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "name", "description", "category", "agent_config" ], "description": "AgentTemplate entity" }, "AgentThreshold": { "type": "object", "properties": { "agent_id": { "type": "string", "description": "ID of the target agent" }, "agent_name": { "type": "string", "description": "Agent name (cached for display)" }, "pause_below_revenue": { "type": "number", "description": "Pause agent if revenue_generated falls below this value", "default": 0 }, "activate_above_revenue": { "type": "number", "description": "Re-activate agent if revenue_generated exceeds this value", "default": 0 }, "min_success_rate": { "type": "number", "description": "Pause agent if success_rate drops below this percentage (0-100)", "default": 0 }, "daily_cost": { "type": "number", "description": "Estimated daily operating cost ($). If revenue_generated < daily_cost, agent is paused to stop budget drain.", "default": 0 }, "enabled": { "type": "boolean", "description": "Whether this threshold rule is active", "default": true }, "last_action": { "type": "string", "enum": [ "none", "paused", "activated" ], "default": "none" }, "last_action_at": { "type": "string", "format": "date-time" }, "last_action_reason": { "type": "string" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "agent_id", "agent_name" ], "description": "AgentThreshold entity" }, "AppProject": { "type": "object", "properties": { "name": { "type": "string", "description": "App name" }, "concept": { "type": "string", "description": "App concept and value proposition" }, "status": { "type": "string", "enum": [ "ideation", "architecting", "building", "monetizing", "deploying", "live", "scaling", "paused", "failed" ], "default": "ideation" }, "revenue_model": { "type": "string", "enum": [ "saas_subscription", "one_time_purchase", "freemium", "marketplace_fee", "affiliate", "ads", "api_access", "custom" ], "default": "saas_subscription" }, "tech_stack": { "type": "array", "items": { "type": "string" } }, "target_market": { "type": "string" }, "estimated_mrr": { "type": "number", "default": 0 }, "actual_mrr": { "type": "number", "default": 0 }, "deployed_url": { "type": "string" }, "repo_url": { "type": "string" }, "assigned_meta_agent": { "type": "string" }, "build_progress": { "type": "object", "properties": { "architecture_done": { "type": "boolean", "default": false }, "mvp_built": { "type": "boolean", "default": false }, "payment_integrated": { "type": "boolean", "default": false }, "deployed": { "type": "boolean", "default": false }, "first_user": { "type": "boolean", "default": false }, "first_revenue": { "type": "boolean", "default": false } } }, "milestones": { "type": "array", "items": { "type": "object", "properties": { "title": { "type": "string" }, "completed_at": { "type": "string" }, "agent": { "type": "string" } } } }, "monthly_costs": { "type": "number", "default": 0 }, "total_revenue_generated": { "type": "number", "default": 0 }, "niche": { "type": "string" }, "priority": { "type": "string", "enum": [ "low", "medium", "high", "critical" ], "default": "medium" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "name", "concept", "revenue_model" ], "description": "AppProject entity" }, "Campaign": { "type": "object", "properties": { "name": { "type": "string", "description": "Campaign name" }, "description": { "type": "string", "description": "Campaign description and goals" }, "course_name": { "type": "string", "description": "Name of the course being promoted" }, "target_audience": { "type": "string", "description": "The primary audience for this campaign" }, "keywords": { "type": "array", "items": { "type": "string" }, "description": "Keywords for targeting and SEO" }, "image_url": { "type": "string", "description": "URL of the primary promotional image" }, "course_url": { "type": "string", "description": "URL of the course page" }, "status": { "type": "string", "enum": [ "active", "paused", "completed" ], "default": "active" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "name", "course_name" ], "description": "Campaign entity" }, "Mission": { "type": "object", "properties": { "mission_id": { "type": "string", "description": "Unique mission identifier (e.g., TRI-001)" }, "title": { "type": "string", "description": "Mission title/name" }, "type": { "type": "string", "enum": [ "financial_transaction", "agent_deployment", "revenue_generation", "generative_enterprise", "product_development", "market_expansion", "api_key_distribution", "custom" ], "description": "Mission type classification" }, "priority": { "type": "string", "enum": [ "low", "medium", "high", "critical" ], "description": "Mission priority level", "default": "medium" }, "status": { "type": "string", "enum": [ "pending", "assigned", "in_progress", "deployed", "queued", "completed", "failed", "paused" ], "description": "Current mission status", "default": "pending" }, "assigned_agent_id": { "type": "string", "description": "Primary agent responsible for mission coordination" }, "assigned_agents": { "type": "array", "items": { "type": "string" }, "description": "Array of all agents assigned to this mission" }, "mission_parameters": { "type": "object", "description": "Detailed mission configuration and parameters" }, "progress_data": { "type": "object", "description": "Real-time mission progress tracking" }, "estimated_duration_hours": { "type": "number", "description": "Estimated completion time in hours" }, "deadline": { "type": "string", "description": "Mission deadline", "format": "date-time" }, "completion_notes": { "type": "string", "description": "Notes upon mission completion or status updates" }, "revenue_generated": { "type": "number", "description": "Revenue generated from this mission" }, "execution_plan": { "type": "array", "items": { "type": "object", "properties": { "step": { "type": "number" }, "agent_id": { "type": "string" }, "action": { "type": "string" }, "status": { "type": "string", "enum": [ "pending", "in_progress", "completed", "failed" ] }, "result": { "type": "object" }, "estimated_duration": { "type": "string" } } }, "description": "Step-by-step execution plan with agent assignments" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "mission_id", "title", "type" ], "description": "Mission entity" }, "PayoutBatch": { "type": "object", "properties": { "batch_id": { "type": "string", "description": "Unique batch identifier" }, "total_amount": { "type": "number" }, "currency": { "type": "string", "enum": [ "USD", "GBP", "EUR", "JPY" ], "default": "USD" }, "status": { "type": "string", "enum": [ "pending", "approved", "submitted", "processing", "completed", "failed" ], "default": "pending" }, "revenue_event_ids": { "type": "array", "items": { "type": "string" } }, "notes": { "type": "string" }, "processed_at": { "type": "string", "format": "date-time" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "batch_id", "total_amount", "currency" ], "description": "PayoutBatch entity" }, "PayoutItem": { "type": "object", "properties": { "item_id": { "type": "string" }, "batch_id": { "type": "string", "description": "Linked PayoutBatch" }, "recipient_name": { "type": "string" }, "recipient": { "type": "string", "description": "Account number, email, or wallet" }, "recipient_type": { "type": "string", "enum": [ "paypal_email", "bank_account", "crypto_wallet", "payoneer" ], "default": "paypal_email" }, "bank_name": { "type": "string" }, "amount": { "type": "number" }, "currency": { "type": "string", "enum": [ "USD", "GBP", "EUR", "JPY" ], "default": "USD" }, "status": { "type": "string", "enum": [ "pending", "processing", "success", "failed", "refunded" ], "default": "pending" }, "external_transaction_id": { "type": "string" }, "error_message": { "type": "string" }, "processed_at": { "type": "string", "format": "date-time" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "batch_id", "recipient", "recipient_type", "amount", "currency" ], "description": "PayoutItem entity" }, "PayoutRecipient": { "type": "object", "properties": { "name": { "type": "string", "description": "Recipient full name" }, "recipient_type": { "type": "string", "enum": [ "paypal_email", "bank_account", "crypto_wallet", "payoneer" ], "default": "bank_account" }, "currency": { "type": "string", "enum": [ "USD", "GBP", "EUR", "JPY", "BTC", "ETH", "USDT" ], "default": "USD" }, "bank_name": { "type": "string" }, "country": { "type": "string" }, "account_identifier": { "type": "string", "description": "Account number, email, IBAN, or wallet address" }, "routing_number": { "type": "string" }, "swift_bic": { "type": "string" }, "sort_code": { "type": "string" }, "bank_code": { "type": "string" }, "branch_code": { "type": "string" }, "bank_address": { "type": "string" }, "account_type": { "type": "string", "enum": [ "CHECKING", "SAVINGS", "CURRENT" ] }, "is_default": { "type": "boolean", "default": false }, "notes": { "type": "string" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "name", "recipient_type", "currency", "account_identifier" ], "description": "PayoutRecipient entity" }, "ProductListing": { "type": "object", "properties": { "title": { "type": "string", "description": "Product title" }, "description": { "type": "string", "description": "Product description" }, "marketplace": { "type": "string", "enum": [ "etsy", "amazon", "redbubble", "gumroad", "shopify", "ebay", "canva" ], "description": "Target marketplace" }, "category": { "type": "string", "description": "Product category" }, "price": { "type": "number", "description": "Product price" }, "tags": { "type": "array", "items": { "type": "string" }, "description": "SEO and search tags" }, "images": { "type": "array", "items": { "type": "string" }, "description": "Product image URLs" }, "status": { "type": "string", "enum": [ "draft", "pending_approval", "published", "sold", "failed" ], "default": "draft" }, "created_by_agent": { "type": "string", "description": "Agent that created this listing" }, "revenue_stream_id": { "type": "string", "description": "Associated revenue stream" }, "external_listing_id": { "type": "string", "description": "ID from the marketplace" }, "sales_metrics": { "type": "object", "properties": { "views": { "type": "number", "default": 0 }, "clicks": { "type": "number", "default": 0 }, "favorites": { "type": "number", "default": 0 }, "sales": { "type": "number", "default": 0 }, "revenue": { "type": "number", "default": 0 } } }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "title", "marketplace", "price", "created_by_agent" ], "description": "ProductListing entity" }, "ReconciliationAlert": { "type": "object", "properties": { "alert_type": { "type": "string", "enum": [ "missing_payout", "amount_mismatch", "orphaned_payout", "duplicate_event", "overpaid" ], "description": "Type of discrepancy detected" }, "severity": { "type": "string", "enum": [ "low", "medium", "high", "critical" ], "default": "medium" }, "status": { "type": "string", "enum": [ "open", "reviewed", "resolved", "dismissed" ], "default": "open" }, "revenue_event_id": { "type": "string", "description": "Related RevenueEvent ID (if applicable)" }, "payout_batch_id": { "type": "string", "description": "Related PayoutBatch ID (if applicable)" }, "payout_item_id": { "type": "string", "description": "Related PayoutItem ID (if applicable)" }, "expected_amount": { "type": "number" }, "actual_amount": { "type": "number" }, "currency": { "type": "string", "default": "USD" }, "description": { "type": "string", "description": "Human-readable explanation of the discrepancy" }, "detected_at": { "type": "string", "format": "date-time" }, "dedup_key": { "type": "string", "description": "Unique key to prevent duplicate alerts for the same issue" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "alert_type", "severity", "description", "dedup_key" ], "description": "ReconciliationAlert entity" }, "RevenueEvent": { "type": "object", "properties": { "event_id": { "type": "string", "description": "Unique event identifier" }, "source": { "type": "string", "enum": [ "mission_completed", "course_sale", "affiliate_commission", "agent_generated", "manual_entry", "product_sale", "subscription" ], "description": "Revenue source type" }, "amount": { "type": "number", "description": "Revenue amount" }, "currency": { "type": "string", "enum": [ "USD", "GBP", "EUR", "JPY", "BTC", "ETH", "USDT" ], "default": "USD" }, "status": { "type": "string", "enum": [ "projected", "confirmed", "paid_out", "cancelled" ], "default": "projected" }, "confirmation_date": { "type": "string", "format": "date" }, "event_hash": { "type": "string", "description": "Deduplication hash" }, "source_id": { "type": "string", "description": "ID of originating mission/transaction" }, "payout_batch_id": { "type": "string", "description": "Linked payout batch once paid out" }, "description": { "type": "string" }, "metadata": { "type": "object" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "source", "amount", "currency" ], "description": "RevenueEvent entity" }, "RevenueStream": { "type": "object", "properties": { "name": { "type": "string", "description": "Revenue stream name" }, "type": { "type": "string", "enum": [ "etsy_pod", "amazon_kdp", "redbubble", "gumroad", "course_sales", "canva_templates", "affiliate", "freelance", "custom" ], "description": "Type of revenue stream" }, "status": { "type": "string", "enum": [ "active", "paused", "setup", "blocked" ], "default": "setup" }, "target_monthly_revenue": { "type": "number", "description": "Monthly revenue target" }, "kpi_metrics": { "type": "object", "properties": { "listings_created": { "type": "number", "default": 0 }, "products_sold": { "type": "number", "default": 0 }, "conversion_rate": { "type": "number", "default": 0 }, "average_order_value": { "type": "number", "default": 0 }, "total_revenue": { "type": "number", "default": 0 } } }, "responsible_agent_ids": { "type": "array", "items": { "type": "string" }, "description": "Agents responsible for this revenue stream" }, "marketplace_config": { "type": "object", "properties": { "platform": { "type": "string" }, "api_credentials": { "type": "object" }, "account_settings": { "type": "object" }, "automation_rules": { "type": "object" } } }, "available_for_payout": { "type": "number", "default": 0 }, "payout_status": { "type": "string", "enum": [ "idle", "pending", "processing", "completed", "failed" ], "default": "idle" }, "last_payout_date": { "type": "string", "format": "date-time" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "name", "type", "target_monthly_revenue" ], "description": "RevenueStream entity" }, "SocialPost": { "type": "object", "properties": { "agent_id": { "type": "string", "description": "ID of the agent that created this post" }, "platform": { "type": "string", "enum": [ "twitter", "linkedin", "facebook", "instagram", "tiktok" ] }, "content": { "type": "string", "description": "Post content" }, "media_urls": { "type": "array", "items": { "type": "string" }, "description": "URLs of attached media" }, "hashtags": { "type": "array", "items": { "type": "string" } }, "status": { "type": "string", "enum": [ "draft", "scheduled", "published", "failed" ], "default": "draft" }, "scheduled_time": { "type": "string", "format": "date-time" }, "published_time": { "type": "string", "format": "date-time" }, "engagement_metrics": { "type": "object", "properties": { "likes": { "type": "number", "default": 0 }, "comments": { "type": "number", "default": 0 }, "shares": { "type": "number", "default": 0 }, "views": { "type": "number", "default": 0 } } }, "external_id": { "type": "string", "description": "ID from the social platform" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "agent_id", "platform", "content" ], "description": "SocialPost entity" }, "Task": { "type": "object", "properties": { "title": { "type": "string", "description": "Task title" }, "description": { "type": "string", "description": "Detailed task description" }, "type": { "type": "string", "enum": [ "content_creation", "social_posting", "data_analysis", "customer_outreach", "lead_qualification", "research", "automation_setup", "quality_review", "canva_template_creation", "marketplace_listing" ], "description": "Type of task" }, "priority": { "type": "string", "enum": [ "low", "medium", "high", "urgent" ], "default": "medium" }, "status": { "type": "string", "enum": [ "pending", "assigned", "in_progress", "completed", "failed", "handed_off" ], "default": "pending" }, "assigned_agent_id": { "type": "string", "description": "Currently assigned agent" }, "requesting_agent_id": { "type": "string", "description": "Agent that originally requested this task" }, "workflow_id": { "type": "string", "description": "Associated workflow if applicable" }, "dependencies": { "type": "array", "items": { "type": "string" }, "description": "Task IDs this task depends on" }, "handoff_history": { "type": "array", "items": { "type": "object", "properties": { "from_agent_id": { "type": "string" }, "to_agent_id": { "type": "string" }, "timestamp": { "type": "string", "format": "date-time" }, "reason": { "type": "string" }, "context": { "type": "string" } } } }, "result_data": { "type": "object", "description": "Task execution results and outputs" }, "due_date": { "type": "string", "format": "date-time" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "title", "type" ], "description": "Task entity" }, "TransactionLog": { "type": "object", "properties": { "transaction_type": { "type": "string", "enum": [ "deposit", "withdrawal", "transfer", "fee", "refund" ], "default": "deposit" }, "amount": { "type": "number" }, "currency": { "type": "string", "default": "USD" }, "description": { "type": "string" }, "transaction_date": { "type": "string", "format": "date" }, "category": { "type": "string", "enum": [ "revenue", "withdrawal", "fee", "refund", "transfer" ] }, "payment_method": { "type": "string", "enum": [ "paypal", "bank_transfer", "crypto", "payoneer", "internal" ] }, "source": { "type": "string", "description": "Sender/origin label" }, "reference_id": { "type": "string", "description": "Linked PayoutItem or RevenueEvent ID" }, "agent_responsible": { "type": "string", "default": "FinancialSupervisor" }, "status": { "type": "string", "enum": [ "pending", "confirmed", "failed" ], "default": "confirmed" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "transaction_type", "amount", "currency", "transaction_date" ], "description": "TransactionLog entity" }, "Workflow": { "type": "object", "properties": { "name": { "type": "string", "description": "Workflow name" }, "description": { "type": "string", "description": "Workflow description" }, "category": { "type": "string", "enum": [ "social_media", "content_creation", "data_processing", "customer_engagement", "lead_generation", "analytics", "custom" ], "default": "custom" }, "status": { "type": "string", "enum": [ "active", "draft", "paused", "archived" ], "default": "draft" }, "trigger": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "schedule", "webhook", "manual", "event" ] }, "config": { "type": "object" } } }, "nodes": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "enum": [ "trigger", "action", "condition", "delay", "agent_handoff" ] }, "position": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" } } }, "config": { "type": "object" }, "connections": { "type": "array", "items": { "type": "string" } } } } }, "execution_stats": { "type": "object", "properties": { "total_runs": { "type": "number", "default": 0 }, "successful_runs": { "type": "number", "default": 0 }, "last_run": { "type": "string", "format": "date-time" }, "average_duration": { "type": "number", "default": 0 } } }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "name", "category" ], "description": "Workflow entity" }, "User": { "type": "object", "properties": { "role": { "type": "string", "enum": [ "admin", "user" ], "description": "The role of the user in the app" }, "email": { "type": "string", "description": "The email of the user" }, "full_name": { "type": "string", "description": "The full name of the user" }, "id": { "type": "string", "description": "Unique record identifier" }, "created_date": { "type": "string", "format": "date-time", "description": "Record creation timestamp" }, "updated_date": { "type": "string", "format": "date-time", "description": "Record last update timestamp" }, "created_by_id": { "type": "string", "description": "ID of the user who created the record" } }, "required": [ "email", "role", "full_name" ], "description": "User entity" }, "AgentConversation": { "type": "object", "properties": { "id": { "type": "string", "description": "Unique conversation identifier" }, "agent_name": { "type": "string", "description": "Name of the agent" }, "created_by_id": { "type": "string", "description": "ID of the user who created the conversation" }, "messages": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "role": { "type": "string", "enum": [ "user", "assistant" ] }, "content": { "type": "string" } } }, "description": "List of messages in the conversation" }, "metadata": { "type": "object", "description": "Custom metadata attached to the conversation" }, "created_date": { "type": "string", "format": "date-time" }, "updated_date": { "type": "string", "format": "date-time" } }, "description": "An agent conversation with its messages" }, "AgentMessage": { "type": "object", "properties": { "id": { "type": "string", "description": "Unique message identifier" }, "role": { "type": "string", "enum": [ "user", "assistant" ], "description": "Message role" }, "content": { "type": "string", "description": "The message text content" }, "tool_calls": { "type": "array", "nullable": true, "description": "List of tool calls made by the agent during this response", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string", "description": "Tool name" }, "status": { "type": "string", "enum": [ "running", "success", "error", "stopped" ] }, "results": { "description": "Tool execution results" } } } }, "usage": { "type": "object", "nullable": true, "description": "Token usage metrics for this message", "properties": { "prompt_tokens": { "type": "integer" }, "completion_tokens": { "type": "integer" }, "credits_charged": { "type": "number", "nullable": true } } }, "additional_message_params": { "type": "object", "description": "Extra metadata including timing info, tool iteration count, and bottleneck details" }, "metadata": { "type": "object", "description": "Message metadata including created_date and created_by_email" } }, "description": "A message in an agent conversation, including the agent's response with tool calls and usage metrics" } } }, "tags": [ { "name": "Entities - Agent", "description": "CRUD operations for Agent records" }, { "name": "Entities - AgentHandoff", "description": "CRUD operations for AgentHandoff records" }, { "name": "Entities - AgentTemplate", "description": "CRUD operations for AgentTemplate records" }, { "name": "Entities - AgentThreshold", "description": "CRUD operations for AgentThreshold records" }, { "name": "Entities - AppProject", "description": "CRUD operations for AppProject records" }, { "name": "Entities - Campaign", "description": "CRUD operations for Campaign records" }, { "name": "Entities - Mission", "description": "CRUD operations for Mission records" }, { "name": "Entities - PayoutBatch", "description": "CRUD operations for PayoutBatch records" }, { "name": "Entities - PayoutItem", "description": "CRUD operations for PayoutItem records" }, { "name": "Entities - PayoutRecipient", "description": "CRUD operations for PayoutRecipient records" }, { "name": "Entities - ProductListing", "description": "CRUD operations for ProductListing records" }, { "name": "Entities - ReconciliationAlert", "description": "CRUD operations for ReconciliationAlert records" }, { "name": "Entities - RevenueEvent", "description": "CRUD operations for RevenueEvent records" }, { "name": "Entities - RevenueStream", "description": "CRUD operations for RevenueStream records" }, { "name": "Entities - SocialPost", "description": "CRUD operations for SocialPost records" }, { "name": "Entities - Task", "description": "CRUD operations for Task records" }, { "name": "Entities - TransactionLog", "description": "CRUD operations for TransactionLog records" }, { "name": "Entities - Workflow", "description": "CRUD operations for Workflow records" }, { "name": "Entities - User", "description": "CRUD operations for User records" }, { "name": "App Agents", "description": "Interact with app agents via conversations" } ] }