| Name |
Type |
Description |
Notes |
| id |
string |
The id of the message. |
[optional] [default to undefined] |
| owner |
string |
The Bandwidth phone number associated with the message. |
[optional] [default to undefined] |
| applicationId |
string |
The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. |
[optional] [default to undefined] |
| time |
string |
The datetime stamp of the message in ISO 8601 |
[optional] [default to undefined] |
| segmentCount |
number |
The number of segments the user's message is broken into before sending over carrier networks. |
[optional] [default to undefined] |
| direction |
MessageDirectionEnum |
|
[optional] [default to undefined] |
| to |
Set<string> |
The phone number recipients of the message. |
[optional] [default to undefined] |
| from |
string |
The phone number the message was sent from. |
[optional] [default to undefined] |
| media |
Set<string> |
The list of media URLs sent in the message. Including a `filename` field in the `Content-Disposition` header of the media linked with a URL will set the displayed file name. This is a best practice to ensure that your media has a readable file name. |
[optional] [default to undefined] |
| text |
string |
The contents of the message. |
[optional] [default to undefined] |
| tag |
string |
A custom string that will be included in callback events of the message. Max 1024 characters. |
[optional] [default to undefined] |
| priority |
PriorityEnum |
|
[optional] [default to undefined] |
| expiration |
string |
A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. |
[optional] [default to undefined] |
import { Message } from 'bandwidth-sdk';
const instance: Message = {
id,
owner,
applicationId,
time,
segmentCount,
direction,
to,
from,
media,
text,
tag,
priority,
expiration,
};
[Back to Model list] [Back to API list] [Back to README]