{ "openapi": "3.1.2", "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", "info": { "title": "API Template Universal API", "version": "0.0.14", "description": "Generate PDFs and images, manage templates, and merge PDFs" }, "servers": [ { "url": "https://connect.mindcloud.co" } ], "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest" }, "security": [ { "bearerAuth": [] } ], "paths": { "/v1/universal/aPITemplate/latest/actions/create-image": { "post": { "operationId": "aPITemplate.create-image", "summary": "Create Image", "description": "Creates an image in API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/create-image" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "templateId" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "templateId": { "type": "string", "description": "Template ID to render." }, "outputImageType": { "type": "string", "description": "Return JPEG, PNG, or both." }, "expiration": { "type": "number", "description": "Minutes before the generated file expires; use 0 to store permanently." }, "cloudStorage": { "type": "number", "description": "Whether to upload the generated file to APITemplate cloud storage." }, "meta": { "type": "string", "description": "Optional metadata string to attach to the job." }, "overrides[]": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "description": "Array of object overrides to apply to the image template." } }, "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/create-pdf": { "post": { "operationId": "aPITemplate.create-pdf", "summary": "Create PDF", "description": "Creates a PDF in API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/create-pdf" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "templateId" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "templateId": { "type": "string", "description": "Template ID to render." }, "exportType": { "type": "string", "description": "Return the output as JSON metadata or a file response." }, "expiration": { "type": "number", "description": "Minutes before the generated file expires; use 0 to store permanently." }, "outputFormat": { "type": "string", "description": "Output format for the generated PDF." }, "filename": { "type": "string", "description": "Filename for the generated file." }, "cloudStorage": { "type": "number", "description": "Whether to upload the generated file to APITemplate cloud storage." }, "asyncMode": { "type": "string", "description": "Generate the file asynchronously." }, "webhookUrl": { "type": "string", "description": "Webhook URL for async completion notifications." }, "webhookMethod": { "type": "string", "description": "HTTP method for the webhook callback." } }, "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/create-pdf-from-html": { "post": { "operationId": "aPITemplate.create-pdf-from-html", "summary": "Create PDF From HTML", "description": "Creates a PDF from HTML in API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/create-pdf-from-html" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "html": { "type": "string", "description": "HTML body content for the PDF." }, "css": { "type": "string", "description": "CSS styles to apply to the PDF." }, "data": { "type": "object", "additionalProperties": true, "description": "Data values for Jinja placeholders in the HTML body." }, "settings": { "type": "object", "additionalProperties": true, "description": "Rendering settings for the generated PDF." }, "exportType": { "type": "string", "description": "Return the output as JSON metadata or a file response." }, "expiration": { "type": "number", "description": "Minutes before the generated file expires; use 0 to store permanently." }, "outputFormat": { "type": "string", "description": "Output format for the generated PDF." }, "filename": { "type": "string", "description": "Filename for the generated file." }, "cloudStorage": { "type": "number", "description": "Whether to upload the generated file to APITemplate cloud storage." }, "asyncMode": { "type": "string", "description": "Generate the file asynchronously." }, "webhookUrl": { "type": "string", "description": "Webhook URL for async completion notifications." }, "webhookMethod": { "type": "string", "description": "HTTP method for the webhook callback." } }, "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/create-pdf-from-url": { "post": { "operationId": "aPITemplate.create-pdf-from-url", "summary": "Create PDF From URL", "description": "Creates a PDF from a URL in API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/create-pdf-from-url" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "url": { "type": "string", "description": "URL to convert into a PDF." }, "settings": { "type": "object", "additionalProperties": true, "description": "Rendering settings for the generated PDF." }, "exportType": { "type": "string", "description": "Return the output as JSON metadata or a file response." }, "expiration": { "type": "number", "description": "Minutes before the generated file expires; use 0 to store permanently." }, "outputFormat": { "type": "string", "description": "Output format for the generated PDF." }, "filename": { "type": "string", "description": "Filename for the generated file." }, "cloudStorage": { "type": "number", "description": "Whether to upload the generated file to APITemplate cloud storage." }, "asyncMode": { "type": "string", "description": "Generate the file asynchronously." }, "webhookUrl": { "type": "string", "description": "Webhook URL for async completion notifications." }, "webhookMethod": { "type": "string", "description": "HTTP method for the webhook callback." } }, "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/delete-object": { "delete": { "operationId": "aPITemplate.delete-object", "summary": "Delete Object", "description": "Deletes an existing generated object from API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/delete-object" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "transactionRef", "in": "query", "required": true, "description": "Transaction reference of the object to delete.", "schema": { "type": "string", "description": "Transaction reference of the object to delete." } } ], "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/get-template": { "get": { "operationId": "aPITemplate.get-template", "summary": "Get Template", "description": "Retrieves a PDF template from API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/get-template" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "templateId", "in": "query", "required": false, "description": "Template ID to fetch.", "schema": { "type": "string", "description": "Template ID to fetch." } }, { "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/list-generated-objects": { "get": { "operationId": "aPITemplate.list-generated-objects", "summary": "List Generated Objects", "description": "Retrieves generated objects from API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/list-generated-objects" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "templateId", "in": "query", "required": false, "description": "Filter generated objects by template ID.", "schema": { "type": "string", "description": "Filter generated objects by template ID." } }, { "name": "transactionRef", "in": "query", "required": false, "description": "Filter objects by transaction reference.", "schema": { "type": "string", "description": "Filter objects by transaction reference." } }, { "name": "transactionType", "in": "query", "required": false, "description": "Filter objects by transaction type.", "schema": { "type": "string", "description": "Filter objects by transaction type." } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum number of records to return.", "schema": { "type": "integer", "minimum": 1 } }, { "name": "offset", "in": "query", "required": false, "description": "Number of records to skip before returning results.", "schema": { "type": "integer", "minimum": 0 } }, { "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/list-templates": { "get": { "operationId": "aPITemplate.list-templates", "summary": "List Templates", "description": "Retrieves templates from API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/list-templates" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "format", "in": "query", "required": false, "description": "Filter templates by format.", "schema": { "type": "string", "description": "Filter templates by format." } }, { "name": "groupName", "in": "query", "required": false, "description": "Filter templates by group name.", "schema": { "type": "string", "description": "Filter templates by group name." } }, { "name": "templateId", "in": "query", "required": false, "description": "Return only the matching template ID.", "schema": { "type": "string", "description": "Return only the matching template ID." } }, { "name": "withLayerInfo", "in": "query", "required": false, "description": "Include layer information in the template response.", "schema": { "type": "string", "description": "Include layer information in the template response." } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum number of records to return.", "schema": { "type": "integer", "minimum": 1 } }, { "name": "offset", "in": "query", "required": false, "description": "Number of records to skip before returning results.", "schema": { "type": "integer", "minimum": 0 } }, { "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/merge-pdfs": { "post": { "operationId": "aPITemplate.merge-pdfs", "summary": "Merge PDFs", "description": "Creates a merged PDF from multiple PDFs in API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/merge-pdfs" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "urls[]" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "urls[]": { "type": "array", "items": { "type": "string" }, "description": "URLs or data URLs of the PDFs to merge." }, "exportType": { "type": "string", "description": "Return the merged PDF as JSON metadata or a file response." }, "expiration": { "type": "number", "description": "Minutes before the merged PDF expires; use 0 to store permanently." }, "cloudStorage": { "type": "number", "description": "Whether to upload the merged PDF to APITemplate cloud storage." } }, "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/query-account-information": { "get": { "operationId": "aPITemplate.query-account-information", "summary": "Query Account Information", "description": "Retrieves account information from API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/query-account-information" }, "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", "additionalProperties": true } }, "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/aPITemplate/latest/actions/update-pdf-template": { "put": { "operationId": "aPITemplate.update-pdf-template", "summary": "Update PDF Template", "description": "Updates an existing PDF template in API Template.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aPITemplate/latest/actions/update-pdf-template" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "templateId" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "templateId": { "type": "string", "description": "Template ID to update." }, "html": { "type": "string", "description": "Updated HTML body for the template." }, "css": { "type": "string", "description": "Updated CSS for the template." } }, "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", "additionalProperties": true } }, "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." } } } }