Webio Webhook - What it does

Webio Webhook - What it does

Using Webio's webhook you can configure your endpoints within your Webio organisation to post or retrieve data.

Identifying the request is from us

To identify the request as originating from Webio, first use the API to generate a JWT token. 

Haven't connected to Webio via API yet?  Generate API Key

To generate the JWT header you need the api key from your Webio organisation, your secret key (this must be a minimum of 32 bytes) and your organisation ID.  Once created this will then be included with every event until the a new JWT token is generated.  

Once generated all requests from Webio will then contain this token within the header x-webio-token.  This enables you to verify that the request is originating from Webio. 

The Webio token can be regenerated as often as you wish and the latest token will be provided within a request. 

Subscribing to events

Webio has 5 standard webhooks available for you to subscribe to, 4 post requests and 1 get request.

Post requests

      Inbound messages - Message details and content of an inbound message received to a channel id assigned to your organisation. 

      Message Send - A message status update to confirm a message state has moved from pending to sent.

      Delivery Report - A message status update to confirm a message state has moved from a sent status to an outcome status.

      Payment - Confirmation details of any successful payment made via WebioPay will be returned to your endpoint. 

Get request -  this requests information from your system to update values used within the bot webhook fields <<>>

      Custom Value Request - Webio will send a request to the endpoint configured within your organisation.  The request will contain the Customer ID (this is a null value for inbound initiated conversations), the channel id (e.g. phone number) and the field names of the parameters requested.  

This can be used to update message content with real time information such as current balance requests, or provide data that the bot can use for identification and verification.


This is made up of: 

https://sampleendpoint - the webhook endpoint configured in your Webio Organisation

?customerUID=123456&outboundChannelAddress=44777777777 - information from the contact

&param1=balance&param2=ID - fields configured as webhook values <<>> within the bot steps

The parameters requested will be dependent on what is configured at that stage within the bot.  This may just be one parameter or multiple parameters.  

Currently for inbound communications only the outboundChannelAddress will be populated.  The customerUID field will be null.

The field names are configured within the bot and identified with <<fieldname>>, these can be set by Webio users in the bot steps.  They can be set either as the value to gather in a listening step or as a comparison condition within a logical branch step. 

Getting started

To see how to add your webhooks into your Webio organisation check out the article Adding Webhooks

    • Related Articles

    • Webio Webhooks

      Quick trick: click into organisations, scroll down to Webhooks, click create Webhook, enter the callback URL, select the events you want to subscribe to and click create.   Some bots require data from your system in real-time.  This can be used to ...
    • Change Update - Webhooks

      Following feedback we are updating our webhooks for the events messageStatusUpdate, inboundMessage and messageSend.  The messageStatusUpdate and inboundMessage will include additional fields and the messageSend will now be sent on a new type =  ...
    • API and Webhooks

      Webio blended conversations allow you to seamlessly communicate between your clients with human or automated agents. Connecting these conversations with your internal systems provides richer conversations and slicker processes. API Requests Using ...
    • SFTP Hooks

      You can now use Webio SFTP hooks to combine the power of webhook realtime posts and SFTP file transfers to deliver webhook calls as JSON files to your organisation's Webio SFTP folder for retrieval.   You will need to configure your Webio SFTP and ...
    • Using webhooks within your bots

      Webhooks allow you to use real time information within your Webio bots.  This can be used to provide up to date information within the conversation or to configure logic decisions within your bot based on information provided from your internal ...