Public SIM endpoints (no auth) and User OTP endpoints (JWT auth) in one place. Choose the section below to avoid mixing flows.
Base URL for all Public SIM API requests
https://www.otpocket.app/api/publicNo API key or authentication is required.
Common tasks using the Public SIM API
How to list available SIMs
Call the SIM listing endpoint and filter by status.
curl "https://www.otpocket.app/api/public/sims?status=active&limit=50"How to read messages for a SIM
Use the SIM number (last 10 digits supported) to fetch messages.
curl "https://www.otpocket.app/api/public/sims/09123456789/messages?page=1&limit=20"Endpoint reference for the Public SIM API
Get a list of all available public SIM cards with their status and carrier information.
https://www.otpocket.app/api/public/simsFilter by status: active, idle, or offline
Filter by carrier name (partial match)
Number of results (default: 100, max: 500)
Pagination offset (default: 0)
curl "https://www.otpocket.app/api/public/sims?status=active&limit=50"{
"success": true,
"data": [
{
"number": "+639123456789",
"carrier": "Smart",
"status": "active",
"device_id": "device-123",
"device_name": "Device 1"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 150,
"has_more": true
}
}Limits may vary by endpoint
Common error response example (some endpoints may vary)
{
"success": false,
"error": "Error type",
"message": "Detailed error message"
}Have questions or need assistance with the API?