Easily Integrate
BulkSMS.com's API using Konfig's TypeScript SDK
Growing API Companies trust Konfig's SDKs to onboard developers to their API.





First, instantiate the SDK
It only takes a few lines of code.
Then, send your first request
We made it really easy.
Enjoy a buttery smooth developer experience with 15 SDK methods
Parameter
Records with an id
that is greater or equal to min-id will be returned. The default value is 0
. You can add 1 to an id that you previously retrieved, to return subsequent records.
The maximum number of records to return. The default value is 10000
. The value cannot be greater than 10000.
Response
Endpoint
No Parameters
Response
Empty body upon success
Endpoint
Parameter
Response
An empty body when the credits were transferred OK.
When the request fails validation checks.
When there are not enough credits in your account or the credit transfer facility is not activated.
Endpoint
Parameter
The maximum number of messages that are returned. The default is 1000.
The value of limit
is not a guarantee that a specific number of messages will be in the response, even if there are more messages available. Consider the case where you have 150 messages and you specify limit=50
. It is possible that only 49 messages will be returned. The way to make sure that there are no more messages is to submit a new call using the id
filter field with the <
operator (described below).
See the message filtering for more information.
The default value is DESCENDING
If the sortOrder
is DESCENDING, the newest messages be first in the result. ASCENDING places the oldest messages on top of the response.
Response
See the [errors page](https://www.bulksms.com/developer/json/v1/# for more detail on what kind of errors you can get.
Endpoint
Parameter
Safeguards against the possibility of sending the same messages more than once.
If a communication failure occurs during a submission, you cannot be sure that the submission was processed; therefore you would have to submit it again. When you post the retry, you must use the deduplication-id
of the original post. The BulkSMS system uses this ID to check that the request was not previously processed. (If it was previously processed, the submission will succeed, and the behaviour will be indistinguishable to you from a non-duplicated submission). The ID expires after about 12 hours.
Specifies how to deal with message text that contains characters not present in the GSM 03.38 character set.
Messages that contain only GSM 03.38 characters are not affected by this setting.
If the value is true
then a message containing non-GSM 03.38 characters will be transmitted as a Unicode SMS (which is most likely more costly).
Please note: when auto-unicode
is true
and the value of the encoding
property is specified as UNICODE
, the message will always be sent as UNICODE
.
If the value is false
and the encoding
property is TEXT
then non-GSM 03.38 characters will be replaced by the ?
character.
When using this setting on the API, you should take case to ensure that your message is clean.
Invisible unicode and unexpected characters could unintentionally convert an message to UNICODE
. A common mistake is to use the backtick character (`) which is unicode and will turn your TEXT
message into a UNICODE
message.
Allows you to send a message in the future.
An example value is 2019-02-18T13:00:00+02:00
. It encodes to 2019-02-18T13%3A00%3A00%2B02%3A00
.
Credits are deducted from your account immediately. Once submitted, scheduled messages cannot be changed or cancelled.
The date can be a maximum of two years in the future. If the value is in the past, the message will be sent immediately.
The date format requires you to supply an offset from UTC. You can decide to use the offset of your timezone, or maybe the zone of the recipient's location is more appropriate.
If the destination is a group, the group members are determined at the time that you submit the message; not the time the message is scheduled to be sent.
A note that is stored together with a scheduled submission, which could be used to more easily identify the scheduled submission at a later date.
The value of this field is ignored if the schedule-date
is not provided.
A value that is longer than 256 characters is truncated.
Response
See the [errors page](https://www.bulksms.com/developer/json/v1/# for more detail on what kind of errors you can get.
See the [errors page](https://www.bulksms.com/developer/json/v1/# for more detail on what kind of errors you can get.
Endpoint
Parameter
The phone number of the recipient.
The text you want to send.
Refer to the deduplication-id
parameter.
Response
See the [errors page](https://www.bulksms.com/developer/json/v1/# for more detail on what kind of errors you can get.
See the [errors page](https://www.bulksms.com/developer/json/v1/# for more detail on what kind of errors you can get.
Endpoint
How Konfig Works
Konfig collects APIs and automatically generates SDKs so you can focus on building your application.
Konfig maintains the highest quality collection of OpenAPI Specifications on the internet in a GitHub repository
We pull OpenAPI Specifications from public sources, fix any errors, and make sure they pass our lint rules. We continually make sure the repository is up-to-date and collect up-time and response time metrics for every API.

Generates AI-Augmented SDKs from openapi-examples
Our SDK generator is trusted by growing API companies and goes through a rigorous testing process to ensure the generated SDKs are high-quality and easy to use.

Publishes to standard package managers
We publish to standard package managers like npm, PyPI, and Maven so you can easily integrate the SDK into your application.

About BulkSMS.com
BulkSMS.com is a leading SMS messaging service provider offering two-way SMS communications. The BulkSMS gateway reaches across borders and connects to over 800 mobile network operators worldwide.