How to configure pulseway api notification script

Hello, I am new in the pulseway api field, its the first time I use it and wanted to know how it works.

I see that the default pulseway script lets you input username and password, but where should I put the API token?

Also is there a way to know if the script works and have a test notification?

Thanks in advance