"optional": true,
"field": "customerPort",
"description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "vidaooSessionId",
+ "description": ""
}
]
}
"groupTitle": "Chat_Interactions"
},
{
+ "type": "put",
+ "url": "/api/chat/interactions/{id}/close",
+ "title": "Close Interaction",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/chat/interactions/{id}/close -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "addMessage",
+ "group": "Chat_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/chatInteraction/index.js",
+ "groupTitle": "Chat_Interactions"
+ },
+ {
"type": "post",
"url": "/api/chat/interactions/{id}/messages",
"title": "Creates new messages",
"groupTitle": "Chat_Interactions"
},
{
- "type": "put",
- "url": "/api/chat/interactions/{id}/close",
- "title": "Close Interaction",
+ "type": "post",
+ "url": "/api/chat/interactions/{id}/attachment_upload",
+ "title": "Add attachment",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/chat/interactions/{id}/close -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "content": "curl https://{domain}/api/chat/interactions/{id}/attachment_upload -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
"type": "json"
}
],
- "name": "addMessage",
+ "name": "attachmentUpload",
"group": "Chat_Interactions",
- "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
"filename": "server/api/chatInteraction/index.js",
"groupTitle": "Chat_Interactions"
},
{
"type": "post",
- "url": "/api/chat/interactions/{id}/attachment_upload",
- "title": "Add attachment",
+ "url": "/api/chat/interactions/{id}/vidaoo",
+ "title": "Create Vidaoo Session",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/chat/interactions/{id}/attachment_upload -H 'Content-Type: multipart/form-data' -F 'file=@{filename}' -v -u {name}:{password} -X POST",
+ "content": "curl https://{domain}/api/chat/interactions/{id}/vidaoo -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
"type": "json"
}
],
- "name": "attachmentUpload",
+ "name": "createVidaooSession",
"group": "Chat_Interactions",
"description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
"optional": true,
"field": "mandatoryDisposition",
"description": "<p>Enabled/disables mandatory dispo on a queue</p>"
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "vidaooEscalation",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "vidaooApiKey",
+ "description": ""
}
]
}
"optional": true,
"field": "customerPort",
"description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "vidaooSessionId",
+ "description": ""
}
]
}
},
{
"type": "post",
+ "url": "/api/cloudProviders",
+ "title": "Creates a new CloudProvider",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/cloudProviders -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "CreateCloudProviders",
+ "group": "CloudProviders",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "name",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "allowedValues": [
+ "\"AmazonAWS\"",
+ "\"Google\""
+ ],
+ "optional": false,
+ "field": "service",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "data1",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "data2",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/cloudProvider/index.js",
+ "groupTitle": "CloudProviders"
+ },
+ {
+ "type": "delete",
+ "url": "/api/cloudProviders/{id}",
+ "title": "Deletes a CloudProvider",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/cloudProviders/{id} -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "DeleteCloudProviders",
+ "group": "CloudProviders",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/cloudProvider/index.js",
+ "groupTitle": "CloudProviders"
+ },
+ {
+ "type": "get",
+ "url": "/api/cloudProviders",
+ "title": "Gets a list of CloudProviders",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/cloudProviders -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetCloudProviders",
+ "group": "CloudProviders",
+ "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/cloudProviders?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/cloudProviders?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/cloudProviders?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/cloudProviders?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/cloudProviders?offset=5&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
+ "version": "0.0.0",
+ "filename": "server/api/cloudProvider/index.js",
+ "groupTitle": "CloudProviders"
+ },
+ {
+ "type": "get",
+ "url": "/api/cloudProviders/{id}",
+ "title": "Gets a single CloudProvider",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/cloudProviders/{id} -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "ShowCloudProviders",
+ "group": "CloudProviders",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/cloudProvider/index.js",
+ "groupTitle": "CloudProviders"
+ },
+ {
+ "type": "put",
+ "url": "/api/cloudProviders/{id}",
+ "title": "Update an existing CloudProvider",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/cloudProviders/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "updateCloudProviders",
+ "group": "CloudProviders",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/cloudProvider/index.js",
+ "groupTitle": "CloudProviders"
+ },
+ {
+ "type": "post",
"url": "/api/cm/companies",
"title": "Creates a new Company",
"examples": [
},
{
"type": "post",
+ "url": "/api/notifications",
+ "title": "Send notification to user",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/notifications -d '{\"text\": \"Hello!\", \"TemplateId\": 1}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "Send",
+ "group": "Notifications",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/notification/index.js",
+ "groupTitle": "Notifications"
+ },
+ {
+ "type": "post",
"url": "/api/openchannel/accounts/{id}/users",
"title": "Add agents to a openchannel account",
"examples": [
"groupTitle": "Plugins"
},
{
- "type": "post",
+ "type": "get",
"url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
"title": "Redirect a plugin request to the specified path",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -H 'Content-Type: application/json' -X POST",
+ "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -v -u {name}:{password} -X GET",
"type": "json"
}
],
"name": "webhookPlugin",
"group": "Plugins",
- "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
"filename": "server/api/plugin/index.js",
"groupTitle": "Plugins"
},
{
- "type": "get",
+ "type": "post",
"url": "/api/plugins/webhook?hostname={host}&port={port}&encoding={encoding}&json={json}&path={path}",
"title": "Redirect a plugin request to the specified path",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -v -u {name}:{password} -X GET",
+ "content": "curl https://{domain}/api/plugins/webhook?port={port}&path={path} -H 'Content-Type: application/json' -X POST",
"type": "json"
}
],
"name": "webhookPlugin",
"group": "Plugins",
- "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
"filename": "server/api/plugin/index.js",
"groupTitle": "Plugins"
},
{
"type": "get",
- "url": "/api/rpc/voice/queues",
- "title": "Gets a list of RTVoiceQueues",
+ "url": "/api/rpc/outbound",
+ "title": "Gets a list of RTOutbound",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/rpc/voice/queues -v -u {name}:{password}",
+ "content": "curl https://{domain}/api/rpc/outbound -v -u {name}:{password}",
"type": "json"
}
],
"name": "RTVoiceQueues",
"group": "RPC_Realtime",
- "description": "<p>Motion will return a list of realtime voice queues parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "description": "<p>Motion will return a list of realtime outbound parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
"filename": "server/api/rpc/index.js",
"groupTitle": "RPC_Realtime"
},
{
"type": "get",
- "url": "/api/rpc/outbound",
- "title": "Gets a list of RTOutbound",
+ "url": "/api/rpc/voice/queues",
+ "title": "Gets a list of RTVoiceQueues",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/rpc/outbound -v -u {name}:{password}",
+ "content": "curl https://{domain}/api/rpc/voice/queues -v -u {name}:{password}",
"type": "json"
}
],
"name": "RTVoiceQueues",
"group": "RPC_Realtime",
- "description": "<p>Motion will return a list of realtime outbound parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "description": "<p>Motion will return a list of realtime voice queues parameters.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
"filename": "server/api/rpc/index.js",
"groupTitle": "RPC_Realtime"
"groupTitle": "Sms_Accounts"
},
{
- "type": "get",
- "url": "/api/sms/accounts/{id}/status",
- "title": "Receive message status as get request",
+ "type": "post",
+ "url": "/api/sms/messages/{id}/status",
+ "title": "Receive message status",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X GET",
+ "content": "curl https://{domain}/api/sms/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
"type": "json"
}
],
"name": "statusMessage",
"group": "Sms_Accounts",
- "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
- "filename": "server/api/smsAccount/index.js",
+ "filename": "server/api/smsMessage/index.js",
"groupTitle": "Sms_Accounts"
},
{
- "type": "post",
+ "type": "get",
"url": "/api/sms/accounts/{id}/status",
- "title": "Receive message status",
+ "title": "Receive message status as get request",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X POST",
+ "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X GET",
"type": "json"
}
],
"name": "statusMessage",
"group": "Sms_Accounts",
- "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
"filename": "server/api/smsAccount/index.js",
"groupTitle": "Sms_Accounts"
},
{
"type": "post",
- "url": "/api/sms/messages/{id}/status",
+ "url": "/api/sms/accounts/{id}/status",
"title": "Receive message status",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/sms/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
+ "content": "curl https://{domain}/api/sms/accounts/{id}/status -H 'Content-Type: application/json' -v -X POST",
"type": "json"
}
],
"group": "Sms_Accounts",
"description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
- "filename": "server/api/smsMessage/index.js",
+ "filename": "server/api/smsAccount/index.js",
"groupTitle": "Sms_Accounts"
},
{
},
{
"type": "get",
- "url": "/api/system/process",
+ "url": "/api/system",
"title": "Gets system information",
"examples": [
{
},
{
"type": "get",
- "url": "/api/system",
+ "url": "/api/system/process",
"title": "Gets system information",
"examples": [
{
},
{
"type": "delete",
- "url": "/api/chat/queues/{id}/teams",
+ "url": "/api/mail/queues/{id}/teams",
"title": "Remove teams from a queue",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password} -X DELETE",
+ "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password} -X DELETE",
"type": "json"
}
],
"group": "Teams",
"description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
- "filename": "server/api/chatQueue/index.js",
+ "filename": "server/api/mailQueue/index.js",
"groupTitle": "Teams"
},
{
"type": "delete",
- "url": "/api/fax/queues/{id}/teams",
+ "url": "/api/openchannel/queues/{id}/teams",
"title": "Remove teams from a queue",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password} -X DELETE",
+ "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password} -X DELETE",
"type": "json"
}
],
"group": "Teams",
"description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
- "filename": "server/api/faxQueue/index.js",
+ "filename": "server/api/openchannelQueue/index.js",
"groupTitle": "Teams"
},
{
"type": "delete",
- "url": "/api/openchannel/queues/{id}/teams",
+ "url": "/api/whatsapp/queues/{id}/teams",
"title": "Remove teams from a queue",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/openchannel/queues/{id}/teams -v -u {name}:{password} -X DELETE",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -v -u {name}:{password} -X DELETE",
"type": "json"
}
],
"group": "Teams",
"description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
- "filename": "server/api/openchannelQueue/index.js",
+ "filename": "server/api/whatsappQueue/index.js",
"groupTitle": "Teams"
},
{
},
{
"type": "delete",
- "url": "/api/mail/queues/{id}/teams",
+ "url": "/api/chat/queues/{id}/teams",
"title": "Remove teams from a queue",
"examples": [
{
"title": "Example usage:",
- "content": "curl https://{domain}/api/mail/queues/{id}/teams -v -u {name}:{password} -X DELETE",
+ "content": "curl https://{domain}/api/chat/queues/{id}/teams -v -u {name}:{password} -X DELETE",
"type": "json"
}
],
"group": "Teams",
"description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
"version": "0.0.0",
- "filename": "server/api/mailQueue/index.js",
+ "filename": "server/api/chatQueue/index.js",
+ "groupTitle": "Teams"
+ },
+ {
+ "type": "delete",
+ "url": "/api/fax/queues/{id}/teams",
+ "title": "Remove teams from a queue",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/fax/queues/{id}/teams -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "RemoveTeams",
+ "group": "Teams",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/faxQueue/index.js",
"groupTitle": "Teams"
},
{
},
{
"type": "post",
+ "url": "/api/users/{id}/whatsapp_accounts",
+ "title": "Add a Whatsapp Account to a user",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "AddWhatsappAccounts",
+ "group": "Users",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/user/index.js",
+ "groupTitle": "Users"
+ },
+ {
+ "type": "post",
+ "url": "/api/users/{id}/whatsapp_interactions",
+ "title": "Add Whatsapp interaction tabs to an agent",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/users/{id}/whatsapp_interactions -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "AddWhatsappInteractions",
+ "group": "Users",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/user/index.js",
+ "groupTitle": "Users"
+ },
+ {
+ "type": "post",
"url": "/api/users/create_many",
"title": "Creates many Users",
"examples": [
"group": "Body",
"type": "Boolean",
"optional": true,
+ "field": "whatsappPause",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
"field": "openchannelPause",
"description": ""
},
"group": "Body",
"type": "Integer",
"optional": true,
+ "field": "whatsappCapacity",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Integer",
+ "optional": true,
"field": "openchannelCapacity",
"description": ""
},
"groupTitle": "Users"
},
{
+ "type": "get",
+ "url": "/api/users/{id}/whatsapp_accounts",
+ "title": "GetWhatsappAccounts",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "GetWhatsappAccounts",
+ "group": "Users",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/user/index.js",
+ "groupTitle": "Users"
+ },
+ {
+ "type": "get",
+ "url": "/api/users/{id}/whatsapp/interactions",
+ "title": "GetWhatsappInteractions",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/users/{id}/whatsapp/interactions -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "GetWhatsappInteractions",
+ "group": "Users",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/user/index.js",
+ "groupTitle": "Users"
+ },
+ {
"type": "post",
"url": "/api/users/{id}/login",
"title": "Login",
"groupTitle": "Users"
},
{
+ "type": "delete",
+ "url": "/api/users/{id}/whatsapp_accounts",
+ "title": "Removes a Whatsapp Account from a user",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/users/{id}/whatsapp_accounts?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "RemoveWhatsappAccounts",
+ "group": "Users",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/user/index.js",
+ "groupTitle": "Users"
+ },
+ {
+ "type": "delete",
+ "url": "/api/users/{id}/whatsapp_interactions",
+ "title": "Removes Whatsapp interactions from an agent",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/users/{id}/whatsapp_interactions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "RemoveWhatsappInteractions",
+ "group": "Users",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/user/index.js",
+ "groupTitle": "Users"
+ },
+ {
"type": "get",
"url": "/api/users/{id}",
"title": "Gets a single User",
},
{
"group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "location",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "transcribeName",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "transcribeStatus",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "fileUri",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "fileText",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "failureReason",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "sentiment",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Float",
+ "optional": true,
+ "field": "sPositive",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Float",
+ "optional": true,
+ "field": "sNegative",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Float",
+ "optional": true,
+ "field": "sNeutral",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Float",
+ "optional": true,
+ "field": "sMixed",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "tempSentiment",
+ "description": ""
+ },
+ {
+ "group": "Body",
"type": "String",
"optional": true,
"field": "createdAt",
"groupTitle": "Voice_Recordings"
},
{
+ "type": "get",
+ "url": "/api/voice/recordings/{id}/transcribe",
+ "title": "Run Transcribe Recording",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/voice/recordings/{id}/transcribe -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "transcribe",
+ "group": "Voice_Recordings",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/voiceRecording/index.js",
+ "groupTitle": "Voice_Recordings"
+ },
+ {
+ "type": "post",
+ "url": "/api/voice/recordings/{id}/transcribe",
+ "title": "Run Transcribe Recording",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/voice/recordings/{id}/transcribe -d '{\"runSentiment\": \"true\"}' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "transcribe",
+ "group": "Voice_Recordings",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/voiceRecording/index.js",
+ "groupTitle": "Voice_Recordings"
+ },
+ {
"type": "put",
"url": "/api/voice/recordings/{id}",
"title": "Update an existing Recording",
},
{
"type": "post",
+ "url": "/api/whatsapp/accounts/{id}/users",
+ "title": "Add agents to a whatsapp account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "AddAgents",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/accounts",
+ "title": "Creates a new Account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "CreateAccounts",
+ "group": "Whatsapp_Accounts",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "name",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "key",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "remote",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "token",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "phone",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "allowedValues": [
+ "\"twilio\""
+ ],
+ "optional": true,
+ "field": "type",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "accountSid",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "authToken",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "notificationTemplate",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "notificationSound",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "notificationShake",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Integer",
+ "optional": true,
+ "field": "waitForTheAssignedAgent",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "queueTransfer",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Integer",
+ "optional": true,
+ "field": "queueTransferTimeout",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "agentTransfer",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Integer",
+ "optional": true,
+ "field": "agentTransferTimeout",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Integer",
+ "optional": true,
+ "field": "mandatoryDispositionPauseId",
+ "description": "<p>Status to put when mandatory disposition is enabled</p>"
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "mandatoryDisposition",
+ "description": "<p>Enabled/disables mandatory dispo on a queue</p>"
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "description",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/accounts/{id}",
+ "title": "Deletes a Account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id} -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "DeleteAccounts",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/accounts/describe",
+ "title": "Gets table info about Accounts",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/describe -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "DescribeAccounts",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/accounts",
+ "title": "Gets a list of Accounts",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetAccounts",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/accounts?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/accounts?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/accounts?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/accounts?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/accounts?offset=5&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/accounts/{id}/users",
+ "title": "Gets agents from whatsapp account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "GetAgents",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/accounts/{id}/users",
+ "title": "Removes agents from a whatsapp account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "RemoveAgents",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/accounts/{id}/canned_answers",
+ "title": "Removes canned answers from account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "RemoveAnswers",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/accounts/{id}/dispositions",
+ "title": "Removes dispositions from account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "RemoveDispositions",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/accounts/{id}",
+ "title": "Gets a single Account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id} -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "ShowAccounts",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/messages/{id}/accept",
+ "title": "Accepts message",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages/{id}/accept \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "acceptMessage",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/accounts/{id}/canned_answers",
+ "title": "Creates new canned answer",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers -d '{\"name\": \"vip\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "addAnswer",
+ "group": "Whatsapp_Accounts",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "key",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": false,
+ "field": "value",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "description",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Virtual",
+ "optional": true,
+ "field": "name",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/accounts/{id}/applications",
+ "title": "Creates new applications",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/applications -d '[{\"app\": \"queue\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "addApplications",
+ "group": "Whatsapp_Accounts",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "Integer",
+ "optional": false,
+ "field": "priority",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "app",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "appdata",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "description",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "interval",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/accounts/{id}/dispositions",
+ "title": "Creates new disposition",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "addDisposition",
+ "group": "Whatsapp_Accounts",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "name",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/accounts/{id}/canned_answers",
+ "title": "Gets account canned answers",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/canned_answers -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "getAnswers",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/accounts/{id}/applications",
+ "title": "Gets account applications",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/applications -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "getApplications",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/accounts/{id}/dispositions",
+ "title": "Gets account dispositions",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/dispositions -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "getDispositions",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/accounts/{id}/notify",
+ "title": "Notify new message",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/notify -d '{\"body\": \"hello world\", \"...\": \"...\"}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "notify",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <p>This API is used to create a new whatsapp message to be sent to the system.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/messages/{id}/reject",
+ "title": "Rejects message",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages/{id}/reject \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "rejectMessage",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/accounts/{id}/send",
+ "title": "Send new whatsapp message",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id}/send -d '{from: '+39333123456', body: 'This is a test'}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "sendWhatsapp",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/messages/{id}/status",
+ "title": "Receive message status",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages/{id}/status \\ \n -H 'Content-Type: application/json' -v -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "statusMessage",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/accounts/{id}",
+ "title": "Update an existing Account",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/accounts/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "updateAccounts",
+ "group": "Whatsapp_Accounts",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappAccount/index.js",
+ "groupTitle": "Whatsapp_Accounts"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/applications",
+ "title": "Creates a new Application",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "CreateApplications",
+ "group": "Whatsapp_Applications",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "Integer",
+ "optional": false,
+ "field": "priority",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "app",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": true,
+ "field": "appdata",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "description",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "interval",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappApplication/index.js",
+ "groupTitle": "Whatsapp_Applications"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/applications/{id}",
+ "title": "Deletes a Application",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/applications/{id} -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "DeleteApplications",
+ "group": "Whatsapp_Applications",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappApplication/index.js",
+ "groupTitle": "Whatsapp_Applications"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/applications",
+ "title": "Gets a list of Applications",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/applications -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetApplications",
+ "group": "Whatsapp_Applications",
+ "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/applications?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/applications?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/applications?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/applications?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/applications?offset=5&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappApplication/index.js",
+ "groupTitle": "Whatsapp_Applications"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/applications/{id}",
+ "title": "Gets a single Application",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/applications/{id} -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "ShowApplications",
+ "group": "Whatsapp_Applications",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappApplication/index.js",
+ "groupTitle": "Whatsapp_Applications"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/applications/{id}",
+ "title": "Update an existing Application",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/applications/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "updateApplications",
+ "group": "Whatsapp_Applications",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappApplication/index.js",
+ "groupTitle": "Whatsapp_Applications"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/interactions/{id}/tags",
+ "title": "Add tags to the interaction",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interaction/{id}/tags -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "AddTags",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/interactions",
+ "title": "Creates a new Interaction",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "CreateInteractions",
+ "group": "Whatsapp_Interactions",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "closed",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "closedAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "disposition",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "note",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "phone",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "read1stAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "allowedValues": [
+ "\"in\"",
+ "\"out\""
+ ],
+ "optional": false,
+ "field": "firstMsgDirection",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "lastMsgAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "allowedValues": [
+ "\"in\"",
+ "\"out\""
+ ],
+ "optional": false,
+ "field": "lastMsgDirection",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/interactions/{id}",
+ "title": "Deletes a Interaction",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions/{id} -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "DeleteInteractions",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/interactions/describe",
+ "title": "Gets table info about Interactions",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions/describe -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "DescribeInteractions",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/interactions",
+ "title": "Gets a list of Interactions",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetInteractions",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/interactions?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/interactions?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/interactions?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/interactions?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/interactions?offset=5&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/interactions/{id}/tags",
+ "title": "Removes tags from interaction",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions/{id}/tags?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "RemoveTags",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/interactions/{id}",
+ "title": "Gets a single Interaction",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions/{id} -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "ShowInteractions",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/interactions/{id}/messages",
+ "title": "Creates new messages",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions/{id}/messages -d '[{\"to\": \"+3901119886500\", \"...\": \"...\"}]' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "addMessage",
+ "group": "Whatsapp_Interactions",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": false,
+ "field": "body",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "read",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "allowedValues": [
+ "\"in\"",
+ "\"out\""
+ ],
+ "optional": false,
+ "field": "direction",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "messageId",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "phone",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "readAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "secret",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/interactions/{id}/download",
+ "title": "Gets interaction",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions/{id}/download -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "download",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/interactions/{id}/messages",
+ "title": "Gets interaction messages",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions/{id}/messages -v -u {name}:{password} -X GET",
+ "type": "json"
+ }
+ ],
+ "name": "getMessages",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/interactions/{id}",
+ "title": "Update an existing Interaction",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/interactions/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "updateInteractions",
+ "group": "Whatsapp_Interactions",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappInteraction/index.js",
+ "groupTitle": "Whatsapp_Interactions"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/messages",
+ "title": "Creates a new Message",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "CreateMessages",
+ "group": "Whatsapp_Messages",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "Text",
+ "optional": false,
+ "field": "body",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "read",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "allowedValues": [
+ "\"in\"",
+ "\"out\""
+ ],
+ "optional": false,
+ "field": "direction",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "messageId",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "phone",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "readAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Boolean",
+ "optional": true,
+ "field": "secret",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Messages"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/messages/{id}",
+ "title": "Deletes a Message",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages/{id} -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "DeleteMessages",
+ "group": "Whatsapp_Messages",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Messages"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/messages/describe",
+ "title": "Gets table info about Messages",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages/describe -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "DescribeMessages",
+ "group": "Whatsapp_Messages",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Messages"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/messages",
+ "title": "Gets a list of Messages",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetMessages",
+ "group": "Whatsapp_Messages",
+ "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/messages?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/messages?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/messages?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/messages?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/messages?offset=5&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Messages"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/messages/{id}",
+ "title": "Gets a single Message",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages/{id} -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "ShowMessages",
+ "group": "Whatsapp_Messages",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Messages"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/messages/{id}",
+ "title": "Update an existing Message",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/messages/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "updateMessages",
+ "group": "Whatsapp_Messages",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappMessage/index.js",
+ "groupTitle": "Whatsapp_Messages"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/reports/queue",
+ "title": "Creates a new Whatsapp Queue Report",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "CreateWhatsapp_Queue_Reports",
+ "group": "Whatsapp_Queue_Reports",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "uniqueid",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "from",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "joinAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "leaveAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "acceptAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "exitAt",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "reason",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueueReport/index.js",
+ "groupTitle": "Whatsapp_Queue_Reports"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/reports/queue/{id}",
+ "title": "Deletes a Whatsapp Queue Report",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "DeleteWhatsapp_Queue_Reports",
+ "group": "Whatsapp_Queue_Reports",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueueReport/index.js",
+ "groupTitle": "Whatsapp_Queue_Reports"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/reports/queue/describe",
+ "title": "Gets table info about Whatsapp Queue Reports",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/queue/describe -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "DescribeWhatsapp_Queue_Reports",
+ "group": "Whatsapp_Queue_Reports",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueueReport/index.js",
+ "groupTitle": "Whatsapp_Queue_Reports"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/reports/queue",
+ "title": "Gets a list of Whatsapp Queue Reports",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/queue -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetWhatsapp_Queue_Reports",
+ "group": "Whatsapp_Queue_Reports",
+ "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/reports/queue?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/reports/queue?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/reports/queue?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/reports/queue?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/reports/queue?offset=5&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueueReport/index.js",
+ "groupTitle": "Whatsapp_Queue_Reports"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/reports/queue/{id}",
+ "title": "Gets a single Whatsapp Queue Report",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "ShowWhatsapp_Queue_Reports",
+ "group": "Whatsapp_Queue_Reports",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueueReport/index.js",
+ "groupTitle": "Whatsapp_Queue_Reports"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/reports/queue/{id}",
+ "title": "Update an existing Whatsapp Queue Report",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/queue/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "updateWhatsapp_Queue_Reports",
+ "group": "Whatsapp_Queue_Reports",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueueReport/index.js",
+ "groupTitle": "Whatsapp_Queue_Reports"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/queues/{id}/users",
+ "title": "Add agents to a queue",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id}/users -d '{\"ids\": [1,2], \"penalty\": 2}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "AddAgents",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/queues/{id}/teams",
+ "title": "Add teams to a queue",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -d '{\"ids\": [1,2]}' \\ \n -H 'Content-Type: application/json' -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "AddTeams",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/queues",
+ "title": "Creates a new Queue",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "CreateQueues",
+ "group": "Whatsapp_Queues",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "name",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "Integer",
+ "optional": true,
+ "field": "timeout",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "allowedValues": [
+ "\"rrmemory\"",
+ "\"beepall\"",
+ "\"roundrobin\""
+ ],
+ "optional": true,
+ "field": "strategy",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "description",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/queues/{id}",
+ "title": "Deletes a Queue",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id} -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "DeleteQueues",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/queues/describe",
+ "title": "Gets table info about Queues",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/describe -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "DescribeQueues",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/queues/{id}/users",
+ "title": "Gets queue agents",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id}/users -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "GetAgents",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/queues/{id}/members",
+ "title": "GetMembers",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id}/members -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetMembers",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/queues",
+ "title": "Gets a list of Queues",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetQueues",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/queues?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/queues?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/queues?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/queues?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/queues?offset=5&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/queues/{id}/teams",
+ "title": "Gets queues list",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id}/teams -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetTeams",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/queues/{id}/users",
+ "title": "Removes agents from a queue",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id}/users?ids=1&ids=2 -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "RemoveAgents",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/queues/{id}",
+ "title": "Gets a single Queue",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id} -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "ShowQueues",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/queues/{id}",
+ "title": "Update an existing Queue",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/queues/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "updateQueues",
+ "group": "Whatsapp_Queues",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappQueue/index.js",
+ "groupTitle": "Whatsapp_Queues"
+ },
+ {
+ "type": "post",
+ "url": "/api/whatsapp/reports/transfer",
+ "title": "Creates a new Whatsapp Transfer Report",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST",
+ "type": "json"
+ }
+ ],
+ "name": "CreateWhatsapp_Transfer_Reports",
+ "group": "Whatsapp_Transfer_Reports",
+ "parameter": {
+ "fields": {
+ "Body": [
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": false,
+ "field": "uniqueid",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "allowedValues": [
+ "\"account\"",
+ "\"agent\"",
+ "\"queue\""
+ ],
+ "optional": false,
+ "field": "type",
+ "description": ""
+ },
+ {
+ "group": "Body",
+ "type": "String",
+ "optional": true,
+ "field": "transferredAt",
+ "description": ""
+ }
+ ]
+ }
+ },
+ "description": "<p>Motion will return a HTTP status code <code>201</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappTransferReport/index.js",
+ "groupTitle": "Whatsapp_Transfer_Reports"
+ },
+ {
+ "type": "delete",
+ "url": "/api/whatsapp/reports/transfer/{id}",
+ "title": "Deletes a Whatsapp Transfer Report",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -v -u {name}:{password} -X DELETE",
+ "type": "json"
+ }
+ ],
+ "name": "DeleteWhatsapp_Transfer_Reports",
+ "group": "Whatsapp_Transfer_Reports",
+ "description": "<p>Motion will return a HTTP status code <code>204</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappTransferReport/index.js",
+ "groupTitle": "Whatsapp_Transfer_Reports"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/reports/transfer/describe",
+ "title": "Gets table info about Whatsapp Transfer Reports",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/transfer/describe -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "DescribeWhatsapp_Transfer_Reports",
+ "group": "Whatsapp_Transfer_Reports",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappTransferReport/index.js",
+ "groupTitle": "Whatsapp_Transfer_Reports"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/reports/transfer",
+ "title": "Gets a list of Whatsapp Transfer Reports",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/transfer -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "GetWhatsapp_Transfer_Reports",
+ "group": "Whatsapp_Transfer_Reports",
+ "description": "<p>Motion will always return paged results. Motion returns paging data in the <code>Content-Range</code> header in the form start - end / total.</p> <p>Upon success Motion will return a HTTP status code <code>200 OK</code> if the entire collection was returned otherwise it will return a HTTP status code <code>206</code> Partial Content.</p> <p>Motion renders the resulting JSON representation in the response body.</p> <h2>Retrieving Specific Fields</h2> <p>To return only specific fields for a result set you can utilize the <code>fields</code> parameter. This parameter accepts a comma-separated list.</p> <p>A call returning only <code>id</code> and <code>name</code> for a result set would look like this.</p> <p><code>GET /api/whatsapp/reports/transfer?fields=id,name</code></p> <h2>Filtering</h2> <p>You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.</p> <p>A call returning a result set for records with <code>name</code> of <code>john.doe</code> or <code>jane.miller</code>.</p> <p><code>GET /api/whatsapp/reports/transfer?name=john.doe,jane.miller</code></p> <p>If you use the key <code>filter</code> the result will be filtered by the value you specify.</p> <p><code>GET /api/whatsapp/reports/transfer?filter=john</code></p> <h2>Sorting</h2> <p>To sort a result set based on one or several fields you can utilize the <code>sort</code> parameter. This parameters accepts a comma-separated list.</p> <p>Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (<code>-</code>).</p> <p>A call sorting a result by <code>id</code> ascending and then <code>name</code> descending would look like this.</p> <p><code>GET /api/whatsapp/reports/transfer?sort=id,-name</code></p> <h2>Offset and Limit</h2> <p>Query results are always paged. Motion leverages the <code>offset</code> and <code>limit</code> parameters to facilitate this.</p> <p>When the neither of these parameters are explicitly supplied the handler will assume the a default <code>limit</code> of <code>100</code>.</p> <p><code>offset</code> is a number indicating the start position in the result set you want to return.</p> <p><code>limit</code> is a number indicating how many records past the start position you want returned.</p> <p>A call with a result set starting at <code>5</code> and returning no more than <code>25</code> records would look like this.</p> <p><code>GET /api/whatsapp/reports/transfer?offset=5&limit=25</code></p> <p>If there were <code>50</code> records in total, the returned <code>Content-Range</code> header would look like this.</p> <p><code>Content-Range: 5-30/50</code></p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappTransferReport/index.js",
+ "groupTitle": "Whatsapp_Transfer_Reports"
+ },
+ {
+ "type": "get",
+ "url": "/api/whatsapp/reports/transfer/{id}",
+ "title": "Gets a single Whatsapp Transfer Report",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -v -u {name}:{password}",
+ "type": "json"
+ }
+ ],
+ "name": "ShowWhatsapp_Transfer_Reports",
+ "group": "Whatsapp_Transfer_Reports",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappTransferReport/index.js",
+ "groupTitle": "Whatsapp_Transfer_Reports"
+ },
+ {
+ "type": "put",
+ "url": "/api/whatsapp/reports/transfer/{id}",
+ "title": "Update an existing Whatsapp Transfer Report",
+ "examples": [
+ {
+ "title": "Example usage:",
+ "content": "curl https://{domain}/api/whatsapp/reports/transfer/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT",
+ "type": "json"
+ }
+ ],
+ "name": "updateWhatsapp_Transfer_Reports",
+ "group": "Whatsapp_Transfer_Reports",
+ "description": "<p>Motion will return a HTTP status code <code>200</code> upon success. Motion return a HTTP status code <code>404</code> if the corresponding record could not be located.</p> <p>Motion renders the resulting JSON representation in the response body.</p>",
+ "version": "0.0.0",
+ "filename": "server/api/whatsappTransferReport/index.js",
+ "groupTitle": "Whatsapp_Transfer_Reports"
+ },
+ {
+ "type": "post",
"url": "/api/integrations/zendesk/accounts",
"title": "Creates a new Zendesk Account",
"examples": [