Message payload schema within a callback
| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | A unique identifier of the message. | [default to undefined] |
| owner | string | The Bandwidth phone number or alphanumeric identifier associated with the message. | [default to undefined] |
| applicationId | string | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | [default to undefined] |
| time | string | [default to undefined] | |
| segmentCount | number | The number of segments the user's message is broken into before sending over carrier networks. | [default to undefined] |
| direction | MessageDirectionEnum | [default to undefined] | |
| to | Set<string> | The phone number recipients of the message. | [default to undefined] |
| from | string | The Bandwidth phone number or alphanumeric identifier the message was sent from. | [default to undefined] |
| text | string | [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] |
| media | Array<string> | Optional media, not applicable for sms | [optional] [default to undefined] |
| priority | PriorityEnum | [optional] [default to undefined] | |
| channel | MultiChannelMessageChannelEnum | [optional] [default to undefined] |
import { StatusCallbackMessage } from 'bandwidth-sdk';
const instance: StatusCallbackMessage = {
id,
owner,
applicationId,
time,
segmentCount,
direction,
to,
from,
text,
tag,
media,
priority,
channel,
};