# Report a Phone Call verification code with PHP Now that you've [initiated a verification request](/docs/verification/getting-started/php/phone-call-verify/initiate-verification) and received a code, it's time to report that code in order to verify the identity of the user. In this guide you will learn: 1. How to [create your your PHP file](#create-your-php-file) 2. How to [report a Phone Call verification code](#report-your-verification-request) ## What you need to know before you start Before you can get started, you need the following already set up: * Set all Verification API [configuration settings](/docs/verification/getting-started). * [PHP 8.1](https://www.php.net/manual/en/install.php) or later. Additionally, ensure the `fileinfo` extension is enabled in the `php.ini` file. ## Create your PHP file Create a new file named **report-verification.php** and paste the provided "report-verification.php" code into the file. Note: This tutorial uses basic authentication for testing purposes. We recommend using a signed request for authentication in a production environment. You can follow the steps in this guide, but use the code samples from [here](/docs/verification/api-reference/authentication/callback-signed-request#example-implementations-of-application-signing) to use request signing authentication instead. This code makes a PUT request to the Verification API **/verifications/number** endpoint which uses the `toNumber` parameter to verify that a code sent to that number is valid. ### Fill in your parameters Before you can run the code, you need to update some values so you can connect to your Sinch account. Update the following parameters with your own values: | Parameter | Your value | | --- | --- | | `applicationKey` | The application key found on your Sinch [dashboard](https://dashboard.sinch.com/verification/apps). | | `applicationSecret` | The application secret found on your Sinch [dashboard](https://dashboard.sinch.com/verification/apps). | | `toNumber` | This should be the number of the mobile handset you are using for this guide. | | `code` | This is the code which was received by the mobile handset in the [initiate verification](/docs/verification/getting-started/php/phone-call-verify/initiate-verification) guide. These codes are only valid for 10 minutes, so ensure you have initiated a verification within the last ten minutes so you can successfully match the code! | Note: When your account is in trial mode, you can only message your [verified numbers](https://dashboard.sinch.com/numbers/verified-numbers). If you want to send a message to any number, you need to upgrade your account! Save the file. ## Report your verification request Now you can execute the code and report your verification request. Run the following command: ```shell php report-verification.php ``` If the code was correct, your console will show a success result in the response from Sinch. You can test this by entering an incorrect code and seeing the failed result response. Troubleshooting tip If after running your app you receive a 5000 error response, you may have forgotten to save your file after adding your authentication values. This is an easy mistake to make! Try saving the file and running the app again. ## Additional resources - [API specification](/docs/verification/api-reference/verification)