Webhook
Get directly notified on a webhook url if something noticeable happens.
To enable this service go to settings, select the services tab and configure your endpoint. Make sure you have a secure https endpoint.
The following messages will be sent as json payload with a POST request.
All messages will have the following structure:
{
"id":"830fbcbb-90b7-4f0f-86bb-c82b55aab385", // the message id
"name":"dummyTestEvent", // the message name
"occurredAt":"2018-01-02T20:05:59.008Z", // the moment when this message occurred in ISO 8601 format
"message":"William Timberland just added a webhook to THIS PROJECT!", // a descriptive text of this message
"payload":{ // a variable payload
"messageTypes":[
"languageAdded",
"languageDeleted",
"versionAdded",
"versionDeleted",
"referenceLanguageChanged",
"orderCreated",
"orderCompleted",
"invitationAccepted",
"versionPublished",
"versionOverwrote",
"languageOverwrote",
"namespaceAdded",
"namespaceDeleted",
"namespaceCompleted",
"namespaceNotCompletedAnymore"
]
},
"meta":{ // a meta object containing...
"project":{
"id":"23dad587-b3bf-4663-b15c-ad8d66213ac6", // the project id
"name":"THIS PROJECT", // the project name
"slug":"albo6dxk" // the project slug
},
"user":{ // if message issued by a user
"id":"ab075147-c7a3-45d2-9b24-739ae2ed948a", // the user id
"firstname":"William", // the user firstname
"lastname":"Timberland" // the user lastname
},
"link":"https://www.locize.app/p/albo6dxk/v/latest" // a link pointing to the locize client
}
}If the request to your endpoint fails several times in a row (status code not equal to 2xx), the webhook service is disabled automatically.
languageAdded
languageDeleted
versionAdded
versionDeleted
referenceLanguageChanged
orderCreated
orderCompleted
invitationAccepted
versionPublished
The versionPublished event will not be triggered when auto publish is enabled. If you need to react on new translations, the events namespaceNotCompletedAnymore and namespaceCompeted might be an option.
versionOverwrote
languageOverwrote
namespaceAdded
namespaceDeleted
namespaceCompleted
namespaceNotCompletedAnymore
Last updated