Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Interface MessageSubmitEvent

    This callback provides a notification to the API clients that the corresponding app message was submitted to a channel. This notification is created before any confirmation from Delivery Receipts.

    interface MessageSubmitEvent {
        accepted_time?: Date;
        app_id: string;
        correlation_id?: string;
        event_time?: Date;
        message_metadata?: string;
        message_submit_notification?: MessageSubmitNotification;
        project_id: string;
        trigger: "MESSAGE_SUBMIT";
    }

    Hierarchy

    • ConversationCallbackEvent
      • MessageSubmitEvent
    Index

    Properties

    accepted_time?: Date

    Timestamp marking when the channel callback was accepted/received by the Conversation API.

    app_id: string

    Id of the subscribed app.

    correlation_id?: string

    The value provided in field correlation_id of a send message request.

    event_time?: Date

    Timestamp of the event as provided by the underlying channels.

    message_metadata?: string

    Context-dependent metadata. Refer to specific callback's documentation for exact information provided.

    message_submit_notification?: MessageSubmitNotification

    MessageSubmitNotification

    project_id: string

    The project ID of the app which has subscribed for the callback.

    trigger: "MESSAGE_SUBMIT"

    Name of the trigger responsible for this event.