# Creating a user consent application using the Python SDK ## Testing your application When you send an SMS to your Sinch number, the Sinch server sends a request to a callback event URL you need to configure on your SMS service. We'll walk through the processes below: - Starting your web server and setting up a tunnel - Configuring your Callback URL - Testing the application itself ### Start your web server and set up a tunnel 1. Open a terminal or command prompt and navigate to your project folder. 2. Start the server by executing the following command: ```shell flask run -p ``` This starts a flask server running on your chosen port number. 3. Now you need to open a tunnel to the server you just set up. In the terminal or command prompt, enter: ```shell ngrok http ``` Remember that ngrok must be running on the same port number as your Flask application. When ngrok is running, you will see a screen like the following. ![ngrok screenshot](/assets/ngrok.135751fc8aa7c936230a2a88bff2263644a1d1737263acc00294006a34b0f60b.c6cba068.png) 4. On the **https** "Forwarding" line (outlined in the above image), copy the address ending in `.ngrok.io`. ### Configure your Callback URL Next, configure a [Callback URL](https://community.sinch.com/t5/SMS/How-do-I-assign-a-callback-URL-to-an-SMS-service-plan/ta-p/8414) for your Sinch account: 1. Navigate to your [Sinch Build Dashboard](https://dashboard.sinch.com/sms/api/rest). 2. Click the Service APIs tab and then click on the service plan ID link. 3. In **Callback URLs**, click **Add Callback URL** (or `Edit`, if you are updating an existing URL) and paste in the HTTPS address referred to in the previous section. ### Test the application Now that your server is running and your webhook is configured, you can test the application. Remember you'll need your phone ready for this! To test your application, perform the following: 1. Try joining the group you created by texting **SUBSCRIBE** to your Sinch account number. You should get a confirmation reply. 2. Try leaving the group by texting **STOP**. This should also generate a reply. 3. Now that you've left the group, text a random phrase such as "Hello world". This should generate the reply thanking you for your interest and telling you to join by texting **SUBSCRIBE**. br