This is a sample project to help you get started with integrating the respond.io platform with any third-party messaging service provider, as a "custom channel" within respond.io.
This example implements an SMS provider called ClickSend.com. The code can be used as a general reference.
Method | Path | Type | Description |
---|---|---|---|
POST | /message | Outbound | Receive messages from respond.io and pass them to ClickSend using API |
POST | /clicksend/push_message | Inbound | Receive messages from ClickSend and pass them to respond.io via the custom channel webhook |
Port: 3030.
Follow the steps here to get the custom channel API token.
Run the following commands:
npm install
npm start
sequenceDiagram
participant respond.io
participant Custom Integration Server
participant ClickSend.com
respond.io ->> Custom Integration Server: Send outbound message. Route: /message
Custom Integration Server->> ClickSend.com: Calls SMS send API with the outbound message
ClickSend.com ->> Custom Integration Server: Send response: 200 OK or 4xx
Custom Integration Server ->> respond.io: Send response: 200 OK or 4xx (with error message)
sequenceDiagram
participant respond.io
participant Custom Integration Server
participant ClickSend.com
ClickSend.com ->> Custom Integration Server: Receive inbound message. Route: /clicksend/push_message
Custom Integration Server ->> respond.io: Calls custom channel webhook with the inbound message
respond.io ->> Custom Integration Server: Send response: 200 OK or 4xx
Custom Integration Server ->> ClickSend.com: Send response: 200 OK or 4xx