How to create a TaskRouter Worker capability token in apex class.
I have created a taskrouter on twilio and need to update my worker activity from break to wait for that I need a taskRouter compatibility token through which I can proceed further. In my Apex class page I am unable to get taskRouter compatibility token.
Attaching snapshots for my apex class page and my visualforce page.
You are creating a Twilio Capability Token which is used to sign communications from devices to Twilio. What you need is Task Router Capability Token to use the TaskRouter's JavaScript SDK: