Overview
YakChat can connect with your Infobip (Peerless) telephony service in 4 easy steps: These are:
- Create an API Key
- Add the API Scopes to the API Key
- Copy API Key information
- Configure your numbers
- Send API information to YakChat
After these steps, we’ll then test the connection for you and confirm when everything is set up.
Step 1: Create and API Key
Create an API Key by going to the
Infobip portal and selecting API Keys menu under the Developer Tools section
- Click the CREATE API KEY button
- Enter the name you wish to call the API key e.g. 'YakChat'
- Enter your preferred expiration date for the API key
- In the Allowed IP Addresses box enter the YakChat public IP address: 13.83.64.20
Step 2: Add API Scopes
While creating or editing the API Key, scroll down to the API Scopes section to define the API permissions. The following scope must be allowed:
General
Click on the General section and select the following scopes:
- inbound-message:read
- message:send
Channels
Click on the Channels section and select the following scopes to enable SMS:
- sms:inbound-message:read
- sms:logs:read
- sms:manage
- sms:message:send
To enable MMS for numbers that support MMS, select the following scopes:
- mms:inbound-message:read
- mms:logs:read
- mms:manage
- mms:message:send
To enable WhatsApp for numbers that support WhatsApp select the following scopes:
- whatsapp:inbound-message:read
- whatsapp:logs:read
- whatsapp:manage
- whatsapp:message:send
Click on the Platform section and select the following scopes:
- messages-api:manage
- messages-api:message:send
Customer Engagement
Click on the Customer Engagement section and select the following scopes:
- content-messages:manage
- content-messages:read
- conversations:manage
Finally, click on the Save button to save the API Key Scope.
Navigate to the home page by clicking on the Infobip icon to copy the API Base URL and the API key using the following steps:
- Click on the copy icon beside the API Base URL and paste in a document so that it can be used in Step 4
- Click on the Manage API Keys link to navigate to the API Keys page
- Find the key that you wish to use (created in Step 1) and click on the copy button beside the API Key and paste in a document so that it can be used in Step 4
Step 3: Assign Messaging Profile to Number(s)
Navigate to the Numbers page by clicking on the Numbers menu under the Channels and Numbers menu section and select the number that you wish to use for YakChat and edit the configuration using the following steps:
SMS
To add SMS to the number, click on the SMS tab and select the edit icon in the Inbound Configuration tile
- Select 'Forward to HTTP' from the Forwarding action drop down
- Enter https://sp.yakchat.com/infobip/sms/message into the URL box
- Select 'MO_JSON_2' in the Renderer dropdown
- Click on the Configure button to save the configuration
MMS
To add MMS to the number, click on the MMS tab and select the edit icon in the Inbound Configuration tile
- Select 'Forward to HTTP' from the Forwarding action drop down
- Enter https://sp.yakchat.com/infobip/mms/message into the URL box
- Tick the Use custom renderer
- Type 'MMS_JSON' in the Custom renderer
- Click on the Configure button to save the configuration
WhatsApp
To add WhatsApp to the number, click on the WhatsApp tab and select the edit icon in the Inbound Configuration tile
- Select 'Forward to HTTP' from the Forwarding action drop down
- Enter https://sp.yakchat.com/infobip/whatsapp/message into the URL box
- Tick the Use custom renderer
- Select 'MO_OTT_CONTACT' in the Renderer dropdown
- Click on the Configure button to save the configuration
Step 4: Submit your connection details
Enter the following Infobip connection details in the the form below:
- Select "Infobip" as the SMS service provider
- Enter your Infobip API Base URL into Integration Data 1 (from step 2)
- Enter your Infobip API Key into Integration Data 2 (from step 2)
- The phone number we can use to test the service is working correctly (step 3)