What is a Dev Key?
A Dev Key is a special type of API key tied to a specific “development phone number” that you define. When you use a Dev Key in your API requests, OTPIQ will intercept the request and send the message exclusively to your defined development phone number, completely ignoring the phone number provided in the API request payload.This means you can safely test your application using real user data or dummy data without the risk of spamming actual users. All test messages will conveniently route to your own device.
How to set up and use a Dev Key
Setting up a Dev Key is quick and can be done directly from your dashboard.Navigate to Project Settings
Log in to the OTPIQ Dashboard and go to your Project Settings.
Create a Dev Key
Locate the Development Keys section and create a new key. During creation, you will be prompted to define a development phone number.
Replace your API Key
In your development environment or local codebase, replace your production API key with the newly generated Dev Key.
Remember to swap your Dev Key back to your production API key when deploying your application to your live environment!