For developers
Creating an application
Keruj has its own integration catalog for popular Ukrainian and international services. Adding your own application to the catalog helps to integrate Keruj with third-party services and automate your workflow.
You can find the application catalog in the Settings - Automation - Integrations menu

In the Integrations section, clicking "Add" opens the catalog of available applications

The catalog is constantly being improved and updated
What is an integration application?
It is any external backend service capable of receiving and executing HTTP requests. To submit your application to the catalog, please contact us at volo@keruj.com.
What is required from you
The address of the access point where Keruj will send all requests (endpoint)
The address of the access point to check the "live status" of your application (healthcheck)
Logo for the catalog
A brief description of the integration and what the user receives
What you receive from us
A special
secret tokenfor your application to ensure that it is indeed Keruj sending you the dataEndless gratitude for helping in the development of the Ukrainian product 🇺🇦 ❤️
Integration lifecycle
Integration of Keruj with an external service is carried out by exchanging messages in application/json format. There are two types of messages
System - sent at the moment of installation/update/uninstallation of the integration
User - you can specify what and how you want to receive from Keruj yourself
All interaction happens block by block, following the event + response principle

Installation
A third-party service that provides its API key, and the user must provide it by installing the application.

At the moment of installing the application in the catalog, you receive a POST request
event- the name of the eventcompany_id- the unique identifier of the company in Kerujaccount_id- the unique identifier of the integration in Kerujaccount_api_key- the access key to API on behalf of the integration application
We strongly recommend saving this information in your secure database and storing the account_api_key value only in encoded form
After a successful response 2xx, the user will be redirected to the configuration page
Configuration
At the moment the user is redirected to the configuration page, you will receive a POST request
Depending on your response, 2 actions are possible
status
2xxand an empty body - successful completion of installationstatus
2xxfollowing JSON schema - ask Keruj to perform some action
For example, you want to suggest that the user fills out a form with an API key and other fields from your service.
In this case, you should respond with a 2xx status and the JSON schema
The user will see the configuration form with the corresponding elements

When the user fills out the data and clicks "Submit", you will receive a POST request message
event- the name of the event you specified inreplycompany_id- the unique identifier of the company in Kerujaccount_id- the unique identifier of the integration in Kerujdata- data from user-filled elements
After that, you have 2 response options again:
status
2xxand an emptybody- successful completion of installationstatus
2xxfollowing JSON schema - ask Keruj to perform another action, and this way you can build a step-by-step dialogue with the user until you have all the necessary data and are ready to finish the installation by responding with2xxand an emptybody
A successful completion will notify the user that the integration is complete and the magic will begin soon

Uninstallation
When a user wishes to delete the integration, you will be notified of this by a POST request
A response with status 2xx is expected, and that you will delete all information regarding this company.
Authorization
All requests from Keruj contain the HTTP header x-keruj-app-token. It is mandatory to check whether it matches your secret token
Healthcheck
Your application will be added to our status page https://status.keruj.app/
In case of prolonged unavailability of your access points, the application will be disabled.
Related articles