Interface WebhookNewSmsPayload

NEW_SMS webhook payload. Sent to your webhook url endpoint via HTTP POST when an sms is received by the phone number that your webhook is attached to. Use the SMS ID to fetch the full SMS details.

Export

Interface

WebhookNewSmsPayload

Hierarchy

  • WebhookNewSmsPayload

Properties

body: string

SMS message body

Memberof

WebhookNewSmsPayload

Name of the event type webhook is being triggered for.

Memberof

WebhookNewSmsPayload

fromNumber: string

Sender phone number

Memberof

WebhookNewSmsPayload

messageId: string

Idempotent message ID. Store this ID locally or in a database to prevent message duplication.

Memberof

WebhookNewSmsPayload

phoneNumber: string

ID of phone number receiving SMS

Memberof

WebhookNewSmsPayload

read: boolean

SMS has been read

Memberof

WebhookNewSmsPayload

smsId: string

ID of SMS message

Memberof

WebhookNewSmsPayload

toNumber: string

Recipient phone number

Memberof

WebhookNewSmsPayload

userId: string

User ID of event

Memberof

WebhookNewSmsPayload

webhookId: string

ID of webhook entity being triggered

Memberof

WebhookNewSmsPayload

webhookName?: string

Name of the webhook being triggered

Memberof

WebhookNewSmsPayload