In the Notify field you can use either mailto: link or the URL of your script. When your Media is finished, an HTTP POST request with will be sent to the specified location. Please refer to the API docs for details of POST request data format.
Knowledge Base
Find your answers here.