Python client SDK for The SMS Works API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


The SMS Works provides a low-cost, reliable SMS API for developers. Pay only for delivered texts, all failed messages are refunded.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen


Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+

(you may need to run pip with root permission: sudo pip install git+

Then import the package:

import swagger_client


Install via Setuptools.

python install --user

(or sudo python install to install the package for all users)

Then import the package:

import swagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import swagger_client
from import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AuthApi()
customerid = 'customerid_example' # str | The Customer ID

    api_response = api_instance.key_secret(customerid)
except ApiException as e:
    print("Exception when calling AuthApi->key_secret: %s\n" % e)

Test calls in Postman

Run in Postman

Documentation for API Endpoints

All URIs are relative to

Class Method HTTP request Description
AuthApi key_secret GET /auth/getApiKey
AuthApi login POST /auth/token
BatchMessagesApi cancel_scheduled_batch_job DELETE /batches/schedule/{batchid}
BatchMessagesApi get_batch_by_id GET /batch/{batchid}
BatchMessagesApi schedule_batch POST /batch/schedule
BatchMessagesApi send_batch POST /batch/send
MessagesApi cancel_scheduled_job DELETE /messages/schedule/{messageid}
MessagesApi get_inbox_messages POST /messages/inbox
MessagesApi get_message_by_id GET /messages/{messageid}
MessagesApi get_messages POST /messages
MessagesApi schedule_message POST /message/schedule
MessagesApi send_message POST /message/send
UtilsApi test GET /utils/test

Documentation For Models

Documentation For Authorization


  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header