PUT /messages/{messageId}
Need to update a message that's scheduled for sending? You can change any of the below parameters, as long as the message hasn't been sent yet. This request body will override the original POST/ messages call.
Servers
- https://products.api.telstra.com/messaging/v3
Path parameters
Name | Type | Required | Description |
---|---|---|---|
messageId |
String | Yes |
When you sent the original message, this is the UUID that was returned in the call response. Use this ID to fetch, update or delete a message with the appropriate endpoints. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Accept |
String | Yes | |
Telstra-api-version |
String | No | |
Content-Type |
String | Yes | |
Content-Language |
String | Yes | |
Authorization |
String | Yes | |
Accept-Charset |
String | Yes |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
to |
String | Yes |
This is the mobile number you want to send your message to. Write Australian numbers in national format (e.g. 0412345678) and international numbers (paid plans only) in E.164 format (e.g. +441234567890). Use a string for a single recipient, and an array of strings for multiple recipients, e.g. "to": ["0412345678", "+441234567890"]. If you're using the Free Trial, you can include up to 5 recipient numbers in the array. If you're using a paid plan, you can bulk send up to 500 messages at once. |
scheduleSend |
String | No |
Don't want to send the message right away? Tell us what time you want to add it to the queue for sending instead. Set the time in London Greenwich Mean Time (adjusting for any time difference) and use ISO format, e.g. "2019-08-24T15:39:00Z". You can schedule a message up to 10 days into the future. If you specify a timestamp outside of this limit, the API will return a FIELD_INVALID error. |
retryTimeout |
Integer | No |
If the message is queued or unable to reach the recipient's device, tell us how many minutes the network should keep trying. Use an integer between 10and 1440. If you don't set a value, we'll retry for 10 minutes. Default value: 10 |
deliveryNotification |
Boolean | No |
To receive a notification when your SMS has been delivered, set this parameter to true and make sure you provide a statusCallbackUrl (paid feature). Default value: false |
tags[] |
Array | No |
Create your own tags and use them to fetch and sort your messages through our other endpoints. You can assign up to 10 tags per message. |
multimedia[] |
Array | No |
Use this field to send an MMS. Add your image, video or audio content here. Note: either messageContent or multimedia are required, or you can use both fields if you want to send multimedia with text. Include a JSON payload with: type: the type of multimedia content file you're sending (image, audio, video or pdf) followed by the file type. Use the format 'multimedia type/file type', e.g. "image/PNG", "audio/MP3", "application/pdf". Supported file types: JPEG, BMP, GIF87a, GIF89a, PNG, MP3, WAV, MPEG, MPG, MP4, 3GP, US-ASCII, VCARD and PDF. fileName: the name of your multimedia file. payload: the base64 encoded content. You can use this online tool to encode an image, or Base64 Guru to encode a video or audio file. |
multimedia[].payload |
String | Yes |
The base64 encoded content. You can use this online tool to encode an image, or Base64 Guru to encode a video or audio file. |
multimedia[].type |
String | Yes |
the type of multimedia content file you're sending (image, audio, video or pdf) followed by the file type. Use the format "multimedia type/file type", e.g. "image/PNG", "audio/MP3" or "application/pdf". Supported file types:JPEG, BMP, GIF87a, GIF89a, PNG, MP3, WAV, MPEG, MPG, MP4, 3GP, US-ASCII, VCARD and PDF. |
multimedia[].fileName |
String | Yes |
The name of the multimedia file. |
messageContent |
String | No |
Use this field to send an SMS. Your text message goes here. Note: either messageContent or multimedia are required, or you can use both field if you want to send multimedia with text. |
statusCallbackUrl |
String | No |
Tell us the URL you want the API to call when the status of your SMS updates. To receive a status update, this field must be provided and deliveryNotification must be set to true. The status will be either:
Sample callback response:
|
from |
String | Yes |
When the recipient receives your message, you can choose whether they'll see a virtualNumber or senderName (paid plans only) in the from field.
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.