{ "openapi": "3.1.2", "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", "info": { "title": "Aloware Universal API", "version": "0.0.12", "description": "Manage leads, send messages, run calls, and automate dialing" }, "servers": [ { "url": "https://connect.mindcloud.co" } ], "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest" }, "security": [ { "bearerAuth": [] } ], "paths": { "/v1/universal/aloware/latest/actions/clear-power-dialer-list": { "delete": { "operationId": "aloware.clear-power-dialer-list", "summary": "Clear Power Dialer List", "description": "Clears all contacts from an Aloware power dialer list.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/clear-power-dialer-list" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "listId", "in": "query", "required": true, "description": "Power dialer list ID to clear.", "schema": { "type": "string", "description": "Power dialer list ID to clear." } } ], "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/aloware/latest/actions/clear-user-power-dialer-lists": { "put": { "operationId": "aloware.clear-user-power-dialer-lists", "summary": "Clear User Power Dialer Lists", "description": "Clears all contacts from an Aloware user's power dialer lists.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/clear-user-power-dialer-lists" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "userId" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "userId": { "type": "string", "description": "User whose power dialer lists you want to clear." } }, "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": { "message": { "type": "string", "description": "Provider success message when the user's power dialer lists clearing process is initiated." } }, "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/aloware/latest/actions/create-contact": { "post": { "operationId": "aloware.create-contact", "summary": "Create Contact", "description": "Creates a new contact in Aloware.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/create-contact" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "phoneNumber" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "phoneNumber": { "type": "string", "description": "Primary phone number for the contact." }, "name": { "type": "string", "description": "Full contact name." }, "email": { "type": "string", "description": "Contact email address." }, "companyName": { "type": "string", "description": "Company name for the contact." }, "userId": { "type": "string", "description": "Assign the contact to a specific user." }, "ringGroupId": { "type": "string", "description": "Assign the contact through a ring group." }, "notes": { "type": "string", "description": "Notes to save on the contact." }, "sequenceId": { "type": "string", "description": "Optional sequence to enroll the contact into." } }, "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": { "contactId": { "type": "number" }, "message": { "type": "string" } }, "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/aloware/latest/actions/disenroll-contact-from-sequences": { "put": { "operationId": "aloware.disenroll-contact-from-sequences", "summary": "Disenroll Contact From Sequences", "description": "Disenrolls a contact from Aloware sequences.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/disenroll-contact-from-sequences" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "source" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "source": { "type": "string", "description": "Use `phone_number` to disenroll by phone number. Otherwise provide the source system name and a Source ID." }, "phoneNumber": { "type": "string", "description": "Phone number to disenroll when Source is `phone_number`." }, "sourceId": { "type": "string", "description": "Source record ID to disenroll when Source is not `phone_number`." } }, "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": { "message": { "type": "string", "description": "Provider success message when the contact is disenrolled from all sequences." } }, "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/aloware/latest/actions/enroll-contact-in-sequence": { "put": { "operationId": "aloware.enroll-contact-in-sequence", "summary": "Enroll Contact In Sequence", "description": "Enrolls a contact in an Aloware sequence.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/enroll-contact-in-sequence" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "source", "sequenceId" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "source": { "type": "string", "description": "Use `phone_number` to enroll by phone number. Otherwise provide the source system name and a Source ID." }, "phoneNumber": { "type": "string", "description": "Phone number to enroll when Source is `phone_number`." }, "sourceId": { "type": "string", "description": "Source record ID to enroll when Source is not `phone_number`." }, "sequenceId": { "type": "number", "description": "Numeric sequence ID to enroll the contact into." } }, "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/aloware/latest/actions/establish-two-legged-call": { "post": { "operationId": "aloware.establish-two-legged-call", "summary": "Establish Two-Legged Call", "description": "Establishes a two-legged call in Aloware.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/establish-two-legged-call" }, "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." }, "userId": { "type": "string", "description": "User ID for the agent leg. Provide this or Ring Group ID." }, "ringGroupId": { "type": "string", "description": "Ring group ID for the agent leg. Provide this or User ID." }, "contactPhoneNumber": { "type": "string", "description": "Contact phone number. Provide this or Contact ID." }, "contactId": { "type": "string", "description": "Contact ID. Provide this or Contact Phone Number." }, "linePhoneNumber": { "type": "string", "description": "Aloware line phone number. Provide this or Line ID." }, "lineId": { "type": "string", "description": "Aloware line ID. Provide this or Line Phone Number." }, "userPhoneNumber": { "type": "string", "description": "Optional user phone number when starting a call with User ID." } }, "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/aloware/latest/actions/list-users": { "get": { "operationId": "aloware.list-users", "summary": "List Users", "description": "Retrieves user records from your Aloware account.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/list-users" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "email", "in": "query", "required": false, "description": "Optional user email to look up a specific user record.", "schema": { "type": "string", "description": "Optional user email to look up a specific user record." } }, { "name": "userId", "in": "query", "required": false, "description": "Optional Aloware user ID to look up a specific user record.", "schema": { "type": "string", "description": "Optional Aloware user ID to look up a specific user record." } }, { "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": { "agentStatus": { "type": "number" }, "email": { "type": "string" }, "humanReadableAgentStatus": { "type": "string" }, "id": { "type": "number" }, "name": { "type": "string" } }, "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/aloware/latest/actions/lookup-contact-by-phone-number": { "get": { "operationId": "aloware.lookup-contact-by-phone-number", "summary": "Lookup Contact By Phone Number", "description": "Finds a contact in Aloware by phone number.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/lookup-contact-by-phone-number" }, "security": [ { "bearerAuth": [] } ], "parameters": [ { "name": "connectionId", "in": "query", "required": true, "description": "The MindCloud connection ID for this app.", "schema": { "type": "string" } }, { "name": "phoneNumber", "in": "query", "required": true, "description": "Phone number of the contact you want to look up.", "schema": { "type": "string", "description": "Phone number of the contact you want to look up." } }, { "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": { "address": { "type": "object", "additionalProperties": true }, "campaignIds": { "type": "array", "items": {} }, "cnamCity": { "type": "string" }, "cnamCountry": { "type": "string" }, "cnamSource": { "type": "object", "additionalProperties": true }, "cnamState": { "type": "string" }, "cnamZipcode": { "type": "object", "additionalProperties": true }, "companyId": { "type": "number" }, "companyName": { "type": "object", "additionalProperties": true }, "createdAt": { "type": "string", "format": "date-time" }, "customLink": { "type": "object", "additionalProperties": true }, "dateOfBirth": { "type": "string", "format": "date-time" }, "dispositionStatusId": { "type": "object", "additionalProperties": true }, "email": { "type": "string" }, "firstName": { "type": "string" }, "id": { "type": "number" }, "inboundCallCount": { "type": "number" }, "inboundSmsCount": { "type": "number" }, "initialCampaignId": { "type": "object", "additionalProperties": true }, "intakeSource": { "type": "string" }, "integrationData": { "type": "object", "additionalProperties": true }, "isBlocked": { "type": "boolean" }, "isDnc": { "type": "boolean" }, "lastEngagementAt": { "type": "string", "format": "date-time" }, "lastEngagementText": { "type": "string" }, "lastName": { "type": "string" }, "leadSource": { "type": "string" }, "leadSourceId": { "type": "object", "additionalProperties": true }, "lrnType": { "type": "number" }, "name": { "type": "string" }, "nbCommunications": { "type": "number" }, "notes": { "type": "string" }, "outboundCallCount": { "type": "number" }, "outboundSmsCount": { "type": "number" }, "phoneNumber": { "type": "string" }, "sequenceId": { "type": "object", "additionalProperties": true }, "tags": { "type": "array", "items": {} }, "textAuthorized": { "type": "number" }, "textAuthorizedAt": { "type": "string", "format": "date-time" }, "timezone": { "type": "string" }, "unreadCount": { "type": "number" }, "unreadMissedCallCount": { "type": "number" }, "unreadVoicemailCount": { "type": "number" }, "userId": { "type": "object", "additionalProperties": true }, "uuidV4": { "type": "string" }, "website": { "type": "object", "additionalProperties": true }, "workflowId": { "type": "object", "additionalProperties": true } }, "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/aloware/latest/actions/remove-contact-from-power-dialer-lists": { "put": { "operationId": "aloware.remove-contact-from-power-dialer-lists", "summary": "Remove Contact From Power Dialer Lists", "description": "Removes a contact from Aloware power dialer lists.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/remove-contact-from-power-dialer-lists" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "contactId" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "contactId": { "type": "string", "description": "Aloware contact ID to remove from every power dialer list." } }, "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": { "message": { "type": "string", "description": "Provider success message when the contact is removed from all power dialer lists." } }, "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/aloware/latest/actions/send-sms": { "post": { "operationId": "aloware.send-sms", "summary": "Send SMS", "description": "Sends an SMS or MMS message from Aloware.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/send-sms" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "to", "message" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "from": { "type": "string", "description": "Sender phone number. Provide this or Line ID." }, "lineId": { "type": "string", "description": "Aloware line ID to send from. Provide this or From Number." }, "to": { "type": "string", "description": "Recipient phone number." }, "message": { "type": "string", "description": "SMS or MMS message content." }, "imageUrl": { "type": "string", "description": "Optional image URL to send as MMS." }, "forceRandom": { "type": "string", "description": "Set to 1 to ignore number stickiness and distribute randomly." } }, "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/aloware/latest/actions/update-contact": { "put": { "operationId": "aloware.update-contact", "summary": "Update Contact", "description": "Updates an existing contact in Aloware.", "externalDocs": { "url": "https://mindcloud.co/docs/universal/rest/aloware/latest/actions/update-contact" }, "security": [ { "bearerAuth": [] } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": [ "connectionId", "phoneNumber" ], "properties": { "connectionId": { "type": "string", "description": "The MindCloud connection ID for this app." }, "companyName": { "type": "string", "description": "Updated company name." }, "email": { "type": "string", "description": "Updated contact email address." }, "name": { "type": "string", "description": "Updated full contact name." }, "notes": { "type": "string", "description": "Updated notes to save on the contact." }, "phoneNumber": { "type": "string", "description": "Primary phone number for the contact to update." }, "ringGroupId": { "type": "string", "description": "Assign the contact through a ring group." }, "userId": { "type": "string", "description": "Assign the contact to a specific user." } }, "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": { "contactId": { "type": "number" }, "message": { "type": "string" } }, "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." } } } }