Developer API Reference

Seamless Integration

Complete reference for integrating BloomSMS services into your applications. Automate verifications with ease.

Introduction

Welcome to the BloomSMS Developer API. Our high-performance REST API allows you to automate SMS verifications directly within your software. Whether you are building a bulk account creator, a bot, or a custom verification service, our API provides the speed and reliability you need.

Base URL

https://api.bloomsms.com/stubs/handler_api.php

Authentication

All requests require your unique API Key. You can find this key in your dashboard under the "API Settings" tab. Pass this key as the api_key parameter in every GET or POST request.

Example Request
https://api.bloomsms.com/stubs/handler_api.php?api_key=YOUR_API_KEY&action=getBalance

Get Balance

Retrieve your current account balance in USD. Use this to ensure you have sufficient funds before requesting a number.

Request
GET
action=getBalance&api_key=YOUR_API_KEY
Response (Success)
ACCESS_BALANCE:14.50
Response (Error)
BAD_KEY

Order Number

Request a temporary virtual number for a specific service. You must specify the service code and country.

ParameterTypeRequiredDescription
servicestringYesService code (e.g., wa for WhatsApp, tg for Telegram)
countryintegerOptionalCountry ID (Default: 0 for USA). See Country List.
Request
GET
action=getNumber&api_key=YOUR_KEY&service=wa&country=0
Response (Success)
ACCESS_NUMBER:12345678:12025550192
Format: ACCESS_NUMBER:ORDER_ID:PHONE_NUMBER
Response (Error)
NO_NUMBERS

Get SMS Code

Poll this endpoint to check the status of an active order. Once the SMS is received, it will be returned here.

Request
GET
action=getStatus&api_key=YOUR_KEY&id=12345678
Response (Waiting)
STATUS_WAIT_CODE
Response (Success)
STATUS_OK:492105
The number after the colon is your SMS verification code.

Set Status / Cancel

Update the status of an active activation. Use this to cancel a number if no code arrived (refund) or to mark it as finished.

Important: You must cancel orders (8) within 2 minutes if the code is not received to avoid being charged.
Status ValueAction
1SMS Received & Verified (Finish Order)
8Cancel Order (Refund)
Request (Cancel)
GET
action=setStatus&api_key=YOUR_KEY&id=12345678&status=8
Response
ACCESS_CANCEL