Sorry, you need to enable JavaScript to visit this website.

You are here

Get Started with the TelstraDev Messaging API

BY Michelle Howie 03 August 2020

Have you ever wondered what an API is and why you should care?

Have you ever had a mid-career crisis and considered going back to uni for a computer science degree because coding is the future?

Have you heard me talk about the Messaging API and want to try it yourself?

Then you've come to the right place!

 

Automation and web integration are absolutely key parts of any cutting-edge technology solution. But you don't need to be a software developer to implement your own API driven outcome! In the below video, we'll hear about some non-techie use cases for Communications as a Service APIs (i.e sending a text with a line of code) that can transform any workplace by reducing manual work. Be you a restaurant shift worker, a senior marketing specialist or a plumber, I want to empower you across every industry and level of software expertise!

 

An API, or an Application Programming Interface, is just that: an interface to an application surprise 

They allow different software services to communicate with each other to; access data, hide complexity, extend functionality and implement security layers of the services and apps we use every day. When you re-share articles to facebook, or get a delivery alert from the post office, you're interacting with APIs!

 

Think of APIs as the 'middle person' that deals with all the many databases and integrated services behind it. Just like how a waiter takes your requests for meals and responds with some yummy food, without YOU as the client having to care about the recipe or stock levels of the fridge. All you need is a menu (we've got API menus, aka API documentation, right here on the TelstraDev portal too). I just LOVE this analogy, read more here

 

The Messaging API in particular, allows scalable automation of services that make workflows faster and more productive. Texts are much more likely to be opened that emails, which is key for critical communications like Alerts, Confirmations, Warnings and One Time Passwords. Think about a medical receptionist having to text all of the patients booked that day to confirm their appointments... no way! They would just run a script which sends automated reminders out and updates the doctor's availability if they reply 'cancel appointment'.  Are you seeing how simple these API things can be?

 

If you're not quite with us yet, don't fear! I've recorded a short video to introduce the benefits of Web APIs in simple, non-technical, no-jargon human speak, and given an easy step by step guided tutorial through the Messaging API for someone who has never written a line of code before! cool

By the end of the 13 minutes, you will be able to send an SMS to yourself using an API call! (did I mention, NO CODING EXPERIENCE necessary!)

[updated 31/8/20] - Please note that the below tutorial was created BEFORE the implementation of the new BNUM endpoint, which you now need to register before sending an SMS. Consider your new virtual mobile number as the A number, the B NUmber (BNUM) = the mobile number who will receive the text.

If you are using the Postman Collection from the Messaging API documentation, you will need to open the NEW collection which includes the BNUM endpoint in a "Free Trial" subfolder: https://dev.telstra.com/content/messaging-api#section/Getting-Started 

After you have created an OAuth token and provisioned your mobile subscription, then you can set the list of registered numbers to whom you can send messages with the API.

Open the body of this API call, and replace the default "BNUM1" text with "+61487654321" (replace with your number). I recommend you only start by provisioning 1 B number first, to check that it works, and send a few SMS messages to that number. 

More detilas in the API Documentation here: BNUM endpoint , if you get stuck, post on our  community forum

 

 

If you enjoyed this tutorial, and want to take the next step in your API journey, let me know in the comments! What should we cover next?

 

Keep in touch with TelstraDev on Twitter @TelstraDev and with me, your Developer Advocate @Michelle2Minhye to see our latest updates!

 

Michelle, TelstraDev Developer Advocate

 

Related Blogs

's picture

By Michelle Howie

15/7/21

  • arduino
  • iot

Real Time SMS alerts for dropped devices

  So in part 1 and part 2 of this workshop series, we’ve gone through how we can poll...
's picture

By Michelle Howie

15/7/21

  • arduino
  • iot

Ask for Environmental Sensor Data via SMS

If you have an environmental sensor set up in your home, office, farm etc and want to check the temp...
's picture

By Michelle Howie

15/7/21

  • arduino
  • iot

Control your IoT Device remotely with SMS commands

Developing with the Internet of Things is fun. It’s challenging. It’s frustrating at tim...
's picture

By Tim McMahon

2/6/21

  • messagingAPI
  • airquality

SMS alerts for hazardous air quality during bushfire season

I woke up one morning in January 2020 and discovered that the air quality in Melbourne had drop...
iot home garden project with arduino and azure
's picture

By keith coutlemanis

10/11/20

  • arduino
  • azure

Azure Internet of Things Garden Project with Arduino

I want to showcase a project I have been working on to reflect the interesting things you can do wit...
's picture

By Trent Steenholdt

10/11/20

  • iot
  • DIY

Home IoT Project using Azure

In this blog series, I’m going to write about how Internet of Things (IoT) enabled my gate,...
's picture

By Michelle Howie

20/10/20

  • hackathon
  • messagingAPI

Connecting our community in an emergency with mobile...

What do you get when you give 700 Hackers, Hustlers and Hipsters across Australia and New Zealand, a...
's picture

By Christy Daguia

15/11/18

  • messagingAPI
  • replyRequest

Conversation via Telstra Messaging API

Creating a message thread can be done via Telstra Messaging API, whereby you can continue sending an...
's picture

By Rajeev Ramani

30/8/18

  • MMS
  • performance

Fine-tuning MMS performance on Telstra's Messaging API

  Here at TelstraDev, we strive to make the best possible developer experience, from the recen...
's picture

By Marcus Kennan

12/2/18

  • callbacks
  • Messaging SDK

Understanding Messaging API Callbacks - Part 2

Welcome to the second in a two part series on understanding the messaging API callbacks. In our firs...
's picture

By Marcus Kennan

30/1/18

  • callbacks
  • postman

Understanding Messaging API Callbacks - Part 1

The callback functionality of the messaging API is a great utility allowing you to track the deliver...