Creating webhooks
Learn to build a webhook, choosing the events your webhook will listen for on TextMaster and how to set up a server to receive and manage the webhook payload.
Exposing localhost to the internet
$ Forwarding http://7e9ea9dc.ngrok.io -> 127.0.0.1:4567Setting up a webhook
curl "https://api.textmaster.com/v1/clients/users/USER_ID" \
-X PUT \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '
{
"user": {
"callback": {
"word_count_finished": {
"url": "http://7e9ea9dc.ngrok.io/payload"
}
}
}
}
'Last updated
Was this helpful?