WebHooks Documentation for Fonn Construction

Fonn Construction WebHooks mechanism for notifying third-party software about resources updates.

Getting started

WebHooks are based on HTTP Requests, so this mechanism calls a request that should be registered in the Organization Panel.

Notice that the WebHooks under continous development.
Some features may change in the future.

When user makes any change, the Fonn Construction system converts it into a WebHook message and notifies third-party service by calling registered WebHooks over HTTP.


General Communication with Fonn Construction system

While Webhooks notifies about changes by sending mostly basic data, third-party service may decide to query Fonn API for extended details.

General Communication Overview

  1. User makes a change;
  2. Core system processes the change and triggers webhook;
  3. WebHook notifies an third-party about the change;
  4. Third-party service can ask Fonn API Gateway for additional data (like a document URL);
  5. API Gateway verifies the request and calls Core System for data;
  6. Core API returns detailed data;
  7. API Gateway forwards data to the third-party service.

Security

Fonn Construction system sends payloads only over the HTTPS protocol, due to security reasons. Also, there are implemented following mechanisms for verifying incoming requests.

We recommend implementing both mechanisms to pass highest security standards.


Registering a WebHook

To register a WebHook, your service needs to expose an endpoint over HTTPS protocol, which accepts POST request method with application/json Content-Type header.

Notice that the exposed endpoint should be available from a public network.

This endpoint should handle available payloads that you marked to support. If the endpoint received an unknown payload, we recommend returning a 400 Wrong Data error.

You can register a WebHook using two different ways.

Using Graphical User Interface (Fonn Construction Web App)

  1. Contact with Fonn Construction support to enable WebHooks for your Organization
  2. Go to Organization Panel
  3. Expand Integrations tab
  4. Go to WebHooks tab
  5. Click add new WebHook

Using Fonn API

Guidelines available here: Fonn API - Getting Started


Available payloads for specific events

Checklists

Documents

Change Requests

Issues

Issue Entries

Time Cards

Organizations

Organizations


organization_owned_user_assigned

Payload of webhook sent after organization takes ownership of the user account.

Properties

Property Type Format Required Description
type string true Payload type (organization_owned_user_assigned)
organizationId string UUID true Organization identifier
data OrganizationOwnedUser true Created payload data

Example

{
  "type": "organization_owned_user_assigned",
  "organizationId": "729cfcc1-2277-4e05-92c6-76302b32a83e",
  "data": {
    "userId": "12e84caa-fb17-46dd-b8b2-970ee563e606",
    "userExternalId": "adam-ext-123",
    "userName": "adam@fonn.com"
  }
}

results matching ""

    No results matching ""