Power your SMS verification workflows with the TemporaSMS API. Request numbers, poll for OTP codes, and manage balances programmatically. Pay per use.
TemporaSMS provides SMS verification tools for teams and products. The API lets you request virtual numbers, poll for incoming OTP codes, and manage wallet balances programmatically.
Compatibility Note
Usage is subject to platform rules, rate limits, our Terms, and the Acceptable Use Policy.
All API requests should be sent to https://api.temporasms.com/stubs/handler_api.php via POST or GET methods.
All requests to the API must include your API key as the api_key parameter.
You can find or generate your API key by logging in to your account.
Login to get API keySecurity Notice
Keep your API key secure. Do not share it in client-side code or public repositories.
Retrieve your current account balance
| Field | Type | Required | Description |
|---|---|---|---|
| action | String | Yes | API action to perform. |
| api_key | String | Yes | Your API key. |
| Code / Key | Value / Description |
|---|---|
| ACCESS_BALANCE:100.1234 | Your account balance (in your currency). |
| Code | Description |
|---|---|
| BAD_ACTION | Invalid action requested. |
| BAD_KEY | Invalid or missing API key. |
| USER_BANNED | Your account has been banned. |
| ERROR | A generic server error occurred. |
| TOO_MANY_REQUESTS | Rate limit exceeded. Please slow down your requests. |
| UNDER_DEVELOPMENT | This feature is under development. Please try later. |
// Node.js example
const axios = require('axios');
async function getBalance() {
try {
const response = await axios.get('https://api.temporasms.com/stubs/handler_api.php', {
params: {
api_key: 'YOUR_API_KEY',
action: 'getBalance'
}
});
console.log(response.data);
} catch (error) {
console.error(error);
}
}
getBalance();Retrieve the available operators
Get a temporary SMS number for verification. operator accepts only a numeric operator ID for a direct route. Use type=smart, type=auto, type=cheap, or type=best for cross-operator selection.
Get a temporary SMS number and return activation metadata as JSON. operator accepts only a numeric ID; use type=smart, type=auto, type=cheap, or type=best for the selection strategy.
Retrieve SMS code from the temporary SMS number
Fetch SMS status for multiple activations in a single request
Update the status of a phone number request
Check current pricing for all or specific countries
Return stock counts grouped by country, service, and price using the live pricing response shape.
Return live price options and stock grouped by country and service. The provider keys and providerIds values are public provider option IDs accepted by getNumber and getNumberV2; supplier provider pools remain private.
Retrieve all available countries
Retrieve all available services
Create an account today to get your API key and start integrating with TemporaSMS.