{"info":{"_postman_id":"64e8ca84-2d00-4a29-b49e-87a00dc51d0e","name":"AMANE3  CONNECT v1.0.0","description":"<html><head></head><body><h1 id=\"amane3-connect-api\">Amane3 Connect API</h1>\n<p>This collection contains the API endpoints for Amane3 Connect, a messaging solution that allows businesses to send emails, SMS, and WhatsApp messages efficiently. The endpoints cover various functionalities such as sending bulk emails, bulk sms, bulk WhatsApp managing contacts, and checking all their status.</p>\n<h2 id=\"endpoints-included\">Endpoints Included:</h2>\n<ul>\n<li><p><strong>Send Email</strong>: <code>email/send</code></p>\n</li>\n<li><p><strong>Email Delivery</strong>: <code>get/email/{{uid}}</code></p>\n</li>\n<li><p><strong>Send SMS</strong>: <code>sms/send</code></p>\n</li>\n<li><p><strong>SMS Delivery</strong>: <code>get/sms/{{uid}}</code></p>\n</li>\n<li><p><strong>Send Whatsapp</strong>: <code>whatsapp/send</code></p>\n</li>\n<li><p><strong>Whatsapp Delivery</strong>: <code>get/whatsapp/{{uid}}</code></p>\n</li>\n</ul>\n<h2 id=\"usage\">Usage</h2>\n<p>Each request in this collection includes the necessary headers and body parameters to interact with the Amane3 Connect API. Please replace placeholders with actual data.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>The API requires an API key for authentication. Ensure you include the <code>Api-key</code> header with your valid API key in each request.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Amane3 Connect API","slug":"amane3-connect-api"}],"owner":"18406034","collectionId":"64e8ca84-2d00-4a29-b49e-87a00dc51d0e","publishedId":"2sA3kd9HCU","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-02T03:36:37.000Z"},"item":[{"name":"SendEmail","id":"0fc6c0ff-cca9-4179-b6d3-4765f1c21692","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-key","value":"your-api-key","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"contact\": [\n        {\n            \"subject\": \"you subject\",\n            \"email\": \"receiver@mail.com\",\n            \"message\": \"your message\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://amane3.tanacom.io/api/email/send","description":"<h3 id=\"email-send\">Email Send</h3>\n<p>This endpoint is used to send emails.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>contact</code> (array of objects, required): An array containing objects with the following parameters:</p>\n<ul>\n<li><p><code>subject</code> (string, required): The subject of the email.</p>\n</li>\n<li><p><code>email</code> (string, required): The recipient's email address.</p>\n</li>\n<li><p><code>message</code> (string, required): The content of the email.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response-201---created\">Response (201 - Created)</h4>\n<p>The response is in JSON format and follows the schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"email_logs\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"uid\": {\n            \"type\": \"string\"\n          },\n          \"email\": {\n            \"type\": \"string\"\n          },\n          \"status\": {\n            \"type\": \"string\"\n          },\n          \"created_at\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    },\n    \"message\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n<p>The response includes the following properties:</p>\n<ul>\n<li><p><code>status</code> (string): The status of the email sending process.</p>\n</li>\n<li><p><code>email_logs</code> (array of objects): An array containing logs for each email sent, with the following parameters:</p>\n<ul>\n<li><p><code>uid</code> (string): The unique identifier for the email log.</p>\n</li>\n<li><p><code>email</code> (string): The recipient's email address.</p>\n</li>\n<li><p><code>status</code> (string): The status of the email delivery.</p>\n</li>\n<li><p><code>created_at</code> (string): The timestamp of when the email was sent.</p>\n</li>\n</ul>\n</li>\n<li><p><code>message</code> (string): Additional information or message related to the email sending process.</p>\n</li>\n</ul>\n","urlObject":{"path":["send"],"host":["https://amane3.tanacom.io/api/email"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fc6c0ff-cca9-4179-b6d3-4765f1c21692"},{"name":"GetEmailDeliveryStatus","id":"e4abdf57-0721-43d3-9def-e7b805d15907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-key","value":"your-api-key","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://amane3.tanacom.io/api/get/email/{{uid}}","description":"<p>The endpoint retrieves email details for a specific user identified by their unique ID.</p>\n<p>The response returned is a JSON object with the following properties:</p>\n<ul>\n<li><p><code>status</code> (string): Indicates the status of the request.</p>\n</li>\n<li><p><code>email_logs</code> (object): Contains the email log details with the following properties:</p>\n<ul>\n<li><p><code>uid</code> (string): Unique identifier for the email log.</p>\n</li>\n<li><p><code>email</code> (string): Email address associated with the log.</p>\n</li>\n<li><p><code>content</code> (string): Content of the email.</p>\n</li>\n<li><p><code>status</code> (string): Status of the email log.</p>\n</li>\n<li><p><code>updated_at</code> (string): Timestamp indicating when the email log was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response can be used as a JSON schema for the structure of the data returned by the API endpoint.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, 'https://amane3.tanacom.io/api/get/email/{{uid}}');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n$response = curl_exec($ch);\nif (curl_getinfo($ch, CURLINFO_HTTP_CODE) === 201) {\n    $data = json_decode($response, true);\n    // Process the $data as per your requirement\n} else {\n    echo 'Request failed: HTTP status code - ' . curl_getinfo($ch, CURLINFO_HTTP_CODE);\n}\ncurl_close($ch);\n?&gt;\n\n</code></pre>\n<p>The response returned is a JSON object with the following properties:</p>\n<ul>\n<li><p><code>status</code> (string): Indicates the status of the request.</p>\n</li>\n<li><p><code>email_logs</code> (object): Contains the email log details with the following properties:</p>\n<ul>\n<li><p><code>uid</code> (string): Unique identifier for the email log.</p>\n</li>\n<li><p><code>email</code> (string): Email address associated with the log.</p>\n</li>\n<li><p><code>content</code> (string): Content of the email.</p>\n</li>\n<li><p><code>status</code> (string): Status of the email log.</p>\n</li>\n<li><p><code>updated_at</code> (string): Timestamp indicating when the email log was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response can be used as a JSON schema for the structure of the data returned by the API endpoint.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">// Assuming $response contains the JSON response from the API\n$responseArray = json_decode($response, true);\n// Accessing the email logs\n$emailLogs = $responseArray['email_logs'];\n// Accessing specific properties\n$uid = $emailLogs['uid'];\n$email = $emailLogs['email'];\n$content = $emailLogs['content'];\n$status = $emailLogs['status'];\n$updatedAt = $emailLogs['updated_at'];\n// Use the retrieved email log details as needed\n?&gt;\n\n</code></pre>\n<p>The response returned is a JSON object with the following properties:</p>\n<ul>\n<li><p>status (string): Indicates the status of the request.</p>\n</li>\n<li><p>email_logs (object): Contains the email log details with the following properties:</p>\n<ul>\n<li><p>uid (string): Unique identifier for the email log.</p>\n</li>\n<li><p>email (string): Email address associated with the log.</p>\n</li>\n<li><p>content (string): Content of the email.</p>\n</li>\n<li><p>status (string): Status of the email log.</p>\n</li>\n<li><p>updated_at (string): Timestamp indicating when the email log was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response can be used as a JSON schema for the structure of the data returned by the API endpoint.</p>\n","urlObject":{"path":["email","{{uid}}"],"host":["https://amane3.tanacom.io/api/get"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4abdf57-0721-43d3-9def-e7b805d15907"},{"name":"SendSMS","id":"bfee0b3e-5a06-4ee5-bbce-179ca167a5a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-key","value":"your-api-key","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"contact\": [\n        {\n            \"number\": \"phone number 1\",\n            \"body\": \"Welcome to Amane3 Connect\",\n            \"sms_type\": \"plain\"\n        },\n        {\n            \"number\": \"phone number 2\",\n            \"body\": \"Your Subscription is Confirmed\",\n            \"sms_type\": \"unicode\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://amane3.tanacom.io/api/sms/send","description":"<p>This API endpoint allows you to send SMS messages. The request should be sent as an HTTP POST to https://amane3.tanacom.io/api/sms/send with a JSON payload in the raw request body type. The payload should include an array of contacts, where each contact object contains the recipient's number, the message body, and the type of SMS.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>contact</code> (array): An array of objects containing the following parameters for each contact:</p>\n<ul>\n<li><p><code>number</code> (string): The recipient's phone number.</p>\n</li>\n<li><p><code>body</code> (string): The content of the SMS message.</p>\n</li>\n<li><p><code>sms_type</code> (string): The type of SMS.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the API returns a status code of 201 and a JSON response with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"\",\n  \"sms_logs\": [\n    {\n      \"uid\": \"\",\n      \"number\": \"\",\n      \"status\": \"\",\n      \"created_at\": \"\"\n    }\n  ],\n  \"message\": \"\"\n}\n\n</code></pre>\n<ul>\n<li><p><code>status</code> (string): The status of the SMS sending process.</p>\n</li>\n<li><p><code>sms_logs</code> (array): An array of objects containing details about the sent SMS messages, including unique identifiers, recipient numbers, status, and creation timestamps.</p>\n<ul>\n<li><p><code>uid</code> (string): Unique identifier for the SMS log.</p>\n</li>\n<li><p><code>number</code> (string): Recipient's phone number.</p>\n</li>\n<li><p><code>status</code> (string): Status of the SMS message.</p>\n</li>\n<li><p><code>created_at</code> (string): Timestamp of when the SMS message was created.</p>\n</li>\n</ul>\n</li>\n<li><p><code>message</code> (string): Additional information or message related to the response.</p>\n</li>\n</ul>\n","urlObject":{"path":["send"],"host":["https://amane3.tanacom.io/api/sms"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfee0b3e-5a06-4ee5-bbce-179ca167a5a6"},{"name":"GetSMSDeliveryStatus","id":"6b78a4f8-e187-47f9-b954-127be7301bea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-key","value":"your-api-key","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://amane3.tanacom.io/api/get/sms/{{uid}}","description":"<h3 id=\"retrieve-sms-details\">Retrieve SMS Details</h3>\n<p>The endpoint makes an HTTP GET request to retrieve SMS details for a specific user identified by their unique ID.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>Endpoint: <code>https://amane3.tanacom.io/api/get/sms/{{uid}}</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response returned is a JSON object with the following properties:</p>\n<ul>\n<li><p><code>status</code> (string): Indicates the status of the request.</p>\n</li>\n<li><p><code>sms_logs</code> (object): Contains the SMS log details with the following properties:</p>\n<ul>\n<li><p><code>uid</code> (string): Unique identifier for the SMS log.</p>\n</li>\n<li><p><code>number</code> (string): Phone number associated with the log.</p>\n</li>\n<li><p><code>content</code> (string): Content of the SMS.</p>\n</li>\n<li><p><code>status</code> (string): Status of the SMS log.</p>\n</li>\n<li><p><code>updated_at</code> (string): Timestamp indicating when the SMS log was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response can be used as a JSON schema for the structure of the data returned by the API endpoint.</p>\n","urlObject":{"path":["sms","{{uid}}"],"host":["https://amane3.tanacom.io/api/get"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b78a4f8-e187-47f9-b954-127be7301bea"},{"name":"SendWhatsapp","id":"5457286b-36b0-4026-8965-c3a1962933e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-key","value":"your-api-key","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"contact\": [\n        {\n            \"number\": \"phone 1\",\n            \"message\": \"Welcome to Amane3 Connect\"\n        },\n        {\n            \"number\": \"phone 2\",\n            \"message\": \"Welcome to Amane3 Connect\",\n            \"media\": \"image\",\n            \"url\": \"https://example.com/image.jpeg\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://amane3.tanacom.io/api/whatsapp/send","description":"<p>The API endpoint allows you to send SMS messages via WhatsApp. The request should be sent as an HTTP POST to https://amane3.tanacom.io/api/whatsapp/send with a JSON payload in the raw request body type. The payload should include an array of contacts, where each contact object contains the recipient's number and the message body.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><p><code>contact</code> (array): An array of objects containing the following parameters for each contact:</p>\n<ul>\n<li><p><code>number</code> (string): The recipient's phone number.</p>\n</li>\n<li><p><code>message</code> (string): The content of the WhatsApp message.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The API returns a status code of 201 upon successful execution, and a JSON response with the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"status\": \"\",\n  \"whatsapp_logs\": [\n    {\n      \"uid\": \"\",\n      \"to\": \"\",\n      \"status\": \"\",\n      \"created_at\": \"\"\n    }\n  ],\n  \"message\": \"\"\n}\n\n</code></pre>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"whatsapp_logs\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"uid\": {\n            \"type\": \"string\"\n          },\n          \"to\": {\n            \"type\": \"string\"\n          },\n          \"status\": {\n            \"type\": \"string\"\n          },\n          \"created_at\": {\n            \"type\": \"string\"\n          }\n        }\n      }\n    },\n    \"message\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["send"],"host":["https://amane3.tanacom.io/api/whatsapp"],"query":[],"variable":[]}},"response":[],"_postman_id":"5457286b-36b0-4026-8965-c3a1962933e5"},{"name":"GetWhatsappDeliveryStatus","id":"df57a244-416b-4389-8c7b-3a99a213cac4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-key","value":"your-api-key","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://amane3.tanacom.io/api/get/whatsapp/{{uid}}","description":"<h3 id=\"retrieve-whatsapp-details\">Retrieve WhatsApp Details</h3>\n<p>The endpoint makes an HTTP GET request to retrieve WhatsApp details for a specific user identified by their unique ID.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>Endpoint: <code>https://amane3.tanacom.io/api/get/whatsapp/{{uid}}</code></p>\n</li>\n</ul>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not contain a request body.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response returned is a JSON object with the following properties:</p>\n<ul>\n<li><p><code>status</code> (string): Indicates the status of the request.</p>\n</li>\n<li><p><code>whats_log</code> (object): Contains the WhatsApp log details with the following properties:</p>\n<ul>\n<li><p><code>uid</code> (string): Unique identifier for the WhatsApp log.</p>\n</li>\n<li><p><code>number</code> (string): Phone number associated with the log.</p>\n</li>\n<li><p><code>content</code> (string): Content of the WhatsApp message.</p>\n</li>\n<li><p><code>status</code> (string): Status of the WhatsApp log.</p>\n</li>\n<li><p><code>updated_at</code> (string): Timestamp indicating when the WhatsApp log was last updated.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>The response can be used as a JSON schema for the structure of the data returned by the API endpoint.</p>\n","urlObject":{"path":["whatsapp","{{uid}}"],"host":["https://amane3.tanacom.io/api/get"],"query":[],"variable":[]}},"response":[],"_postman_id":"df57a244-416b-4389-8c7b-3a99a213cac4"}],"event":[{"listen":"prerequest","script":{"id":"b233a5eb-8e01-4ebb-8546-c021e68adb2b","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"f98b052c-09c2-492a-bcaf-2eac37bde1cd","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"api_endpoint","value":"https://amane3.tanacom.io/api/"},{"key":"api_key","value":"your-api-key"},{"key":"content-type","value":"application/json"},{"key":"uid","value":"{{uid}}"}]}