Skip to main content

SMSPool Python SDK

Official Python client for the SMSPool API: one-time SMS verification numbers, rentals, pre-orders, eSIMs and more.

Package: smspool-sdk on PyPI.

Install

pip install smspool-sdk

Quick start

Get your API key from your settings page.

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())
    countries = smspool_sdk.InformationApi(client).country_retrieve_all()
    order = smspool_sdk.SMSApi(client).purchase_sms(country="US", service="1")

Errors (HTTP 4xx/5xx) raise smspool_sdk.rest.ApiException, with .status and .body.

Calling endpoints

Every endpoint in the API reference is a method named after its path, on the class for its section: /sms/check is sms_check() on SMSApi. Endpoints that need your API key send it as a bearer token.

Responses are returned as decoded JSON exactly as the API sends them: many endpoints answer 200 with "success": 0 and a message when a request is refused, so check success.

How this SDK is made

The code is generated from the API's OpenAPI spec (openapi.json) with OpenAPI Generator. Do not edit generated files by hand: a workflow regenerates them every week and opens a pull request when the API changed. Hand-written files are listed in .openapi-generator-ignore.

Releasing (maintainers)

  1. Set the new version in openapi-generator.yaml (packageVersion).
  2. Run scripts/generate.sh (needs Docker) and scripts/smoke.sh, then commit.
  3. Tag and push: git tag vX.Y.Z && git push origin vX.Y.Z.

The Release workflow checks the tag against the version, runs the smoke test and publishes. PyPI uses trusted publishing (no token): the project's publisher is this repo's release.yml workflow in the release environment.

License

MIT

Metadata

Release files for smspool-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smspool-sdk 0.1.0
File Size Uploaded Provenance Actions
smspool_sdk-0.1.0.tar.gz 47.7 kB With provenance Details for smspool_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smspool-sdk 0.1.0
File Interpreter ABI Platform Actions
smspool_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for smspool_sdk-0.1.0-py3-none-any.whl

Total release size: 109.6 kB

Release files / smspool_sdk-0.1.0.tar.gz

Download URL smspool_sdk-0.1.0.tar.gz
Size 47.7 kB
Tags Source
SHA-256 checksum
How to use checksums
26c6427c96a674a4dda3951a271dffce2c2d877969983a094df4edf0e8f32d6c
BLAKE2b-256 checksum
How to use checksums
03bf17ad0b0bbac782adc0a1bc1a8b4662095cc0346dfeeeda41dac75d436481
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / smspool_sdk-0.1.0-py3-none-any.whl

Download URL smspool_sdk-0.1.0-py3-none-any.whl
Size 61.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0dcbee3fb41ae262e9310714bbac35a0dcf0b76c5dd3c2543cef81403d8f749
BLAKE2b-256 checksum
How to use checksums
dd41491fbc6fe02dd8f6808e65622cba8b927077625b182cc06cb65f731ac177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for smspool-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for smspool_sdk-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page