Skip to main content
When building and testing your integration with OTPIQ, you want to ensure that OTP messages and notifications are not accidentally sent to real users’ phone numbers. To solve this, OTPIQ provides Development Keys (Dev Keys). A Dev Key acts as a safe alternative to your production API key during the development phase.

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.
1

Navigate to Project Settings

Log in to the OTPIQ Dashboard and go to your Project Settings.
2

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.
3

Replace your API Key

In your development environment or local codebase, replace your production API key with the newly generated Dev Key.
4

Send test requests

Send API requests exactly as you would in production.No matter what phone_number you pass in the API request body, the message will always be delivered to the development phone number you defined in Step 2.
Remember to swap your Dev Key back to your production API key when deploying your application to your live environment!