Guide

5-Minute Quickstart Guide

Follow these simple steps to start capturing OTP codes in your local or staging environment.

1
Create Account & Sign In

Register for a free account at otp.gas.pm/register and verify your email address.

2
Create a Sandbox Project

In your dashboard, click “New Project” (e.g. “Backend Staging”). Each project maintains an isolated inbox, virtual numbers, and API keys.

3
Generate Virtual Number & API Key

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.

4
Send Your First Captured Message

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"
  }'
5
View in Virtual Inbox

Open your project's Inbox tab. Your captured message will be rendered with the detected OTP code highlighted and ready to copy.

Using an existing provider SDK? (Twilio, Vonage, Bird, Fonnte, etc.)
View Providers Directory →

You don't need to change your message payload format. Simply replace your provider client base URL with our drop-in emulation endpoints (e.g. https://otp.gas.pm/api/provider/twilio) and pass your OTP TRAP API key.