Samuel Chan

Create Webhooks through the API

Webhooks play a crucial role in automating your development processes. But in Transifex, you had to set them up manually inside your project settings. Today, we’re rolling out new API endpoints for creating, updating, and deleting webhooks. This means you’ll now be able to set up a complete localization workflow through the API, from project creation and adding resources to setting up webhooks and getting translations back.

curl -i --user api:<token> -X POST api.transifex.com/organizations/transifex/projects/website-project/webhooks/ -d '{"url":"https://hooks.zapier.com/hooks/catch/2543117/2prft5/","status":"active","event_type":"translation_completed", "secret_key": "my secret"}' -H "Content-Type: application/json"
HTTP/1.0 200 OK
...
{
"id": 12346
"secret_key":"my secret",
"url":"https://hooks.zapier.com/hooks/catch/2543117/2prft5/",
"event_type":"translation_completed",
"status":"active"
}
view raw webhook-api.txt hosted with ❤ by GitHub

The webhook endpoints are available to all users as part of our Standard API. To learn more about them, check out our documentation here.

API All the Things

Want to learn more about Transifex?

Give Transifex a try with our free 15 day trial, or connect with one of our team members for a personal demo.