/
Webhooks

Webhooks

 

The Webhooks implementation is currently in BETA mode. Please check this page frequently for more updates. 

 

Overview

Webhooks allows you to subscribe to events that happens within the Arken Application. When an event is triggered, a HTTP POST will be executed using your assigned endpoint URL. 

Webhooks are configured by account basis. Once configured, the webhook will be triggered each time an event occurs. 

 

Set-up

The Webhook functionality can only be configured via Arken Public API.

To enable webhooks, you need to have the following:

  • An active Arken Account, mainly your Arken Account Hash Identifier

  • Your Arken API Access Key and Secret Key 

  • Your API endpoint that will be receiving the callback from Arken

  • Your API endpoint security details - This should be a secret header key or Open ID Connect Access and Secret Keys

To enable the webhook subscription, you need to call the HTTP POST /Event/Subscription endpoint providing the following details:

  • Your Arken Account Hash Identifier

  • The HTTP POST Url where Arken needs to send the events to 

  • The Callback API Version number (if available)

  • The security details needed for Arken to execute a post, i.e. Secret Header  value or Open ID Connect Access and Secret Keys

Events

Event Categories

When configuring a webhook, you will be sent the following events:

Event Category

Event Type

Description

Event Category

Event Type

Description

Account

Update

Updates were conducted on your current account

Client

Create

A new client has been created

 

Update

An existing client has been updated

 

Delete

An existing client has been deleted

DocumentData

Create

A new document data entry has been created

 

Update

An existing document data has been updated

 

Delete

An existing document data has been deleted

User

Create

A new Arken user is added under your current Account

 

Update

An existing Arken user is updated

 

Delete

An existing Arken user is deleted

FileStore

Download

An existing document has been fetched for download

 

Upload

A document has been created and is ready to be downloaded

Delivery attempts and retries

The Arken service will attempt to deliver your webhooks in near-real time. If the webhook sendout encounters an issue, the Arken system will try to attempt sending the event 3 times prior to abandoning the sendout. Arken Webhooks cannot be manually retried after this time, though you can query for the event using the Event endpoints to reconcile your data with any missed events. For more information on accessing the Event endpoints, please see the Arken Events orig page. 

 

Sample Webhook Client Code

Attached below is a sample code on receiving Webhooks on your system.  

The sample attached contains a .NET core application that has one post endpoint that will receive the event. 

 

Pull a document from Arken

There are two ways to achieve that, 1 push and 1 pull

This method is all manual

The client can use the Public API to get the details for the document and then get the S3 location and then they can download it within in their CRM using that link.

They will have to trigger it when they want the document.

 The webhooks way is better and can be automated.

When a document is uploaded to S3 or downloaded in Arken it creates an event that can be sent to their listener.

We send the documenthashid and the api call they need to make back to the system and the same process follows as above.

So they listen and wait for the event when the event is received it makes callbacks to the public api and get the info.

 

 

Related content