Quick links

Long-term SMS
Balance
My Account
Important articles

Official SMSPool SDKs

The fastest way to integrate SMSPool's SMS verification API is with one of our official SDKs. They are available for seven languages, cover every endpoint in the API reference, and are generated from the same OpenAPI specification that powers it. The SDKs are checked against the API every week, so new endpoints and parameters reach them quickly.

Official SDKs

All official SDKs are open source under the MIT license and maintained by SMSPool.

LanguageInstallSource
Pythonpip install smspool-sdksmspool-python
JavaScript / TypeScriptnpm install @smspool/sdksmspool-js
PHPcomposer require smspool/smspool-phpsmspool-php
Gogo get github.com/smspool/smspool-gosmspool-go
.NET (C#)dotnet add package SMSPoolsmspool-dotnet
Javaio.github.smspool:smspool-sdk (Maven Central)smspool-java
Rubygem install smspoolsmspool-ruby

For Java, add this to your pom.xml:

<dependency>
  <groupId>io.github.smspool</groupId>
  <artifactId>smspool-sdk</artifactId>
  <version>0.1.3</version>
</dependency>

Quick start

Find your API key on your settings page. This Python example checks your balance and orders a number; each repository's README has the same example for its language.

import smspool_sdk

config = smspool_sdk.Configuration(access_token="YOUR_API_KEY")
with smspool_sdk.ApiClient(config) as client:
    print(smspool_sdk.InformationApi(client).request_balance())
    order = smspool_sdk.SMSApi(client).purchase_sms(country="US", service="1")
    print(order)

Every endpoint is a method named after its path. For example, /sms/check becomes sms_check() in Python and smsCheck() in JavaScript. Responses are returned exactly as the API sends them, so check the success field: a refused request often still returns HTTP 200 with "success": 0 and a message.

Prefer to call the API directly?

The API reference documents every endpoint with parameters and example responses, and lets you send test requests from your browser. The raw OpenAPI specification is at api.smspool.net/openapi.json if you want to generate a client for another language.

Return to knowledgebase

About the author

Other interesting articles

How to create a Battle.net account

This guide shows you how to create a Battle.net account with our Battle.net SMS verification service.

  • By Admin
  • May 16, 2024

How To Get a Philippines Phone Number

Get a Philippines phone number using the SMSPool service.

  • By Admin
  • May 27, 2024

How to Get a Hong Kong Virtual Phone Number

Get a real non-VoIP Hong Kong number for SMS verification in minutes. Works with over 1200 services including Telegram.

  • By Admin
  • June 14, 2026

Countries and services supported by SMSPool

This article provides a list of countries and services that are supported by SMSPool

  • By Admin
  • January 12, 2026

How to log out of your SMSPool Account

Step-by-step guide on how to log out of your SMSPool Account

  • By Admin
  • January 16, 2026

How to add or change an email on SMSPool

Step-by-step guide on how to change your SMSPool email address.

  • By Admin
  • December 18, 2025

How to get a TikTok SMS verification

In this guide, we'll teach you how to get a TikTok SMS verification without even needing a phone number to receive your SMS verification code.

  • By Admin
  • December 6, 2022
Notifications
New notifications - Mark all as read
Preferences
Color mode
Look
Audio mode
Prompts