You can integrate Toky with your applications in real time using webhooks. To register a webhook you must follow these steps:
Go to the Toky Developer's page and to the section webhooks
Click on Post/Webhooks
Enter the parameters required:
Enter the hook_url where Toky will post data in json format after finishing every event.
Enter the event you want to get its data; it could be: new_call, new_voicemail, or new_sms
Enter your Toky's API Key
Enter application/json as Content-Type
Click on Try it!
Check the results of the operation on the side panel:
You must write down the generated id which you will need in case you want to delete the webhook.
Now, Toky will send data to the registered URL every time the even finishes. You can check the values sent by Toky for each event on the webhook's developers reference