Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 2.42 KB

File metadata and controls

44 lines (37 loc) · 2.42 KB

Message

Properties

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]

Example

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]