What does an SMS receiving API do?
An SMS receiving API lets software list projects, allocate numbers and query verification codes. It connects a manual workflow to your own business system or authorized QA process. Both AutoSMS channels use the same site API base path. Select the returned project_id rather than inventing a channel parameter.
Credentials, countries and routes
Sign in, open Account, copy your username and API key, and read the full API reference. Start with getUserInfo, then getProjectList. Parameters are case-sensitive. Preserve project IDs as strings, including leading zeros. For Channel 2, getCountries lists countries, while getRoutes accepts pid and cuy to return routes and actual site points. Use operator to select a route.
Allocate first, then query the code
After getMobile, inspect the JSON code and confirm that data contains a complete international number. Pass it to getMsg, encoding + as %2B in URLs. Keep numbers and OTPs as strings to preserve international prefixes and leading zeros. Single- and multiple-code modes depend on the project. Channel 2 supports a single code.
Handle pending requests without duplicate purchases
Generate and retain a 32-character lowercase hexadecimal X-Request-ID for one allocation attempt. A 202 allocation result is pending: retry the same ID and all the same parameters. Do not buy again with a new ID. A network timeout does not prove that no supplier order exists. Follow Retry-After or back off when rate-limited. Unknown stock is null, not zero and not a guarantee of availability.
Receiving deadlines and reconciliation
New receiving tasks use the saved site duration. Existing tasks keep their original deadline, with an earlier supplier expiry taking precedence. Client queries are recommended approximately every 15 seconds. Stop single-code polling after a code arrives. Reconcile results using SMS history, points records and bound Telegram notifications. The authenticated API page contains the complete parameter and response-code reference.
Ready to check the catalog?
Review current projects, countries, route prices and stock in the workspace.
Log in to workspace