Webhooks

This feature enables notifications when a translation changes.

Applanga uses webhooks to notify an application when there is a translation change to a connected project. Each project on applanga can configure up to 3 webhook endpoints. These endpoints will receive inbound HTTP(S) requests (also known as webhooks) from Applanga's servers when there's a translation change as a result of any of the following actions

  • Translation text is modified directly in a project's editor view
  • Translations are added via a file import (e.g. a translation order delivery)
  • A draft translation is published

The webhook is sent 15 minutes after the latest translation change. This means whenever a translation is edited, a webhook request is scheduled to send to all configured endpoints of a given project 15 minutes later. The request will be sent as scheduled unless a new change to translations occurs before the scheduled time, in which case it is rescheduled to be sent 15 minutes later.

Endpoint failures and retries

Each configured endpoint for a project is sent a request. Applanga expects the endpoints to respond with a 2xx HTTP status code for the request to be considered successful. If any endpoint does not respond with a 2xx HTTP status code, Applanga considers it a failed request and will retry sending the webhook after 15 minutes. If the retry fails, an email notification is sent to the project owner.

Configuring a webhook endpoint for a project
  1. Login to Applanga dashboard and navigate to the project. Then click on Project Settings

  2. On the settings page, scroll down to the Webhooks section and click the Add endpoint button, this will show a modal where the endpoint values can be entered

  3. Set the preferred HTTP method and headers as needed. The only required field is the url - an HTTPS url is required. See the following image as a reference

  4. If POST is the selected HTTP method, a raw text body can be added for the preferred content type. Options include JSON, TEXT, XML or HTML.

  5. The configured endpoint can be tested to make sure everything works as expected by clicking the Test endpoint button in the top right. If the configuration is correct, the test result should look like the screenshot below

  6. Click Save endpoint