Antbuddy.us
  • AntBuddy Inc Documents
    • Guide to Register and Payment
      • Register and Login
        • 1. Register
        • 2. Log in
      • Payment
    • AntCrm Customer Management
      • Settings
        • Create users
        • Create group
        • Invite users to the company
        • View permissions
        • Activity permissions
        • What is Ticket? How to create Ticket?
      • Conversation
        • Omni Facebook user guide
          • 1. Facebook integration
          • 2. Setting Up Facebook Fan page
          • 3. Message Management
            • 3.1. Sending Message
            • 3.2. Viewing Conversation History
          • 4. Comment Management
            • 4.1. Customer Support Commenting
            • 4.2. Hiding comments
            • 4.3. Editing comments
            • 4.4. Delete Comments
            • 4.5. Liking/Unliking Comments
          • 5. Post Management
          • 6. Changing the Session Owner
          • 7. Adding support user
          • 8. Tagging session
          • 9. Sending images
          • 10. Marking done
          • 11. Adding message template
            • 11.1. Add/Edit/Delete templates
            • 11.2. Using message template
          • 12. Setting Up Session Timeout
          • 13. Configuring the Timeout
          • 14. Setting Up Auto-Reply and Sending Messages
          • 15. Setting Up Response Time and Pre-Expiration Warnings
          • 16. Customer operations
          • 17. Marking unread
          • 18. Setting up Omnichannel chat Categories
          • 19. Configuring layout
        • Instagram use guide
          • 1. Instagram integration
          • 2. Using Instagram Omni conversations
            • 2.1 Guide to setting up Instagram on AntCRM
              • 2.1.1 Adding support
              • 2.1.2 Assignment configuration
              • 2.1.3 Interactive Configuration
          • 3. Manage chat with customers
            • 3.1 Send message to customer
            • 3.2 View session history
          • 4. Comment Manager
            • 4.1 Hide comment
            • 4.2 Delete comment
          • 5. Change the person assign to session
          • 6. Adding user support
          • 7. Tags for session
          • 8. Send image
          • 9. Mark as done
          • 10. Adding message template
            • 10.1 Add/Edit/Delete template
            • 10.2 Using messenger template
          • 11. Setting up session timeout)
          • 12. Setting Up Response Time and Pre-Expiration Warnings
        • Whatsapp use guide
          • 1. Integrate whatsapp on CRM
          • 2. Setting whatsapp on CRM
            • 2.1 Adding user support
            • 2.2 Setting close session
            • 2.3 ssignment Configuration
            • 2.4 Interaction Configuration
          • 3. Managing Chats with Whatsapp Customers
            • 3.1 Send message
            • 3.2 Viewing Conversation History
            • 3.3 Changing the Session's Assigned Agent
          • 4. Adding a Support User
          • 5. Tagging a Session
          • 6. Sending image
          • 7. Marking a Session as Completed
          • 8. Adding, Edit and Delete omni message template
          • 9. Session Closure Time
          • 10. Configuring the wait time
          • 11. Setting response Time and Pre-expiration Alerts
          • 12. Creating Whatsapp SMS campaign
          • 13. Sending Whatsapp SMS Campaign
          • 14. Sending the Product Carousel
          • 15. Cross-Channel Campaign Guide
          • 16. Create WhatsApp Template via Meta Business Suite
          • 17. Run Template in AntCRM platform
        • Shopee use guide
        • Live chat use guide
        • Lazada use guide
      • Report
        • View Omnichannel conversation report
      • Customer Experience Management
        • 1. Customer survey setting
          • 1.1 Conversations
          • 1.2 Call Center
          • 1.3 Rating criteria setting
          • 1.4 Setting landing page
        • 2. How to use the Agent interface
        • 3. Satisfaction Report
    • WhatsApp User Guide
      • Guide to Setting Up WhatsApp on AntCRM
      • Guide to Managing Chats with Whatsapp Customers
      • How to Add and Use Omni Message Templates?
      • Guide to Setting Session
      • Guide to Creating and sending Whatsapp SMS campaign
      • Guide to Sending the Product Carousel
      • Cross-Channel Campaign Guide
      • Guide to sending Product Sample Messages on WhatsApp (Product Catalog)
    • User manual for AntBot ChatBot
      • Integrate Omni-channel messaging with Chatbot AntBot
      • The basic features of AntBot Chatbot
      • Use Cases of AntBot Chatbot
      • Detailed explanation of the Chatbot node
      • How to create a google cloud bot
  • Integration Document Guide
    • AntRing
      • API Registration
      • Use API
      • API List
      • Error Code
    • AntBot
      • AntBot API
      • Voice OTP
      • HTTP Response
    • AntCrm
      • ApiRing AntCrm apis description
Powered by GitBook
On this page
  1. Integration Document Guide
  2. AntRing

Use API

PreviousAPI RegistrationNextAPI List

Last updated 3 months ago

Using the API After registering and receiving an API account, the customer will be given an appId and appSecret. When calling the API, this appSecret must be used to generate a hash parameter. Details on how to create the hash parameter can be found in the "Create Hash" section and in the documentation for each API.

Requests to the API should be made to the following domain:

Depending on the API, the method and path will differ.

Create Hash

All requests to AntBuddy, in addition to the data, must include a hash value. The hash is calculated as the sha256 of all parameters (excluding the hash).

Example:

appId = 65446465436742018 appSecret = 123456

API for retrieving call history:

GET /oapi/v1/call/histories?appId=6544646543674&created_from=2018-02-07T02:19:33.000Z&created_to=2018-02-07T07:04:22.000Z

The hash is calculated as follows:

iniCopyEdithash = sha256("65446465436742018-02-07T02:19:33.000Z2018-02-07T07:04:22.000Z123456")

= 9b11b9ff77dbba70fe059acf84c02cfe6af90de9122e4d3bd6ec69c9d637f9ed

Note the order of the parameters for each API.

javascriptCopyEditvar crypto = require('crypto');

function checksum(str) {
    return crypto
        .createHash('sha256')
        .update(str, 'utf8')
        .digest('hex');
}

var text = '65446465436742018-02-07T02:19:33.000Z2018-02-07T07:04:22.000Z123456';
var hash = checksum(text);
// 9b11b9ff77dbba70fe059acf84c02cfe6af90de9122e4d3bd6ec69c9d637f9ed

Data Format

Data sent and received will be in JSON format:

"Content-Type": "application/json"

HTTP Response

HTTP Code
Description

200

Success

400

Error due to incorrect or invalid input data

500

Error due to API server issues

503

Error due to exceeding the request limit

https://openapi.antbuddy.com