Follow these simple steps to start capturing OTP codes in your local or staging environment.
Register for a free account at otp.gas.pm/register and verify your email address.
In your dashboard, click “New Project” (e.g. “Backend Staging”). Each project maintains an isolated inbox, virtual numbers, and API keys.
Go to the Virtual Numbers tab and generate a number for Indonesia (+62), United States (+1), UK (+44), or Singapore (+65).
Then navigate to the API Keys tab, create a new key, and copy the plaintext key secret immediately.
Run the following cURL command in your terminal, replacing the API key and virtual number with your generated values:
curl -X POST https://otp.gas.pm/api/v1/messages \
-H "Authorization: Bearer otptrap_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "+6281234567890",
"channel": "sms",
"message": "Your verification code is 482193",
"sender": "MyApp"
}'Open your project's Inbox tab. Your captured message will be rendered with the detected OTP code highlighted and ready to copy.