{ "openapi": "3.1.2", "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", "info": { "title": "AI21 Labs Universal API", "version": "0.0.15", "description": "Generate text, plan multi-step AI runs, and manage AI21 file libraries with Jamba and Maestro." }, "servers": [ { "url": "https://connect.mindcloud.co" } ], "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest" }, "security": [ { "bearerAuth": [] } ], "paths": { "/v1/universal/aI21Labs/latest/actions/analyze-sentiment": { "post": { "operationId": "aI21Labs.analyze-sentiment", "summary": "Analyze Sentiment", "description": "Creates a sentiment analysis run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/analyze-sentiment" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The text whose sentiment should be analyzed.", "example": "Paste the customer feedback, review, message, or text to analyze." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "high", "low", "medium" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/brainstorm-ideas": { "post": { "operationId": "aI21Labs.brainstorm-ideas", "summary": "Brainstorm Ideas", "description": "Creates an idea brainstorming run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/brainstorm-ideas" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The topic, problem, or goal to brainstorm around.", "example": "Describe the problem, goal, or theme you want ideas for." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/classify-text": { "post": { "operationId": "aI21Labs.classify-text", "summary": "Classify Text", "description": "Creates a text classification run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/classify-text" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The text to classify, including any labels, categories, or rules.", "example": "Include the text to classify and the labels or decision rules to use." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/compare-texts": { "post": { "operationId": "aI21Labs.compare-texts", "summary": "Compare Texts", "description": "Creates a text comparison run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/compare-texts" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The passages, versions, or drafts to compare.", "example": "Paste both texts and indicate that they should be compared." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/convert-to-bullet-list": { "post": { "operationId": "aI21Labs.convert-to-bullet-list", "summary": "Convert To Bullet List", "description": "Creates a bullet list conversion run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/convert-to-bullet-list" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The content to convert into a bullet list.", "example": "Paste the content you want rewritten as concise bullets." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/convert-to-json": { "post": { "operationId": "aI21Labs.convert-to-json", "summary": "Convert To JSON", "description": "Creates a JSON conversion run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/convert-to-json" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The content to convert into JSON output.", "example": "Paste the text and specify the JSON structure you want if needed." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/create-executive-brief": { "post": { "operationId": "aI21Labs.create-executive-brief", "summary": "Create Executive Brief", "description": "Creates an executive brief run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/create-executive-brief" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The source material to convert into an executive-ready brief.", "example": "Paste the source material that should be summarized for executives." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/create-maestro-run": { "post": { "operationId": "aI21Labs.create-maestro-run", "summary": "Create Maestro Run", "description": "Creates a generic Maestro run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/create-maestro-run" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The task, question, or source text to send to AI21 Maestro.", "example": "Describe the task or paste the text you want Maestro to handle." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" }, "system_prompt": { "type": "string", "description": "Optional system instructions that further guide the generic Maestro run.", "example": "Optional system instructions to guide the overall run.", "x-mindcloud-advanced": true } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/create-outline": { "post": { "operationId": "aI21Labs.create-outline", "summary": "Create Outline", "description": "Creates an outline generation run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/create-outline" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The source material to organize into a clear outline.", "example": "Paste the content you want turned into an outline." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/draft-email": { "post": { "operationId": "aI21Labs.draft-email", "summary": "Draft Email", "description": "Creates an email drafting run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/draft-email" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The email request, context, audience, and any tone guidance.", "example": "Describe the email you need, the audience, and any important details." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/draft-meeting-notes": { "post": { "operationId": "aI21Labs.draft-meeting-notes", "summary": "Draft Meeting Notes", "description": "Creates a meeting notes run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/draft-meeting-notes" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The meeting content to convert into clean notes.", "example": "Paste the meeting transcript, rough notes, or bullet points." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/evaluate-against-requirements": { "post": { "operationId": "aI21Labs.evaluate-against-requirements", "summary": "Evaluate Against Requirements", "description": "Creates a requirements evaluation run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/evaluate-against-requirements" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The draft, output, or proposal alongside the requirements to evaluate.", "example": "Provide the draft plus the requirements or rubric it should be evaluated against." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/explain-technical-concept": { "post": { "operationId": "aI21Labs.explain-technical-concept", "summary": "Explain Technical Concept", "description": "Creates a technical explanation run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/explain-technical-concept" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The concept to explain, plus any audience or context guidance.", "example": "Name the concept and, if relevant, the audience or knowledge level." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/extract-keywords": { "post": { "operationId": "aI21Labs.extract-keywords", "summary": "Extract Keywords", "description": "Creates a keyword extraction run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/extract-keywords" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The text to extract important keywords and phrases from.", "example": "Paste the text to analyze for keywords and phrases." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/extract-structured-data": { "post": { "operationId": "aI21Labs.extract-structured-data", "summary": "Extract Structured Data", "description": "Creates a structured data extraction run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/extract-structured-data" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The source text to convert into structured output.", "example": "Paste the unstructured text and specify the fields you want extracted." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/generate-action-items": { "post": { "operationId": "aI21Labs.generate-action-items", "summary": "Generate Action Items", "description": "Creates an action item extraction run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/generate-action-items" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The source content to analyze for action items.", "example": "Paste the discussion, transcript, or notes to extract tasks from." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/generate-blog-draft": { "post": { "operationId": "aI21Labs.generate-blog-draft", "summary": "Generate Blog Draft", "description": "Creates a blog draft run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/generate-blog-draft" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The ideas, source material, or requirements for the blog draft.", "example": "Provide the topic, audience, and any key points for the blog draft." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/generate-checklist": { "post": { "operationId": "aI21Labs.generate-checklist", "summary": "Generate Checklist", "description": "Creates a checklist generation run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/generate-checklist" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The content or process to convert into a checklist.", "example": "Paste the process, launch plan, or content you want turned into a checklist." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/generate-faq": { "post": { "operationId": "aI21Labs.generate-faq", "summary": "Generate FAQ", "description": "Creates an FAQ generation run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/generate-faq" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The source material to convert into a useful FAQ.", "example": "Paste the product, policy, or document content to turn into an FAQ." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/generate-product-description": { "post": { "operationId": "aI21Labs.generate-product-description", "summary": "Generate Product Description", "description": "Creates a product description run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/generate-product-description" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The product details, benefits, and positioning context.", "example": "Provide the product name, features, audience, and any positioning notes." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/generate-social-post": { "post": { "operationId": "aI21Labs.generate-social-post", "summary": "Generate Social Post", "description": "Creates a social post run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/generate-social-post" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The campaign, announcement, or topic for the social post.", "example": "Describe the announcement, audience, channel, and any CTA for the social post." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/generate-study-guide": { "post": { "operationId": "aI21Labs.generate-study-guide", "summary": "Generate Study Guide", "description": "Creates a study guide run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/generate-study-guide" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The source material to convert into a study guide.", "example": "Paste the material you want turned into a study guide." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/identify-risks": { "post": { "operationId": "aI21Labs.identify-risks", "summary": "Identify Risks", "description": "Creates a risk identification run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/identify-risks" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The initiative, decision, or change to analyze for risks.", "example": "Describe the plan, launch, migration, or change you want risk analysis for." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/list-library-files": { "get": { "operationId": "aI21Labs.list-library-files", "summary": "List Library Files", "description": "Retrieves documents from your AI21 Labs library.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/list-library-files" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "fields", "in": "query", "required": false, "description": "Comma-separated response fields to include.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "createdBy": { "type": "string", "description": "The creator or owner identifier when available." }, "creationDate": { "type": "string", "format": "date-time", "description": "The file creation timestamp." }, "dataSource": { "type": "string", "description": "The file data-source classification when available." }, "fileId": { "type": "string", "description": "The AI21 file identifier." }, "fileType": { "type": "string", "description": "The file type reported by AI21." }, "labels": { "type": "array", "items": { "type": "string" }, "description": "Labels attached to the file." }, "lastUpdated": { "type": "string", "format": "date-time", "description": "The last updated timestamp." }, "name": { "type": "string", "description": "The file name." }, "path": { "type": "string", "description": "The file path in the AI21 library." }, "publicUrl": { "type": "string", "description": "A public URL for the file when available." }, "sizeBytes": { "type": "number", "description": "The file size in bytes." }, "status": { "type": "string", "description": "The current processing or availability status." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/retrieve-maestro-run": { "get": { "operationId": "aI21Labs.retrieve-maestro-run", "summary": "Retrieve Maestro Run", "description": "Retrieves Maestro run status from AI21 Labs by ID.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/retrieve-maestro-run" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "run_id", "in": "query", "required": true, "description": "The AI21 Maestro run id to retrieve.", "schema": { "type": "string", "description": "The AI21 Maestro run id to retrieve.", "example": "Paste the Maestro run id returned by a create action." } }, { "name": "fields", "in": "query", "required": false, "description": "Comma-separated response fields to include.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/review-document": { "post": { "operationId": "aI21Labs.review-document", "summary": "Review Document", "description": "Creates a document review run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/review-document" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The text or document content to review.", "example": "Paste the document or paragraph you want reviewed." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/rewrite-text": { "post": { "operationId": "aI21Labs.rewrite-text", "summary": "Rewrite Text", "description": "Creates a text rewriting run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/rewrite-text" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The source text to rewrite while preserving the underlying meaning.", "example": "Paste the text you want rewritten." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/simplify-text": { "post": { "operationId": "aI21Labs.simplify-text", "summary": "Simplify Text", "description": "Creates a text simplification run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/simplify-text" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The text to simplify while preserving the original meaning.", "example": "Paste the complex text you want simplified." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/summarize-text": { "post": { "operationId": "aI21Labs.summarize-text", "summary": "Summarize Text", "description": "Creates a text summarization run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/summarize-text" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The source text, notes, or content to summarize.", "example": "Paste the text you want summarized." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } }, "/v1/universal/aI21Labs/latest/actions/translate-text": { "post": { "operationId": "aI21Labs.translate-text", "summary": "Translate Text", "description": "Creates a text translation run in AI21 Labs.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aI21Labs/latest/actions/translate-text" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "input" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "input": { "type": "string", "description": "The translation request, including the target language and source text.", "example": "Example: Translate to Spanish: Our launch is on Thursday." }, "budget": { "type": "string", "description": "AI21 reasoning budget such as low, medium, or high.", "enum": [ "0", "1", "2" ], "default": "low" } }, "additionalProperties": false } } } }, "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "data", "meta" ], "properties": { "success": { "type": "boolean", "const": true }, "data": { "type": "array", "items": { "type": "object", "properties": { "data_sources": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Data sources used by the run when AI21 provides them." }, "error": { "type": "object", "additionalProperties": true, "description": "Error details when the run fails." }, "id": { "type": "string", "description": "The AI21 Maestro run id." }, "requirements_result": { "type": "object", "additionalProperties": true, "description": "Structured requirement-evaluation output when the prompt asks for it." }, "result": { "type": "string", "description": "The final generated output when the run completes." }, "status": { "type": "string", "description": "The current lifecycle status of the run." } }, "additionalProperties": false } }, "meta": { "type": "object", "additionalProperties": true } }, "additionalProperties": false } } } }, "400": { "description": "The request is invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "401": { "description": "The MindCloud API key is missing or invalid.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "403": { "description": "The API key or connection cannot access this action.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } }, "500": { "description": "The action failed unexpectedly.", "content": { "application/json": { "schema": { "type": "object", "required": [ "success", "code", "message" ], "properties": { "success": { "type": "boolean", "const": false }, "code": { "type": "string" }, "message": { "type": "string" } }, "additionalProperties": false } } } } } } } }, "components": { "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "description": "A MindCloud API key." } } } }