### Example Request Body for Creating Customers Source: https://alatwa.readme.io/reference/postcustomer Provides an example of the JSON request body used to create customers via the API. It includes parameters for filtering and grouping, along with a list of customer objects. ```json { "generate_prefix_number": "no", "filter_duplicate": "yes", "group": "contoh 1", "customers": [ { "phone":"0812347899981", "name": "tes 1", "opt1": "opt1", "opt2": "opt2", "opt3": "opt3", "opt4": "opt4", "opt5": "opt5", "opt6": "opt6", "opt7": "opt7" }, { "phone":"0812347899983", "name": "tes 2", "opt1": "opt1", "opt2": "opt2", "opt3": "opt3", "opt4": "opt4", "opt5": "opt5", "opt6": "opt6", "opt7": "opt7" }, { "phone":"0812347899984", "name": "tes 3", "opt1": "opt1", "opt2": "opt2", "opt3": "opt3", "opt4": "opt4", "opt5": "opt5", "opt6": "opt6", "opt7": "opt7" } ] } ``` -------------------------------- ### Example Request Body for Creating Customers Source: https://alatwa.readme.io/reference/customer Provides an example JSON payload for the API request to create customers. This includes general settings like 'generate_prefix_number' and 'filter_duplicate', along with a list of customer objects. ```json { "generate_prefix_number": "no", "filter_duplicate": "yes", "group": "contoh 1", "customers": [ { "phone":"0812347899981", "name": "tes 1", "opt1": "opt1", "opt2": "opt2", "opt3": "opt3", "opt4": "opt4", "opt5": "opt5", "opt6": "opt6", "opt7": "opt7" }, { "phone":"0812347899983", "name": "tes 2", "opt1": "opt1", "opt2": "opt2", "opt3": "opt3", "opt4": "opt4", "opt5": "opt5", "opt6": "opt6", "opt7": "opt7" }, { "phone":"0812347899984", "name": "tes 3", "opt1": "opt1", "opt2": "opt2", "opt3": "opt3", "opt4": "opt4", "opt5": "opt5", "opt6": "opt6", "opt7": "opt7" } ] } ``` -------------------------------- ### Keyword Response Setup Source: https://alatwa.readme.io/reference/keyword-response Explains how to set up keyword responses in Alat WA. This involves creating a primary template and then a response template that references the parent keyword. ```APIDOC # Keyword Response Setup **Notes**: Wajib isi parent keyword ## Intro Keyword response mampu merespon message tanpa keyword, ajaib bukan? Bagaimana cara settingnya? yuk langsung aja liat tutorialnya: 1. Buat template **Aduan atau Komplain** seperti ini (Image placeholder for template setup) Kemudian buat template untuk merespon template sebelumnya dengan keyword **response** , **isi Parent keyword** dengan nama template sebelumnya, bisa lebih dari 1 seperti gambar dibawah ini (Image placeholder for response template setup with parent keyword) ``` -------------------------------- ### cURL Request Example Source: https://alatwa.readme.io/reference/tools An example of how to make a POST request using cURL to the Alat WA API, likely for creating a customer or sending a message. ```cURL curl --request POST \ --url https://filter-whatsapp.alatwa.com/ \ --header 'Authorization: apikey' \ --header 'accept: application/json' \ --header 'content-type: application/json' ``` -------------------------------- ### cURL Request Example Source: https://alatwa.readme.io/reference/post An example of how to make a POST request using cURL to the Alat WA API, likely for creating a customer or sending a message. ```cURL curl --request POST \ --url https://filter-whatsapp.alatwa.com/ \ --header 'Authorization: apikey' \ --header 'accept: application/json' \ --header 'content-type: application/json' ``` -------------------------------- ### Connect Template to Device Source: https://alatwa.readme.io/reference/tutorial-lengkap-auto-reply This section explains how to link a created Auto Reply template to a specific connected device or apply it to all devices. It guides users through the process of selecting a device or choosing the 'ALL' option after creating a template. ```id 1. Klik tombol Apply template pada menu auto reply 2. Pilih **1 device** yang ingin dihubungkan dengan template auto reply atau pilih **ALL** jika ingin menerapkannya ke semua device ``` -------------------------------- ### Get Message by ID Example Source: https://alatwa.readme.io/reference/message-get Example cURL request to retrieve a specific message using its ID. ```cURL curl --request GET \ --url https://api.alatwa.com/message/your_message_id \ --header 'accept: application/json' ``` -------------------------------- ### Get Message by ID Example Source: https://alatwa.readme.io/reference/getmessageid Example cURL request to retrieve a specific message using its ID. ```cURL curl --request GET \ --url https://api.alatwa.com/message/your_message_id \ --header 'accept: application/json' ``` -------------------------------- ### Get AI Endpoint Source: https://alatwa.readme.io/reference/list This snippet demonstrates how to make a GET request to the AI endpoint. It includes the necessary URL and authorization header. ```cURL curl --request GET \ --url https://api.alatwa.com/ai \ --header 'Authorization: apikey' ``` -------------------------------- ### Get AI Endpoint Source: https://alatwa.readme.io/reference/ai This snippet demonstrates how to make a GET request to the AI endpoint. It includes the necessary URL and authorization header. ```cURL curl --request GET \ --url https://api.alatwa.com/ai \ --header 'Authorization: apikey' ``` -------------------------------- ### AI Training and Device Management Source: https://alatwa.readme.io/reference/ai-model Links to AI Training and Device management sections. ```APIDOC Related Links: - AI Training: /reference/ai-training - Device Management: /reference/device-1 ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/template-aktif-pada-jam-tertentu Manages AI configurations, including listing AI settings, updating them, and rejecting customers. ```APIDOC AI Settings: GET /ai/list Description: Retrieves a list of current AI settings. Returns: Array of AI setting objects. PATCH /ai/update-setting Description: Updates AI settings. Parameters: setting_data (object): An object containing the settings to update. Returns: Status of the update operation. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: customer_id (string): The ID of the customer to reject. Returns: Status of the rejection operation. ``` -------------------------------- ### Integrations Source: https://alatwa.readme.io/reference/device-1 Information on integrating with Alat WA via Webhook and N8N. ```APIDOC Webhook: Description: Receive real-time updates from Alat WA via webhooks. Endpoint: /message N8N: Description: Integration with N8N for workflow automation. Endpoint: /n8n ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/getdevicefixqrdeviceid Manages AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI Settings: List AI Settings (GET): URL: https://api.alatwa.com/ai/settings Description: Retrieves a list of current AI settings. Update AI Setting (PATCH): URL: https://api.alatwa.com/ai/settings/{setting_id} Description: Updates a specific AI setting. Parameters: setting_id (string, required): The identifier of the AI setting to update. (See PATCH /ai/settings/{setting_id} documentation for details) Reject Customer (POST): URL: https://api.alatwa.com/ai/reject-customer Description: Marks a customer as rejected within the AI system. Parameters: (See POST /ai/reject-customer documentation for details) ``` -------------------------------- ### Create Customer Source: https://alatwa.readme.io/reference/message-get Creates a new customer record in the system. ```APIDOC POST /customer Description: Creates a new customer record. Request Body: name (string, required): The name of the customer. phone (string, required): The phone number of the customer. email (string, optional): The email address of the customer. Responses: 201 Created: Customer created successfully. 400 Bad Request: Invalid input parameters. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/tutorial-lengkap-auto-reply Manages AI-related settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC GET /ai/settings Description: Retrieves the current AI settings configuration. Returns: An object containing AI settings. PATCH /ai/settings Description: Updates the AI settings. Parameters: settings (object): An object containing the AI settings to update. Returns: The updated AI settings object. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: customerId (string): The ID of the customer to reject. Returns: Status of the rejection operation. ``` -------------------------------- ### Request QR Scan Device ID Source: https://alatwa.readme.io/reference/getdevicescandeviceid Example cURL request to scan a device by its ID. ```curl curl --request GET \ --url https://api.alatwa.com/device/scan/device_id \ --header 'accept: application/json' ``` -------------------------------- ### Get Device List Source: https://alatwa.readme.io/reference/getdevicelist Retrieves a list of connected devices. This endpoint requires an 'accept' header set to 'application/json'. ```cURL curl --request GET \ --url https://api.alatwa.com/device/list \ --header 'accept: application/json' ``` -------------------------------- ### API: Device Management Source: https://alatwa.readme.io/reference/pesan-beruntun-sequence-message Kelola perangkat yang terhubung, termasuk mendapatkan status, memperbaiki QR, dan memindai QR. ```APIDOC GET /device - Mendapatkan daftar perangkat. GET /device/fixQR/{deviceId} - Memperbaiki QR code untuk perangkat yang terhubung. - Parameter: - deviceId: ID perangkat yang akan diperbaiki. GET /device/scan/{deviceId} - Memindai QR code untuk perangkat yang terhubung. - Parameter: - deviceId: ID perangkat yang akan dipindai. GET /device/disconnect/{deviceId} - Memutuskan koneksi perangkat. - Parameter: - deviceId: ID perangkat yang akan diputuskan koneksinya. ``` -------------------------------- ### Retrieve Message API Source: https://alatwa.readme.io/reference/reject-customer This API endpoint allows retrieving messages. It can be used to get all messages or messages by a specific ID. ```APIDOC GET /message Description: Retrieves a list of messages. Query Parameters: (Parameters for filtering or pagination might be available but not detailed.) Example: (No specific cURL example provided for this endpoint in the text.) GET /message/{id} Description: Retrieves a specific message by its ID. Path Parameters: id (string, required): The ID of the message to retrieve. Example: (No specific cURL example provided for this endpoint in the text.) ``` -------------------------------- ### API: AI Settings Source: https://alatwa.readme.io/reference/pesan-beruntun-sequence-message Mengelola pengaturan AI, termasuk memperbarui dan mengambil daftar pengaturan. ```APIDOC PATCH /setting - Memperbarui pengaturan AI. - Parameter: - ai_model: Model AI yang digunakan. - temperature: Suhu model AI. GET /list - Mendapatkan daftar pengaturan AI. ``` -------------------------------- ### Get Device QR Code Source: https://alatwa.readme.io/reference/getdevicefixqrdeviceid Retrieves the QR code for a specific device. This is typically used for device registration or connection. ```APIDOC GET /device/fix/qr/device_id - Retrieves the QR code for a specific device. - Parameters: - device_id: The unique identifier of the device. ``` ```cURL curl --request GET \ --url https://api.alatwa.com/device/fix/qr/device_id \ --header 'accept: application/json' ``` -------------------------------- ### Get Device List Source: https://alatwa.readme.io/reference/device Retrieves a list of devices associated with the account. This endpoint requires an 'accept' header set to 'application/json'. ```cURL curl --request GET \ --url https://api.alatwa.com/device/list \ --header 'accept: application/json' ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/membuat-akun-untuk-agent-atau-cs Manages AI configurations, including retrieving settings, updating them, and rejecting customers. ```APIDOC AI API: List of AI settingget: GET /ai/settings Description: Retrieves the current AI settings. Parameters: None Returns: An object containing all AI configuration settings. Update AI Settingpatch: PATCH /ai/settings Description: Updates existing AI settings. Parameters: - setting_name (string): The name of the setting to update. - setting_value (any): The new value for the setting. Returns: Confirmation of the updated setting. Reject Customerpost: POST /ai/reject-customer Description: Marks a customer as rejected by the AI system. Parameters: - customer_id (string): The ID of the customer to reject. - reason (string, optional): The reason for rejection. Returns: Confirmation that the customer has been marked as rejected. ``` -------------------------------- ### Get Device Information Source: https://alatwa.readme.io/reference/message-get Retrieves information about a specific device using its ID. This endpoint is part of the Device management section of the API. ```APIDOC GET /device/{device_id} Description: Retrieves information about a specific device. Parameters: device_id (string, required): The unique identifier of the device. Responses: 200 OK: Device information retrieved successfully. 404 Not Found: Device with the specified ID not found. Example: curl --request GET \ --url https://api.alatwa.com/device/your_device_id \ --header 'accept: application/json' ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/trial-gratis-7-hari Manages AI-related settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI API: GET /ai/settings Description: Retrieves the list of current AI settings. Returns: Array of AI setting objects. PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: - settingId (string): The unique identifier of the AI setting to update. Request Body: - configuration (object): The new configuration for the AI setting. Returns: The updated AI setting object. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Request Body: - customerId (string): The unique identifier of the customer. - reason (string, optional): The reason for rejection. Returns: Status message indicating the customer was rejected. ``` -------------------------------- ### Get Device Information Source: https://alatwa.readme.io/reference/getmessageid Retrieves information about a specific device using its ID. This endpoint is part of the Device management section of the API. ```APIDOC GET /device/{device_id} Description: Retrieves information about a specific device. Parameters: device_id (string, required): The unique identifier of the device. Responses: 200 OK: Device information retrieved successfully. 404 Not Found: Device with the specified ID not found. Example: curl --request GET \ --url https://api.alatwa.com/device/your_device_id \ --header 'accept: application/json' ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/membuat-flow-template-agar-lebih-rapih Endpoints for managing AI configurations, including training, model selection, and rejection settings. ```APIDOC AI API: GET /ai/list List of AI settingget: Retrieves a list of current AI settings. PATCH /ai/update-setting Update AI Settingpatch: Updates the AI settings. Request Body: settingName: The name of the setting to update. settingValue: The new value for the setting. POST /ai/reject-customer Reject Customerpost: Marks a customer as rejected by the AI. ``` -------------------------------- ### cURL Request for Sending Text Message Source: https://alatwa.readme.io/reference/postsendtext Example cURL command to send a text message using the Alat WA API. This demonstrates the necessary headers and the URL for the POST request. ```cURL curl --request POST \ --url https://api.alatwa.com/send/text \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data '{ "to": "628111111111", "message": "Hello from Alat WA!" }' ``` -------------------------------- ### AI API Endpoints Source: https://alatwa.readme.io/reference/getdevicelist Manages AI settings, including listing, updating, and rejecting customers. ```APIDOC AI API: List AI Settings: GET https://api.alatwa.com/ai/settings Description: Retrieves a list of AI settings. Parameters: Authorization: string (Required) - API key for authentication. Update AI Setting: PATCH https://api.alatwa.com/ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: Authorization: string (Required) - API key for authentication. settingId: string (Required) - The ID of the AI setting to update. value: any (Required) - The new value for the setting. Reject Customer: POST https://api.alatwa.com/ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: Authorization: string (Required) - API key for authentication. customerId: string (Required) - The ID of the customer to reject. ``` -------------------------------- ### cURL Request for Sending Text Message Source: https://alatwa.readme.io/reference/message-send Example cURL command to send a text message using the Alat WA API. This demonstrates the necessary headers and the URL for the POST request. ```cURL curl --request POST \ --url https://api.alatwa.com/send/text \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data '{ "to": "628111111111", "message": "Hello from Alat WA!" }' ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/pesan-beruntun-sequence-message APIs for managing AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI API: List of AI settingget: GET /ai/settings Description: Retrieves a list of all AI settings. Returns: An array of AI setting objects. Update AI Settingpatch: PATCH /ai/settings/{id} Description: Updates a specific AI setting. Parameters: - id: The ID of the AI setting to update. - settings: The updated settings object. Returns: The updated AI setting object. Reject Customerpost: POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: - customer_id: The ID of the customer to reject. Returns: Confirmation of the rejection. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/device-1 Endpoints for managing AI settings, including listing, updating, and rejecting customers. ```APIDOC GET /list Description: Retrieves a list of AI settings. Parameters: None Returns: Array of AI setting objects. PATCH /update-setting Description: Updates an AI setting. Parameters: settingId (string): The ID of the setting to update. value (any): The new value for the setting. Returns: Success or failure status. POST /reject-customer Description: Marks a customer as rejected. Parameters: customerId (string): The ID of the customer to reject. Returns: Success or failure status. ``` -------------------------------- ### Device Management API Source: https://alatwa.readme.io/reference/trial-gratis-7-hari Provides endpoints for managing connected devices. Includes methods to retrieve a list of devices, get QR codes for scanning, fix QR scan issues, and disconnect devices. ```APIDOC Device API: GET /device Description: Retrieves a list of all connected devices. Returns: Array of device objects. GET /device/scan/{deviceId} Description: Requests a QR code for scanning to connect a device. Parameters: - deviceId (string): The unique identifier for the device. Returns: QR code data. GET /device/fix-qr/{deviceId} Description: Attempts to fix issues with a scanned QR code for a device. Parameters: - deviceId (string): The unique identifier for the device. Returns: Status message indicating success or failure. GET /device/disconnect/{deviceId} Description: Disconnects a specified device. Parameters: - deviceId (string): The unique identifier for the device to disconnect. Returns: Status message indicating successful disconnection. ``` -------------------------------- ### Integrations Source: https://alatwa.readme.io/reference/membuat-list-menu-pengganti-button Information on integrating with external services like Webhook and N8N. ```APIDOC Integrations: Webhook: /message Information regarding webhook integration for receiving messages. N8N: /n8n Details on integrating with N8N for workflow automation. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/postcustomer Enables managing AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI Settings: List of AI settingget: GET /ai/settings Description: Retrieves the list of current AI settings. Update AI Settingpatch: PATCH /ai/settings Description: Updates AI settings. Request Body: setting_name (string): The name of the setting to update. setting_value (string): The new value for the setting. Reject Customerpost: POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Request Body: customer_id (string): The ID of the customer to reject. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/alat-wa APIs for managing AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC GET /ai/settings Description: Retrieves a list of all AI settings. Parameters: None Returns: A list of AI setting objects. PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: - settingId (string): The ID of the AI setting to update. - settingData (object): The updated setting data. Returns: The updated AI setting object. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: - customerId (string): The ID of the customer to reject. Returns: Success or failure status. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/index APIs for managing AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC GET /ai/settings Description: Retrieves a list of all AI settings. Parameters: None Returns: A list of AI setting objects. PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: - settingId (string): The ID of the AI setting to update. - settingData (object): The updated setting data. Returns: The updated AI setting object. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: - customerId (string): The ID of the customer to reject. Returns: Success or failure status. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/update-setting Manages AI-related settings, including listing AI configurations, updating AI settings, and rejecting customers. ```APIDOC AI Settings: List of AI settingget: GET /ai Retrieves a list of current AI settings. Update AI Settingpatch: PATCH /ai/{id} Updates the AI settings for a specific AI configuration. Parameters: - id: The ID of the AI setting to update. Request Body: - settings: An object containing the updated AI settings. Reject Customerpost: POST /ai/reject-customer Marks a customer as rejected by the AI. ``` -------------------------------- ### AI API Endpoints Source: https://alatwa.readme.io/reference/device Manages AI settings, including listing, updating, and rejecting customers. ```APIDOC AI API: List AI Settings: GET https://api.alatwa.com/ai/settings Description: Retrieves a list of AI settings. Parameters: Authorization: string (Required) - API key for authentication. Update AI Setting: PATCH https://api.alatwa.com/ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: Authorization: string (Required) - API key for authentication. settingId: string (Required) - The ID of the AI setting to update. value: any (Required) - The new value for the setting. Reject Customer: POST https://api.alatwa.com/ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: Authorization: string (Required) - API key for authentication. customerId: string (Required) - The ID of the customer to reject. ``` -------------------------------- ### Template Aktif Pada Jam tertentu Source: https://alatwa.readme.io/reference/template-aktif-pada-jam-tertentu This section describes how to activate templates at specific times. It involves enabling the 'Schedule' option and defining the time range for activation. ```APIDOC Template Scheduling: Functionality: Activate templates during specific hours. Steps: 1. Enable the 'Schedule' option. 2. Define the start and end times for the schedule. Details: If you want to activate a template at a specific time, you must check the Schedule section. This will reveal the duration from what time to what time. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/postsendtext Manages AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI Settings: GET /ai/settings Description: Retrieves the list of AI settings. Parameters: None Returns: List of AI setting configurations. PATCH /ai/settings Description: Updates AI settings. Headers: Authorization: APIKEY of your Alat WA Account (Required) Content-Type: application/json (Required) Body Parameters: (Details of parameters for updating AI settings would be provided here, e.g., setting name, new value) Returns: Confirmation of settings update. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Headers: Authorization: APIKEY of your Alat WA Account (Required) Content-Type: application/json (Required) Body Parameters: (Details of parameters for rejecting a customer would be provided here, e.g., customer ID, reason) Returns: Confirmation of customer rejection. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/postsendmedia Manages AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC GET /ai/list Description: Retrieves a list of all AI settings. Parameters: Authorization (Header, string, Yes): APIKEY of your Alat WA Account. Returns: Array of AI setting objects. PATCH /ai/update-setting Description: Updates an existing AI setting. Parameters: Authorization (Header, string, Yes): APIKEY of your Alat WA Account. Content-Type (Header, string, Yes): application/json setting_update (Body, object, Yes): Object containing the AI setting to update. Returns: Status of the AI setting update. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: Authorization (Header, string, Yes): APIKEY of your Alat WA Account. Content-Type (Header, string, Yes): application/json customer_id (Body, string, Yes): The ID of the customer to reject. Returns: Status of the customer rejection operation. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/reject-customer APIs for managing AI settings, including listing, updating, and rejecting customers. ```APIDOC AI API: List of AI settingget: GET /ai/settings Description: Retrieves a list of current AI settings. Parameters: None Returns: An object containing AI settings. Update AI Settingpatch: PATCH /ai/settings Description: Updates the AI settings. Parameters: - settings (object): An object containing the AI settings to update. Returns: The updated AI settings object. Reject Customerpost: POST /ai/customer/reject/{id} Description: Rejects a customer associated with a specific ID. Parameters: - id (string): The ID of the customer to reject. Returns: A status indicating if the customer was rejected. ``` -------------------------------- ### Customer Management API Source: https://alatwa.readme.io/reference/getdevicefixqrdeviceid Provides functionality to create new customer records. ```APIDOC Customer Management: Create Customer (POST): URL: https://api.alatwa.com/customer Description: Creates a new customer record. Parameters: (See POST /customer documentation for details) ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/contain-message Manages AI-related settings and configurations. Includes endpoints for listing AI settings, updating them, and managing rejected customers. ```APIDOC AI Settings: GET /ai/settings Description: Retrieves a list of current AI settings. Parameters: None Returns: Array of AI setting objects. PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: - settingId (string): The ID of the AI setting to update. - data (object): The updated settings data. Returns: Status of the update operation. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: - customerId (string): The ID of the customer to reject. - reason (string, optional): The reason for rejection. Returns: Status of the rejection operation. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/tools Manages AI settings, including retrieving a list of AI configurations, updating settings, and rejecting customers. ```APIDOC GET /ai/settings Description: Retrieves a list of all AI settings. Parameters: None Returns: A list of AI setting objects. PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: settingId (string, required): The ID of the AI setting to update. updateData (object, required): An object containing the updated setting values. Returns: The updated AI setting object. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: customerId (string, required): The ID of the customer to reject. Returns: Success or failure status of the rejection. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/keyword-response Manages AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI API: List of AI settingget: GET /ai/settings Description: Retrieves a list of all AI settings. Returns: An array of AI setting objects. Update AI Settingpatch: PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: - settingId (string): The unique identifier for the AI setting. - settingData (object): An object containing the updated setting details. Returns: The updated AI setting object. Reject Customerpost: POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: - customerId (string): The unique identifier for the customer. Returns: Status of the rejection operation. ``` -------------------------------- ### Manage Integrations Source: https://alatwa.readme.io/reference/update-setting Endpoints for managing integrations, including webhook configurations and N8N integration details. ```APIDOC Webhook Configuration (POST): /message Configures webhook settings for receiving messages. N8N Integration (GET): /n8n Provides details or configuration for N8N integration. ``` -------------------------------- ### Customer Management API Source: https://alatwa.readme.io/reference/tutorial-lengkap-auto-reply Allows for the creation and management of customer records within the system. ```APIDOC POST /customer Description: Creates a new customer record. Parameters: name (string): The name of the customer. phone (string): The customer's phone number. email (string, optional): The customer's email address. Returns: The created customer object with its ID. ``` -------------------------------- ### List AI Settings API Source: https://alatwa.readme.io/reference/reject-customer This API endpoint retrieves a list of all AI settings. ```APIDOC GET /ai/settings/list Description: Retrieves a list of all AI settings. Example: (No specific cURL example provided for this endpoint in the text.) ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/post Manages AI settings, including retrieving a list of AI configurations, updating settings, and rejecting customers. ```APIDOC GET /ai/settings Description: Retrieves a list of all AI settings. Parameters: None Returns: A list of AI setting objects. PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: settingId (string, required): The ID of the AI setting to update. updateData (object, required): An object containing the updated setting values. Returns: The updated AI setting object. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: customerId (string, required): The ID of the customer to reject. Returns: Success or failure status of the rejection. ``` -------------------------------- ### Customer Management API Endpoint Source: https://alatwa.readme.io/reference/list Create new customer entries in the system. ```APIDOC Customer API: POST /customer Description: Creates a new customer. Parameters: - name (string): The name of the customer. - phone (string): The phone number of the customer. - email (string, optional): The email address of the customer. Returns: The created customer object. ``` -------------------------------- ### Alat WA API - AI Settings Source: https://alatwa.readme.io/reference/membuat-list-menu-pengganti-button Endpoints for managing AI settings, including updating and retrieving AI configurations. ```APIDOC PATCH /setting Description: Updates AI settings. Request Body: - modelName (string): The name of the AI model. - provider (string): The AI provider. Returns: Status of the update. GET /list Description: Retrieves a list of all AI settings. Returns: An array of AI setting objects. ``` -------------------------------- ### API: AI Actions Source: https://alatwa.readme.io/reference/pesan-beruntun-sequence-message Melakukan tindakan terkait AI, seperti menolak pelanggan. ```APIDOC POST /reject-customer - Menolak pelanggan. - Parameter: - customer_id: ID pelanggan yang akan ditolak. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/membuat-list-menu-pengganti-button Endpoints for managing AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI API: List of AI settingget: /ai/settings Retrieves a list of current AI settings. Update AI Settingpatch: /ai/settings/{settingId} Updates a specific AI setting. Parameters: - settingId: The unique identifier of the setting to update. Request Body: - configuration: The new configuration details. Reject Customerpost: /ai/reject-customer Marks a customer as rejected by the AI. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/import-menggunakan-excel Manages AI settings, including retrieving a list of AI settings, updating specific settings, and rejecting customers. ```APIDOC AI: GET /ai/settings Get a list of AI settings. PATCH /ai/settings/{settingId} Update a specific AI setting. Parameters: settingId: The ID of the AI setting to update. settings: The updated settings. POST /ai/reject-customer Reject a customer. Parameters: customerId: The ID of the customer to reject. ``` -------------------------------- ### Welcome Message Configuration Source: https://alatwa.readme.io/reference/tutorial-lengkap-auto-reply Set up a welcome message that responds to any message from a customer if they haven't sent a message in the last 24 hours. This template can be configured to have a different duration for the 'welcome message duration' in the device settings. Other keyword-based templates will still function if the customer sends a message matching those keywords. ```APIDOC Welcome Message Template: Configuration: Keyword: 'welcome message' (or a custom keyword). Parent Keyword: Leave empty. Behavior: Responds to any customer message if no message has been received for 24 hours. The 'welcome message duration' can be adjusted in device settings. Other keyword-based templates remain active. ``` -------------------------------- ### List AI Settings Source: https://alatwa.readme.io/reference/message-get Retrieves a list of all available AI settings. ```APIDOC GET /ai/settings/list Description: Retrieves a list of AI settings. Responses: 200 OK: List of AI settings retrieved successfully. ``` -------------------------------- ### AI Settings Management Source: https://alatwa.readme.io/reference/getdevicefixqrdeviceid Manages AI settings, including updating specific AI configurations and retrieving a list of all available AI settings. ```APIDOC PATCH /setting/ai - Updates AI settings. - Request Body: - ai_model: The AI model to use. - ai_provider: The provider of the AI model. ``` ```APIDOC GET /setting/ai/list - Retrieves a list of all AI settings. ``` -------------------------------- ### Customer Management API Source: https://alatwa.readme.io/reference/ai-training Endpoint for creating new customer accounts. ```APIDOC POST /customer Description: Creates a new customer account. Parameters: - name (string): The name of the customer. - phoneNumber (string): The customer's phone number. - email (string, optional): The customer's email address. Returns: The created customer object. ``` -------------------------------- ### Create Customer Source: https://alatwa.readme.io/reference/getmessageid Creates a new customer record in the system. ```APIDOC POST /customer Description: Creates a new customer record. Request Body: name (string, required): The name of the customer. phone (string, required): The phone number of the customer. email (string, optional): The email address of the customer. Responses: 201 Created: Customer created successfully. 400 Bad Request: Invalid input parameters. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/n8n Manages AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI Settings: GET /ai/settings Description: Retrieves a list of all AI settings. Parameters: None Returns: A list of AI setting objects. PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: - settingId (string): The unique identifier of the AI setting. - settingData (object): The updated AI setting data. Returns: The updated AI setting object. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: - customerId (string): The ID of the customer to reject. Returns: Status indicating if the customer was rejected. ``` -------------------------------- ### Customer Management API Endpoint Source: https://alatwa.readme.io/reference/ai Create new customer entries in the system. ```APIDOC Customer API: POST /customer Description: Creates a new customer. Parameters: - name (string): The name of the customer. - phone (string): The phone number of the customer. - email (string, optional): The email address of the customer. Returns: The created customer object. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/message-get Manages AI settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI Settings: List AI Settings (GET): Endpoint: /ai/settings Description: Retrieves a list of current AI settings. Update AI Setting (PATCH): Endpoint: /ai/settings/{setting_id} Description: Updates a specific AI setting. Parameters: - setting_id (string, required): The ID of the setting to update. Request Body: - new_value (any, required): The new value for the setting. Reject Customer (POST): Endpoint: /ai/reject-customer Description: Marks a customer as rejected within the AI system. Request Body: - customer_id (string, required): The ID of the customer to reject. ``` -------------------------------- ### Alat WA API - Integrations Source: https://alatwa.readme.io/reference/membuat-list-menu-pengganti-button Endpoints for managing integrations, specifically webhooks and N8N. ```APIDOC POST /message Description: Configures webhook for receiving messages. Request Body: - url (string): The URL to send webhook notifications to. Returns: Status of the webhook configuration. GET /n8n Description: Provides information or configuration for N8N integration. Returns: N8N integration details. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/rejected-customer Manages AI settings, including listing, updating, and rejecting customers based on AI criteria. ```APIDOC AI Settings: GET /ai/settings Description: Retrieves the list of AI settings. Returns: Array of AI setting objects. PATCH /ai/settings/{settingId} Description: Updates a specific AI setting. Parameters: settingId (string): The ID of the AI setting to update. settings (object): The updated settings. Returns: Updated AI setting object. POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: customerId (string): The ID of the customer to reject. Returns: Success message. ``` -------------------------------- ### AI Settings API Source: https://alatwa.readme.io/reference/ai-model Manages AI-related settings, including retrieving AI configurations, updating settings, and rejecting customers. ```APIDOC AI: List of AI settingget: GET /ai/settings Description: Retrieves the current AI settings. Parameters: None Returns: An object containing AI settings. Update AI Settingpatch: PATCH /ai/settings Description: Updates the AI settings. Parameters: - settings (object): An object containing the AI settings to update. Returns: The updated AI settings object. Reject Customerpost: POST /ai/reject-customer Description: Marks a customer as rejected by the AI. Parameters: - customerId (string): The ID of the customer to reject. Returns: Status indicating if the customer was rejected. ``` -------------------------------- ### Customer Management API Source: https://alatwa.readme.io/reference/trial-gratis-7-hari Allows for the creation of customer accounts within the Alat WA system. ```APIDOC Customer API: POST /customer Description: Creates a new customer account. Request Body: - name (string): The name of the customer. - phoneNumber (string): The phone number of the customer. - email (string, optional): The email address of the customer. Returns: The created customer object. ```