Securing webhooks
Ensure your server is only receiving the expected TextMaster requests for security reasons.
Setting your secret token
ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'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": "https://example.com/payload?token=6f90f415ca54b100c3e9d24fdf2988cbb0815f5d"
}
}
}
}
'Last updated
Was this helpful?